Re: [RFC] driver adjusts qlen, increases CPU

2006-08-04 Thread Rick Jones
Out of curiousity, how does the UDP socket's SO_SNDBUF compare to the queue depth? forgive my ignorance, how do i measure that? getsockopt(SO_SNDBUF)? I was just casting about on the possiblity that interactions between the depth of that queue and how much can be kept in the SO_SNDBUF migh

Re: [RFC] driver adjusts qlen, increases CPU

2006-08-04 Thread Jesse Brandeburg
On 8/4/06, Rick Jones <[EMAIL PROTECTED]> wrote: > 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?

Re: [RFC] driver adjusts qlen, increases CPU

2006-08-04 Thread Rick Jones
Jesse Brandeburg wrote: 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) o

[RFC] driver adjusts qlen, increases CPU

2006-08-04 Thread 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 (o