From owner-freebsd-net@FreeBSD.ORG Wed Apr 29 13:37:48 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B02A7106566B for ; Wed, 29 Apr 2009 13:37:48 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 411B28FC1D for ; Wed, 29 Apr 2009 13:37:47 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-255-48-78.bredband.comhem.se ([83.255.48.78]:54294 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.69) (envelope-from ) id 1Lz9jc-0000DU-6I for freebsd-net@freebsd.org; Wed, 29 Apr 2009 15:22:03 +0200 Received: (qmail 3158 invoked from network); 29 Apr 2009 15:21:56 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 29 Apr 2009 15:21:56 +0200 Received: (qmail 42828 invoked by uid 1001); 29 Apr 2009 15:21:56 +0200 Date: Wed, 29 Apr 2009 15:21:56 +0200 From: Erik Trulsson To: Barney Cordoba Message-ID: <20090429132156.GA42816@owl.midgard.homeip.net> References: <49F7709F.1020409@modulus.org> <172091.41695.qm@web63907.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <172091.41695.qm@web63907.mail.re1.yahoo.com> User-Agent: Mutt/1.5.19 (2009-01-05) X-Originating-IP: 83.255.48.78 X-Scan-Result: No virus found in message 1Lz9jc-0000DU-6I. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1Lz9jc-0000DU-6I 51c4abd22e7425fa44b2471c6670029e Cc: FreeBSD Net , Luigi Rizzo , Andrew Snow Subject: Re: Interrupts + Polling mode (similar to Linux's NAPI) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2009 13:37:49 -0000 On Wed, Apr 29, 2009 at 05:46:32AM -0700, Barney Cordoba wrote: > > > > > --- On Tue, 4/28/09, Andrew Snow wrote: > > > From: Andrew Snow > > Subject: Re: Interrupts + Polling mode (similar to Linux's NAPI) > > To: "Luigi Rizzo" > > Cc: "FreeBSD Net" > > Date: Tuesday, April 28, 2009, 5:09 PM > > Luigi Rizzo wrote: > > > If i am not mistaken we don't have generic support > > for interrupt moderation > > > in the kernel but that's a specific NIC feature: > > it works if the > > > hardware supports it, and it doesn't otherwise. > > > > > > Of course it would be possible to modify polling to > > implement > > > generic interrupt mitigation even without hardware > > support, so > > > you get the best of the two worlds. > > > > It seems to me that you're wasting your time if you are > > trying to achieve a high throughput in FreeBSD without using > > an Intel Pro/1000 or 10gbe networking card. > > > > So I don't know if anyone would really miss out if > > generic polling support was completely removed from the > > kernel and all efforts were then placed into improving other > > parts of network flow in the kernel which need more help. > > > > > > - Andrew > > I'm not sure if those specific NICs are the "only" choices. But I am > concerned that so much brainpower is being put to extending the life > of antiquated science projects and so little (maybe none?) is being > put to improving drivers and the general network threading and > performance. > > You spend 3 years redesigning the kernel, yet there are no resources to > create a decent 10gb/s solution, to get rid of netgraph and to do > network integration properly, or to improve the large number of mediocre > drivers that were written what might as well be 100 years ago. If you think that more resources should be applied on certain areas, then feel free to provide said resources yourself. Other people are unlikely to change what they work on just because you want them to. > > When the collective answer to better network performance is polling, it > makes it appear as if the FreeBSD project is a bunch of dudes working on > stuff they feel like doing, rather than there being some centralized plan > to make the project successful. That appearance is probably due to the fact the the FreeBSD project actually is a bunch of dudes working on what they feel like doing (or in a few cases on what they get paid for doing), and that there is very little centralized planning being done. (And even if there was, there is no way of enforcing that people work according to such a plan.) -- Erik Trulsson ertr1013@student.uu.se