lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5a95e6550a304545fbde95360985c018@nuclearcat.com>
Date:   Wed, 13 Sep 2017 20:35:41 +0300
From:   Denys Fedoryshchenko <nuclearcat@...learcat.com>
To:     Eric Dumazet <eric.dumazet@...il.com>
Cc:     Linux Kernel Network Developers <netdev@...r.kernel.org>,
        netdev-owner@...r.kernel.org
Subject: Re: HTB going crazy over ~5Gbit/s (4.12.9, but problem present in
 older kernels as well)

On 2017-09-13 20:20, Eric Dumazet wrote:
> On Wed, 2017-09-13 at 20:12 +0300, Denys Fedoryshchenko wrote:
> 
>> For my case, as load increased now, i am hitting same issue (i tried 
>> to
>> play with quantum / bursts as well, didnt helped):
>> 
>> tc -s -d class show dev eth3.777 classid 1:111;sleep 5;tc -s -d class
>> show dev eth3.777 classid 1:111
>> class htb 1:111 parent 1:1 leaf 111: prio 0 quantum 50000 rate 20Gbit
>> ceil 100Gbit linklayer ethernet burst 100000b/1 mpu 0b cburst 
>> 100000b/1
>> mpu 0b level 0
>>   Sent 864151559 bytes 730566 pkt (dropped 15111, overlimits 0 
>> requeues
>> 0)
>>   backlog 73968000b 39934p requeues 0
>>   lended: 499867 borrowed: 0 giants: 0
>>   tokens: 608 ctokens: 121
>> 
> 
> You have drops (and ~40,000 packets in backlog)
> 
> 
>> class htb 1:111 parent 1:1 leaf 111: prio 0 quantum 50000 rate 20Gbit
>> ceil 100Gbit linklayer ethernet burst 100000b/1 mpu 0b cburst 
>> 100000b/1
>> mpu 0b level 0
>>   Sent 1469352160 bytes 1243649 pkt (dropped 42933, overlimits 0 
>> requeues
>> 0)
>>   backlog 82536047b 39963p requeues 0
>>   lended: 810475 borrowed: 0 giants: 0
>>   tokens: 612 ctokens: 122
>> 
>> (1469352160-864151559)/5*8
>> 968320961.60000000000000000000
>> Less than 1Gbit and it's being throttled
> 
> It is not : "overlimits 0"  means this class was not throttled.
Overlimits never appear in HTB as i know, here is simulation on this 
class that have constant "at least" 1G traffic, i throttled it to 1Kbit 
to simulate forced drops:

shapernew ~ # sh /etc/shaper.cfg;sleep 1;tc -s -d class show dev 
eth3.777 classid 1:111;tc qdisc del dev eth3.777 root
class htb 1:111 parent 1:1 leaf 111: prio 0 quantum 50000 rate 1Kbit 
ceil 1Kbit linklayer ethernet burst 31280b/1 mpu 0b cburst 31280b/1 mpu 
0b level 0
  Sent 134350019 bytes 117520 pkt (dropped 7819, overlimits 0 requeues 0)
  backlog 7902126b 4976p requeues 0
  lended: 86694 borrowed: 0 giants: 0
  tokens: -937500000 ctokens: -937500000

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ