Lets make wifi fast again!
 help / color / mirror / Atom feed
* Re: [Make-wifi-fast] [Cake] Advantages to tightly tuning latency
       [not found]                 ` <87o8ri76u2.fsf@toke.dk>
@ 2020-04-23 16:28                   ` Dave Taht
  0 siblings, 0 replies; only message in thread
From: Dave Taht @ 2020-04-23 16:28 UTC (permalink / raw)
  To: Toke Høiland-Jørgensen; +Cc: Maxime Bizon, Cake List, Make-Wifi-fast

[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]

On Thu, Apr 23, 2020 at 4:57 AM Toke Høiland-Jørgensen <toke@redhat.com> wrote:
>
> Maxime Bizon <mbizon@freebox.fr> writes:
>
> > On Wednesday 22 Apr 2020 à 07:48:43 (-0700), Dave Taht wrote:
> >
> > Hello,
> >
> >> > Free has been using SFQ since 2005 (if I remember well).
> >> > They announced the wide deployment of SFQ in the free.fr newsgroup.
> >> > Wi-Fi in the free.fr router was not as good though.
> >>
> >> They're working on it. :)
> >
> > yes indeed.
> >
> > Switching to softmac approach, so now mac80211 will do rate control
> > and scheduling (using wake_tx_queue model).
> >
> > for 5ghz, we use ath10k
>
> That is awesome! Please make sure you include the AQL patch for ath10k,
> it really works wonders, as Dave demonstrated:
>
> https://lists.bufferbloat.net/pipermail/make-wifi-fast/2020-March/002721.html

and THIS patch is looking lovely at the higher rates I'm testing at.
Yea, it needs to be more robust, but I'm seeing tcp rtt inflation
of exactly the right buffer size (15ms), on an HT20 or VHT80 link,
where before I'd see 30+ms... (it's nice that flent can plot both tcp
rtt and ping rtt now),
ecn "just works",

[-- Attachment #2: 982-do-codel-more-right.patch --]
[-- Type: text/x-patch, Size: 1767 bytes --]

diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index c431722..92ba09b 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -476,10 +476,11 @@ struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata,
 	sta->sta.max_rc_amsdu_len = IEEE80211_MAX_MPDU_LEN_HT_BA;
 
 	sta->cparams.ce_threshold = CODEL_DISABLED_THRESHOLD;
-	sta->cparams.target = MS2TIME(20);
+	sta->cparams.target = MS2TIME(5);
 	sta->cparams.interval = MS2TIME(100);
 	sta->cparams.ecn = true;
-
+	sta_dbg(sdata, "Codel target, interval %d, %d\n", sta->cparams.target,
+		sta->cparams.interval);
 	sta_dbg(sdata, "Allocated STA %pM\n", sta->sta.addr);
 
 	return sta;
@@ -2468,15 +2469,9 @@ static void sta_update_codel_params(struct sta_info *sta, u32 thr)
 	if (!sta->sdata->local->ops->wake_tx_queue)
 		return;
 
-	if (thr && thr < STA_SLOW_THRESHOLD * sta->local->num_sta) {
-		sta->cparams.target = MS2TIME(50);
-		sta->cparams.interval = MS2TIME(300);
-		sta->cparams.ecn = false;
-	} else {
-		sta->cparams.target = MS2TIME(20);
-		sta->cparams.interval = MS2TIME(100);
-		sta->cparams.ecn = true;
-	}
+	sta->cparams.target = MS2TIME(5);
+	sta->cparams.interval = MS2TIME(100);
+	sta->cparams.ecn = true;
 }
 
 void ieee80211_sta_set_expected_throughput(struct ieee80211_sta *pubsta,
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 535911b..ca50d0a 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1551,7 +1551,7 @@ int ieee80211_txq_setup_flows(struct ieee80211_local *local)
 
 	codel_params_init(&local->cparams);
 	local->cparams.interval = MS2TIME(100);
-	local->cparams.target = MS2TIME(20);
+	local->cparams.target = MS2TIME(5);
 	local->cparams.ecn = true;
 
 	local->cvars = kcalloc(fq->flows_cnt, sizeof(local->cvars[0]),

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-23 16:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <d3f45591-7359-47a6-bd0b-f89f9b49c5a7@www.fastmail.com>
     [not found] ` <75FEC2D9-BFC8-4FA2-A972-D11A823C5528@gmail.com>
     [not found]   ` <CAA93jw7kfSjuQP2j8uX5-+hs2PBLNZ6c0=tV=PjZE50fQ1oFLw@mail.gmail.com>
     [not found]     ` <AAAE0AE6-BA8C-4236-A68D-C5A4CF7DFEDA@slashdirt.org>
     [not found]       ` <603DFF79-D0C0-41BD-A2FB-E40B95A9CBB0@gmail.com>
     [not found]         ` <CAA93jw5yvybv+aXH4NLd1r_8xSP2CPwzeh0q6wm1c26jLPBxag@mail.gmail.com>
     [not found]           ` <CAH8sseTdDfswOYpYvaDFm_jsaMCpsT9Ebj2ZvkKwaqyyjZiWHA@mail.gmail.com>
     [not found]             ` <CAA93jw54L6-mUU9oTgZVFHh5kY7HHGVQjZJZfUMw7Kuq+S9-8w@mail.gmail.com>
     [not found]               ` <20200423092909.GC28541@sakura>
     [not found]                 ` <87o8ri76u2.fsf@toke.dk>
2020-04-23 16:28                   ` [Make-wifi-fast] [Cake] Advantages to tightly tuning latency Dave Taht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox