Skip to content
This repository
Browse code

debloat: smaller quantums seem to be better

despite intuition saying we wanted packet aggregation to work better,
smaller quantums seem to work better.
  • Loading branch information...
commit 4701ef56645a5566b0c07e08ceb8ad541c3de7b9 1 parent 8215b46
authored July 09, 2012

Showing 1 changed file with 11 additions and 8 deletions. Show diff stats Hide diff stats

  1. 19  net/debloat/files/debloat
19  net/debloat/files/debloat
@@ -24,7 +24,7 @@ params = { "MDISC", "BIGDISC", "NORMDISC", "BINS", "MAX_HWQ_BYTES",
24 24
 	   "OVERHEAD", "LINKLAYER", "MPU", "PPPOE", "ADSL",
25 25
 	   "NOPRIOHOSTSRC","NOPRIOHOSTDST","NOPRIOPORTSRC", 
26 26
 	   "NOPRIOPORTDST", "EST_MIN", "EST_MAX", "HEADDROP", "ECNMASK",
27  
-	   "qlen_vo", "qlen_vi", "qlen_be", "qlen_bk" }
  27
+	   "qlen_vo", "qlen_vi", "qlen_be", "qlen_bk", "CODEL_LL_QUANTUM" }
28 28
 
29 29
 -- Useful defaults
30 30
 
@@ -51,9 +51,10 @@ env = { ["TC"] = "/sbin/tc",
51 51
 	["qlen_vo"] = 2,
52 52
 	["qlen_vi"] = 3,
53 53
 	["qlen_be"] = 3,
54  
-	["qlen_bk"] = 32,
55  
-	["MTU"] = 1500
56  
-     }
  54
+	["qlen_bk"] = 3,
  55
+	["MTU"] = 1500,
  56
+	["CODEL_LL_QUANTUM"] = 1514
  57
+	}
57 58
 
58 59
 wireless_debug = "/sys/kernel/debug/ieee80211/"
59 60
 qlens = { "qlen_vo", "qlen_vi", "qlen_bk", "qlen_be" }
@@ -1240,10 +1241,12 @@ end
1240 1241
 
1241 1242
 local function wireless_setup_ll(queuetype)
1242 1243
    qa("handle 1 root mq")
1243  
-   qap("1:1 handle %x %s limit 100 ecn target 10ms",VO, queuetype)
1244  
-   qap("1:2 handle %x %s limit 100 ecn target 27ms quantum 3028",VI, queuetype)
1245  
-   qap("1:3 handle %x %s limit 400 ecn target 27ms quantum 3028",BE, queuetype)
1246  
-   qap("1:4 handle %x %s limit 600 ecn target 50ms",BK, queuetype)
  1244
+   qap("1:1 handle %x %s limit 100 noecn target 5ms",VO, queuetype)
  1245
+   qap("1:2 handle %x %s limit 200 ecn target 13ms quantum %d",VI, queuetype, env.CODEL_LL_QUANTUM)
  1246
+   qap("1:3 handle %x %s limit 400 ecn target 13ms quantum %d",BE, queuetype, env.CODEL_LL_QUANTUM)
  1247
+--   qap("1:2 handle %x %s limit 200 ecn target 27ms quantum 3028",VI, queuetype)
  1248
+--   qap("1:3 handle %x %s limit 400 ecn target 27ms quantum 3028",BE, queuetype)
  1249
+   qap("1:4 handle %x %s limit 600 noecn target 50ms",BK, queuetype)
1247 1250
    wireless_filters()
1248 1251
 end
1249 1252
 

0 notes on commit 4701ef5

Please sign in to comment.
Something went wrong with that request. Please try again.