netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* HTB, HFSC, PIE, FIFO stuck on 2.4Gbit on default values
@ 2015-11-03 17:33 Denys Fedoryshchenko
  2015-11-03 19:11 ` Eric Dumazet
  0 siblings, 1 reply; 13+ messages in thread
From: Denys Fedoryshchenko @ 2015-11-03 17:33 UTC (permalink / raw)
  To: Netdev

Hi

Recently i was testing shaping over single 10G cards, for speeds up to 
3-4Gbps, and noticed interesting effect.

Shaping scheme:
Incoming bandwidth comes to switch port, with access vlan 100
Outgoing bandwidth leaves switch port with access vlan 200
Linux with Intel X710 connected to trunk port, bridge created, eth0.100 
bridged to eth0.200
gso/gro/tso disabled (they doesn't work nice with shapers)
Sure latest kernel

Shaper are installed on eth0.200, and seems multiqueue works on eth0 in 
general (i see packets are distributed over each queue), CPU load is 
very low (max 20% on core, but usually below 5%).
I tried:
HTB with fq, pfifo, pie qdisc
HFSC with fq, pfifo, pie qdisc

After i run shaper with default values, i can see traffic start to queue 
in classes and total traffic doesn't reach more than 2.4Gbit, and if i 
remove shaper it directly reach 4Gbit.
The only trick i found, it is running pie with burst 10000 cburst 10000 
in leaf classes, and 100000 in root class (i think 10000 in root class 
might work as well). If i change discipline to fq, i am returning back 
to 2.4Gbit, but it might be just because fq is not intended to be used 
with HTB leaf class.
So in my case burst/cburst solved issue, but i suspect maybe possible 
more elegant solution/tuning, than putting some random values?
Is there any particular reason why i am limited by ~2.4Gbit on any other 
settings?

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

end of thread, other threads:[~2015-11-04  5:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-03 17:33 HTB, HFSC, PIE, FIFO stuck on 2.4Gbit on default values Denys Fedoryshchenko
2015-11-03 19:11 ` Eric Dumazet
2015-11-03 19:17   ` Denys Fedoryshchenko
2015-11-03 19:49     ` Eric Dumazet
2015-11-03 20:01       ` David Miller
2015-11-03 20:24       ` Denys Fedoryshchenko
2015-11-03 21:23         ` Eric Dumazet
2015-11-04  4:12           ` Denys Fedoryshchenko
2015-11-04  4:28             ` Eric Dumazet
2015-11-04  4:49               ` Denys Fedoryshchenko
2015-11-04  5:02                 ` Eric Dumazet
2015-11-03 21:04       ` Andrew
2015-11-03 22:02         ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).