netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] driver adjusts qlen, increases CPU
@ 2006-08-04 15:45 Jesse Brandeburg
  2006-08-04 18:43 ` Rick Jones
  0 siblings, 1 reply; 4+ messages in thread
From: Jesse Brandeburg @ 2006-08-04 15:45 UTC (permalink / raw)
  To: netdev; +Cc: jesse.brandeburg

So we've recently put a bit of code in our e1000 driver to decrease the 
qlen based on the speed of the link.

On the surface it seems like a great idea.  A driver knows when the link 
speed changed, and having a 1000 packet deep queue (the default for most 
kernels now) on top of a 100Mb/s link (or 10Mb/s worst case for us) makes 
for a *lot* of latency if many packets are queued up in the qdisc.

Problem we've seen is that setting this shorter queue causes a large spike 
in cpu when transmitting using UDP:

100Mb/s link
txqueuelen: 1000 Throughput: 92.44 CPU: 5.00
txqueuelen: 100 Throughput: 93.80 CPU: 61.59

Is this expected? any comments?

Jesse

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

end of thread, other threads:[~2006-08-04 21:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-04 15:45 [RFC] driver adjusts qlen, increases CPU Jesse Brandeburg
2006-08-04 18:43 ` Rick Jones
2006-08-04 21:07   ` Jesse Brandeburg
2006-08-04 21:32     ` Rick Jones

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