Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Aug 2006 13:40:26 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/100519: Suboptimal network polling
Message-ID:  <200608111340.k7BDeQ8e085646@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/100519; it has been noted by GNATS.

From: Gleb Smirnoff <glebius@FreeBSD.org>
To: Arthur Hartwig <arthur.hartwig@nokia.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/100519: Suboptimal network polling
Date: Fri, 11 Aug 2006 17:35:10 +0400

   Arthur,
 
 On Wed, Jul 19, 2006 at 07:49:59AM +0000, Arthur Hartwig wrote:
 A> >Fix:
 A> Since the netisr is running when netisr_pollmore() is executing and swi_net() the main netisr despatcher loops until netisr is zero, it is sufficient in netisr_pollmore() to just set the bits in netisr and not also call legacy_setsoftnet():
 A> 
 A> replace the two instances of:
 A>     schednetisrbits(1 << NETISR_POLL | 1 << NETISR_POLLMORE);
 A> 
 A> in netisr_pollmore() by:
 A>     atomic_set_rel_int(&netisr, (1 << NETISR_POLL | 1 << NETISR_POLLMORE));
 
 Hmm, interesting. Have you done any profiling?
 
 -- 
 Totus tuus, Glebius.
 GLEBIUS-RIPN GLEB-RIPE



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