netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* HTB vs CoDel performance
@ 2012-09-18  9:28 Lin Ming
  2012-09-18  9:45 ` Eric Dumazet
  0 siblings, 1 reply; 7+ messages in thread
From: Lin Ming @ 2012-09-18  9:28 UTC (permalink / raw)
  To: Eric Dumazet; +Cc: networking

Hi,

I'm testing htb performance on a gigabit router running 2.6.32 kernel.
Packet path: PC1 ---> Router LAN port ---> Router WAN port ---> PC2

pfifo_fast: 920Mbps
htb: 750Mbps, ~20% drops compared to pfifo_fast

htb tc commands as below,
# tc qdisc add dev eth10 root handle 20: htb default 1
# tc class add dev eth10 parent 20 classid 20:1 htb prio 2 rate
1024Mbit ceil 1024Mbit burst 1281408b cburst 1281408b

The performance drop seems caused by the complex htb enqueue/dequeue algorithm.

I had a quick look at CoDel code, seems it does not have so complex
data structure as HTB.
I'm going to backport CoDel. Is this a good choice?
Can I gain similar performance as pfifo_fast?

Thanks,
Lin Ming

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

end of thread, other threads:[~2012-09-21  7:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-18  9:28 HTB vs CoDel performance Lin Ming
2012-09-18  9:45 ` Eric Dumazet
2012-09-18  9:56   ` Lin Ming
2012-09-18 10:15     ` Eric Dumazet
2012-09-19  1:26       ` Lin Ming
2012-09-19 17:00         ` Rick Jones
2012-09-21  7:23           ` Lin Ming

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).