Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Nov 2012 12:30:14 +0100
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        Andre Oppermann <andre@freebsd.org>
Cc:        Davide Italiano <davide@freebsd.org>, Joe Holden <lists@rewt.org.uk>, Ryan Stone <rysto32@gmail.com>, FreeBSD Current <current@freebsd.org>
Subject:   Re: polling's future [was: Re: Dynamic Ticks/HZ]
Message-ID:  <20121106113014.GA26313@onelab2.iet.unipi.it>
In-Reply-To: <5098E526.6070101@freebsd.org>
References:  <509758B8.1000409@rewt.org.uk> <CACYV=-HwJ1j2-zDtCtuGNKzdFRJhPsZm6vtFXAVyPSabCXvFEQ@mail.gmail.com> <50975F6F.6010907@rewt.org.uk> <CACYV=-Ef5ij7%2BgqDV9oS3xRyD6Yy2mqDyKqqUZZQ-KsWb_3C3A@mail.gmail.com> <5097898C.9080109@rewt.org.uk> <CAFMmRNwR_XxjnRZvxqew77qNnOTGWrRQnhJkg4u2berL8VCVtw@mail.gmail.com> <20121105163654.GA12870@onelab2.iet.unipi.it> <5097E880.8010001@rewt.org.uk> <20121105165748.GA13098@onelab2.iet.unipi.it> <5098E526.6070101@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121106113014.GA26313>