From: Loganaden Velvindron <loganaden@gmail.com>
To: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
Cc: cake@lists.bufferbloat.net
Subject: Re: [Cake] Fresh from the bakery
Date: Fri, 16 Oct 2015 13:39:58 +0400 [thread overview]
Message-ID: <CAOp4FwS6i6kfiV44KKtJAX6+d5vgakJHO=056yw_s1fBSTaPoQ@mail.gmail.com> (raw)
In-Reply-To: <561F9431.6050606@darbyshire-bryant.me.uk>
[-- Attachment #1: Type: text/plain, Size: 3854 bytes --]
On Thu, Oct 15, 2015 at 3:55 PM, Kevin Darbyshire-Bryant <
kevin@darbyshire-bryant.me.uk> wrote:
> Hi list,
>
> Jonathan has been slaving over the oven (again) and produced a fresh
> batch of commits, this time for the iproute2/tc userland side of things
> (announced in another email on this list) This means that the cake
> qdisc module & tc will talk to one another again with a few new whizzy
> features (and sprinkles!)
>
> I've just merged those changes into Dave's 'tc-adv' repo, compiled &
> run(ning) then here on an Archer C7. I've not *yet* updated the
> ceropackages repo to point to the latest sch-cake & tc-adv so it's not
> 'openwrt' wide at this time.
>
> Warning: Since the ABI/API changed, you'll likely need to update both
> the kernel module & userland tc - nothing should burst into flames but
> 'missing stats' output from tc is a sure sign that cake tray & tin are
> not in alignment.
>
>
> Note the new 'rtt' parameter:
>
> # tc qdisc change cake help
> Usage: ... cake [ bandwidth RATE | unlimited* ]
> [ rtt TIME | datacentre | lan | metro | regional |
> internet* | oceanic | satellite | interplanetary ]
> [ besteffort | squash | precedence | diffserv8 |
> diffserv4* ]
> [ flowblind | srchost | dsthost | hosts | flows* ]
> [ atm | noatm* ] [ overhead N | conservative | raw* ]
> (* marks defaults)
>
>
> And the stats:
>
> # tc -s qdisc show dev eth0
> qdisc cake 800a: root refcnt 2 bandwidth 9800Kbit diffserv4 flows rtt
> 100.0ms noatm overhead 12
> Sent 1580471 bytes 15158 pkt (dropped 0, overlimits 627 requeues 0)
> backlog 0b 0p requeues 0
> Tin 0 Tin 1 Tin 2 Tin 3
> thresh 9800Kbit 9187Kbit 7350Kbit 2450Kbit
> target 5.0ms 5.0ms 5.0ms 7.4ms
> interval 100.0ms 100.0ms 100.0ms 102.4ms
> Pk-delay 0us 381us 2us 1us
> Av-delay 0us 10us 0us 0us
> Sp-delay 0us 1us 0us 0us
> pkts 0 15053 66 39
> bytes 0 1565352 5940 9179
> way-inds 0 43 0 0
> way-miss 0 900 66 11
> way-cols 0 0 0 0
> drops 0 0 0 0
> marks 0 0 0 0
> Sp-flows 0 0 1 0
> Bk-flows 0 2 0 2
> last-len 0 82 90 225
> max-len 0 1514 90 485
>
> qdisc ingress ffff: parent ffff:fff1 ----------------
> Sent 12901461 bytes 20356 pkt (dropped 0, overlimits 0 requeues 0)
> backlog 0b 0p requeues 0
>
>
> Note how traffic is classified into Tins, not Classes or Bins :-)
>
> Enjoy!
>
>
>
Building the latest tc-adv causes issues with gcc.
gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wold-style-definition -Wformat=2 -O2 -I../include -DRESOLVE_HOSTNAMES
-DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE
-DHAVE_SETNS -DHAVE_ELF -DCONFIG_GACT -DCONFIG_GACT_PROB
-DIPT_LIB_DIR=\"/usr/lib/iptables\" -DYY_NO_INPUT -c -o q_cake0.o
q_cake0.c
In file included from q_cake.c:48:0:
q_cake.c: In function ‘cake_print_xstats’:../include/utils.h:177:55: error:
expected expression before ‘)’ token # define offsetof(type, member) (
(size_t) & ( (type *) 0 )->member )
^q_cake.c:500:31: note: in expansion of macro ‘offsetof’
&& RTA_PAYLOAD(xstats) >= offsetof(*stnc, capacity_estimate))
GCC version:
gcc version 5.2.0 (GCC)
[-- Attachment #2: Type: text/html, Size: 5098 bytes --]
next prev parent reply other threads:[~2015-10-16 9:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-15 11:55 Kevin Darbyshire-Bryant
2015-10-16 1:11 ` Jonathan Morton
2015-10-16 9:39 ` Loganaden Velvindron [this message]
2015-10-16 10:24 ` Loganaden Velvindron
2015-10-16 13:18 ` Jonathan Morton
2015-10-16 13:27 ` Kevin Darbyshire-Bryant
2015-10-16 13:37 ` Loganaden Velvindron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.bufferbloat.net/postorius/lists/cake.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOp4FwS6i6kfiV44KKtJAX6+d5vgakJHO=056yw_s1fBSTaPoQ@mail.gmail.com' \
--to=loganaden@gmail.com \
--cc=cake@lists.bufferbloat.net \
--cc=kevin@darbyshire-bryant.me.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox