[Cake] [PATCH] q_cake: Update xstats format to use per-tin structure

Toke Høiland-Jørgensen toke at toke.dk
Thu Mar 8 06:21:14 EST 2018


Kevin Darbyshire-Bryant <kevin at darbyshire-bryant.me.uk> writes:

>> On 8 Mar 2018, at 11:09, Kevin Darbyshire-Bryant <kevin at darbyshire-bryant.me.uk> wrote:
>> 
>> 
>> 
>>> On 8 Mar 2018, at 10:57, Toke Høiland-Jørgensen <toke at toke.dk> wrote:
>>> 
>>> Kevin Darbyshire-Bryant <kevin at darbyshire-bryant.me.uk> writes:
>>> 
>>>> Archer c7 v2. master branch of openwrt
>>> 
>>> Ah, great; I actually have one of those sitting on my desk that I could
>>> potentially reflash without breaking anything too important.
>>> 
>>> In the meantime; do you get the same weird output on the
>>> dropped/overlimit/requeues fields if you install a different qdisc than
>>> cake?
>> 
>> From previous email this morning:
>> 
>>> Definitely dubious and I’m no longer convinced it’s a cake only issue.  Looked at my AP which is running an older version of openwrt, so older cake, older kernel etc etc and all qdiscs are returning odd impossibly high values in a variety of fields.
>> 
>> 
>> 
>> tc -s qdisc
>> qdisc noqueue 0: dev lo root refcnt 4485644
>> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>> qdisc fq_codel 0: dev eth1 root refcnt 4485644 limit 4497776p flows 4535164 quantum 4536072 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
>> Sent 74281480509 bytes 91321865 pkts (dropped 0, overlimits 0)
>>  maxpacket 1514 drop_overlimit 0 new_flow_count 7549 ecn_mark 0
>>  new_flows_len 0 old_flows_len 0
>> qdisc noqueue 0: dev br-lan root refcnt 4485644
>> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>> qdisc noqueue 0: dev eth1.2 root refcnt 4485644
>> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>> qdisc noqueue 0: dev br-wifi_guest root refcnt 4485644
>> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>> qdisc noqueue 0: dev eth1.15 root refcnt 4485644
>> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>> qdisc noqueue 0: dev wlan1 root refcnt 4485644
>> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>> qdisc noqueue 0: dev wlan0 root refcnt 4485644
>> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>> qdisc noqueue 0: dev wlan1-1 root refcnt 4485644
>> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>> qdisc noqueue 0: dev wlan0-1 root refcnt 4485644
>> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>> 
>> And that’s on an openwrt system from commit f5b4f5f8e33624f27af9fb3f86e09084181c08ed
>> Author: Alif M. Ahmad <alive4ever at live.com>
>> Date:   Sun Feb 25 03:18:41 2018 +0000
>> 
>> So actually this problem has been around a little while, pre recent cake changes.
>
> Oh and curiously the bad values go away if you ask for json output
> it’s much better.  Which rather points at a ‘feature’ of the
> ‘print_string’ behaviour.

Right. Well, the print_* functions are behind several levels of
pre-processor indirection, so not quite obvious what's going on here.
Don't really see why they should spit out garbage values, though.


Stephen, do you have any ideas?

-Toke


>
> tc -s -j qdisc
> [{
>         "kind": "noqueue",
>         "handle": "0:",
>         "dev": "lo",
>         "root": true,
>         "refcnt": 2,
>         "options": {} Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>     },{
>         "kind": "fq_codel",
>         "handle": "0:",
>         "dev": "eth1",
>         "root": true,
>         "refcnt": 2,
>         "options": {
>             "limit": 10240,
>             "flows": 1024,
>             "quantum": 1514,
>             "target": 4999,
>             "interval": 99999,
>             "memory_limit": 4194304,
>             "ecn": true
>         } Sent 74283705614 bytes 91330210 pkts (dropped 0, overlimits 0)   maxpacket 1514 drop_overlimit 0 new_flow_count 7549 ecn_mark 0
>   new_flows_len 0 old_flows_len 0
>     },{
>         "kind": "noqueue",
>         "handle": "0:",
>         "dev": "br-lan",
>         "root": true,
>         "refcnt": 2,
>         "options": {} Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>     },{
>         "kind": "noqueue",
>         "handle": "0:",
>         "dev": "eth1.2",
>         "root": true,
>         "refcnt": 2,
>         "options": {} Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>     },{
>         "kind": "noqueue",
>         "handle": "0:",
>         "dev": "br-wifi_guest",
>         "root": true,
>         "refcnt": 2,
>         "options": {} Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>     },{
>         "kind": "noqueue",
>         "handle": "0:",
>         "dev": "eth1.15",
>         "root": true,
>         "refcnt": 2,
>         "options": {} Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>     },{
>         "kind": "noqueue",
>         "handle": "0:",
>         "dev": "wlan1",
>         "root": true,
>         "refcnt": 2,
>         "options": {} Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>     },{
>         "kind": "noqueue",
>         "handle": "0:",
>         "dev": "wlan0",
>         "root": true,
>         "refcnt": 2,
>         "options": {} Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>     },{
>         "kind": "noqueue",
>         "handle": "0:",
>         "dev": "wlan1-1",
>         "root": true,
>         "refcnt": 2,
>         "options": {} Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>     },{
>         "kind": "noqueue",
>         "handle": "0:",
>         "dev": "wlan0-1",
>         "root": true,
>         "refcnt": 2,
>         "options": {} Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>     }
> ]
>
>
>> 
>> 
>> _______________________________________________
>> Cake mailing list
>> Cake at lists.bufferbloat.net
>> https://lists.bufferbloat.net/listinfo/cake
>
>
> Cheers,
>
> Kevin D-B
>
> 012C ACB2 28C6 C53E 9775  9123 B3A2 389B 9DE2 334A


More information about the Cake mailing list