Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
* [Cake] Running Cake at long RTTs
@ 2015-10-27 15:14 Toke Høiland-Jørgensen
  2015-10-27 15:16 ` Loganaden Velvindron
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Toke Høiland-Jørgensen @ 2015-10-27 15:14 UTC (permalink / raw)
  To: cake

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

So Dave and I did a bit of testing of Cake at a 1-second base RTT. That
showed that, compared with a straight FIFO queue (with a sufficiently
large buffer), throughput was suffering quite a bit under Cake,
especially at large bandwidths. We did two changes to fix this:

- Turn the hard packet queue size into a lower bound rather than an
  upper bound.

- Scale the target to be 1/16th of the interval.

The first change allows Cake to actually reach the target throughput,
but it still takes a long while to get there. With the second change, we
actually get the desired behaviour. The attached plot shows the
difference, with the solid line being before the change and the dashed
line being after the change.

Patch attached.

-Toke


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: cake-longrtt.patch --]
[-- Type: text/x-diff, Size: 859 bytes --]

diff --git a/sch_cake.c b/sch_cake.c
index c97a212..91e556c 100644
--- a/sch_cake.c
+++ b/sch_cake.c
@@ -854,10 +854,11 @@ static void cake_set_rate(struct cake_tin_data *b, u64 rate, u32 mtu,
 
 	byte_target_ns = (byte_target * rate_ns) >> rate_shft;
 
-	b->cparams.target = max(byte_target_ns, ns_target);
 	b->cparams.interval = max(rtt_est_ns +
 				     b->cparams.target - ns_target,
 				     b->cparams.target * 8);
+	b->cparams.target = max(max(byte_target_ns, ns_target),
+				b->cparams.interval >> 4);
 	b->cparams.threshold = (b->cparams.target >> 15) *
 		(b->cparams.interval >> 15) * 2;
 
@@ -1144,7 +1145,7 @@ static void cake_reconfigure(struct Qdisc *sch)
 		q->peel_threshold = 0;
 	}
 
-	q->buffer_limit = min(q->buffer_limit, sch->limit *
+	q->buffer_limit = max(q->buffer_limit, sch->limit *
 			      psched_mtu(qdisc_dev(sch)));
 }
 

[-- Attachment #3: cake-longrtt.pdf --]
[-- Type: application/pdf, Size: 149611 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-10-30 21:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-27 15:14 [Cake] Running Cake at long RTTs Toke Høiland-Jørgensen
2015-10-27 15:16 ` Loganaden Velvindron
     [not found] ` <6499FF74-D13B-4B2E-90E3-D1FDD3FD1468@gmx.de>
2015-10-27 16:50   ` Toke Høiland-Jørgensen
2015-10-27 17:14     ` Sebastian Moeller
2015-10-27 19:04 ` Jonathan Morton
2015-10-27 23:57   ` Toke Høiland-Jørgensen
2015-10-28  9:36     ` Sebastian Moeller
2015-10-28 15:28 ` Sebastian Moeller
2015-10-28 15:36   ` Toke Høiland-Jørgensen
2015-10-28 15:50     ` Sebastian Moeller
2015-10-28 16:34       ` Toke Høiland-Jørgensen
2015-10-28 17:44         ` Sebastian Moeller
2015-10-29 17:36 ` Kevin Darbyshire-Bryant
2015-10-30 20:30   ` Kevin Darbyshire-Bryant
2015-10-30 21:34   ` Dave Taht

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