Device polling - worthwhile?
Chuck Swiger
cswiger at mac.com
Sat Sep 23 21:33:29 PDT 2006
Paul Schmehl wrote:
> I've been reading about device polling. I'm wondering if it's worth
> doing on a busy website (4,000,000+ hits/month, 45GB+ bandwidth use). I
> understand what polling is and how it queues traffic as opposed to the
> "old-fashioned" interrupt method, but do you really gain
> performance-wise? Are there any pitfalls to enabling it in the kernel?
> (I understand you can enable/disable it using ifconfig.) Any gotchas
> regarding tuning? (This is a production website. I don't want to cause
> problems that are hard to figure out.)
>
> If it matters, I'm running 6.1 RELEASE, GENERIC kernel, Broadcomm GIG
> NICs, 3.2GHz processor, 2GB of memory, apache 1.3.*
If your NIC can do interrupt moderation, and most GB NICs will, that already
provides most of the advantages of device polling without as much CPU
overhead. Polling is best suited for routers and firewalls and very simple
services like NTP.
If this is a production website, you clearly should experiment with polling on
another system until you are satisfied that you can make it work OK for your
needs, right...?
--
-Chuck
PS: 4 million hits/month is about 1-2 hits per second, and about 2 KB/sec of
bandwidth on average.
More information about the freebsd-questions
mailing list