[Cake] Bug or not Cake + hfsc or Cake + Drr

Pete Heist pete at heistp.net
Thu Mar 7 13:05:32 EST 2019


If it’s just straight cake under hfsc with a rate here’s what I do (obviously replace 100mbit with your rate):

tc qdisc add dev eth1 root handle 1: hfsc default 1
tc class add dev eth1 parent 1: classid 1:1 hfsc ls rate 100mbit ul rate 100mbit
tc qdisc add dev eth1 parent 1:1 cake

Also, there were recent fixes to the Linux kernel and cake regarding GSO splitting. You may find with hfsc on older kernels that you have to use “cake no-split-gso” to avoid lockups.

> On Mar 7, 2019, at 12:32 PM, Martin Zaharinov <micron10 at gmail.com> wrote:
> 
> thanks i will try
> 
> 
> 
> On Thu, Mar 7, 2019, 13:25 Toke Høiland-Jørgensen <toke at redhat.com <mailto:toke at redhat.com>> wrote:
> Martin Zaharinov <micron10 at gmail.com <mailto:micron10 at gmail.com>> writes:
> 
> > please write my one sample line with this
> 
> From your script you'd need to use:
> 
> tc qdisc add dev eth1 parent 1:0004 cake
> 
> instead of
> 
> tc qdisc add dev eth1 parent 1:0004 sfq perturb 10
> 
> And adjust your HFSC parameter to shape to the rate you want. Can't help
> you with that part, sorry, you'll need to go read up on shaping with
> HFSC (or I'd suggest maybe using HTB instead as that is simpler to
> configure). There are loads of tutorials for that online :)
> 
> -Toke
> _______________________________________________
> Cake mailing list
> Cake at lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cake

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.bufferbloat.net/pipermail/cake/attachments/20190307/c6cd6dfa/attachment.html>


More information about the Cake mailing list