RE: [PATCH] eepro100 - need testers

Leif Sawyer (lsawyer@gci.com)
Thu, 6 Dec 2001 16:30:12 -0900


Tim Hockin responded to
> Jeff Garzik who wrote:
>
>> This patch got me thinking about net driver ring sizes in
>> general. When you are talking thousands of packets per second
>> at 100 mbit, a larger ring size than the average 32-64 seems
>> to make sense too.
>
> Well, the math for the very worst case is something like:
>
> 100,000,000 bits/sec
> /8 = 12500000 bytes/sec
> /64 bytes/ping = 195312.5 ping/sec
> /100 = 1953 ping/jiffy
> rounded to 2048 /2 = 1024 rx buffers per 1/2 jiffie.
>
> 1024 means you can withstand a wire-speed storm while
> interrupting twice per jiffy.

Given this, and the ever-upward climb in ethernet speed,
what would be the dangers involved in making this a run-time
option?

As soon as we detect the device, we know what it's max speed is,
and we can then build the ring size base on that knowledge.

just some ignorant thoughts..

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/