Re: polling's future [was: Re: Dynamic Ticks/HZ]

From: Luigi Rizzo <rizzo_at_iet.unipi.it>
Date: Tue, 6 Nov 2012 12:30:14 +0100
On Tue, Nov 06, 2012 at 11:23:34AM +0100, Andre Oppermann wrote:
...
> Hi Luigi,
> 
> do you agree on polling having outlived its usefulness in the light
> of interrupt moderating NIC's and SMP complications/disadvantages?

yes, we should let it rest in peace.

One part of the NIC-polling framework is now obsoleted by the
interrupt moderation that most NICs support (note though that
almost none of the popular hypervisors emulate interrupt moderation
so your network performance in a VM will be awful under heavy load.)

Unfortunately another part will be lost even on bare hardware:
NIC-polling, as implemented in FreeBSD, had the ability to cap the
amount of CPU time spent in the polling loop during each tick, thus
making sure there is no livelock.  Neither taskqueue nor NAPI (in
linux world) have this feature.

cheers
luigi
Received on Tue Nov 06 2012 - 10:09:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:32 UTC