From owner-freebsd-current@FreeBSD.ORG Sun Nov 21 13:00:09 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DADB716A4CE for ; Sun, 21 Nov 2004 13:00:09 +0000 (GMT) Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13DAB43D58 for ; Sun, 21 Nov 2004 13:00:09 +0000 (GMT) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (localhost [127.0.0.1]) by transport.cksoft.de (Postfix) with ESMTP id 388391FF9AC; Sun, 21 Nov 2004 14:00:07 +0100 (CET) Received: by transport.cksoft.de (Postfix, from userid 66) id 144B51FF9A8; Sun, 21 Nov 2004 14:00:05 +0100 (CET) Received: by mail.int.zabbadoz.net (Postfix, from userid 1060) id DC58F155D0; Sun, 21 Nov 2004 12:55:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.int.zabbadoz.net (Postfix) with ESMTP id D95161538C; Sun, 21 Nov 2004 12:55:59 +0000 (UTC) Date: Sun, 21 Nov 2004 12:55:59 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@e0-0.zab2.int.zabbadoz.net To: Dan Nelson In-Reply-To: <20041121020050.GB94473@dan.emsphone.com> Message-ID: References: <20041119114233.C43B.SHINO@fornext.org> <20041119185315.C43D.SHINO@fornext.org> <20041119120102.GM69710@obiwan.tataz.chchile.org> <20041121020050.GB94473@dan.emsphone.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS cksoft-s20020300-20031204bz on transport.cksoft.de cc: Shunsuke SHINOMIYA cc: freebsd-current@freebsd.org cc: Jeremie Le Hen Subject: Re: interrupt moderation for if_* [was: serious networking (em) ...] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2004 13:00:10 -0000 On Sat, 20 Nov 2004, Dan Nelson wrote: > In the last episode (Nov 20), Bjoern A. Zeeb said: > > On Fri, 19 Nov 2004, Jeremie Le Hen wrote: > > > > Hi, Jeremie, how is this? To disable Interrupt Moderation, > > > > sysctl hw.em?.int_throttle_valve=0. > > > > > > Great, I would have called it "int_throttle_ceil", but that's a > > > detail and my opinion is totally subjective. > > > > > > > However, because this patch is just made now, it is not fully tested. > > > > > > I'll give it a try this weekend although I won't be able to make > > > performance mesurements. > > > > when thinking about this could there be some "global" way for > > interrupt moderation; For if_sk there is this PR: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/41220 > > > > something 'unique' to all NIC drivers would be good I guess ? > > You need NIC support for it, just like checksum offloading. And other good example;) We do have [-,]{rxcsum, txcsum} in ifconfig for turning this on/off if supported. What I meant is to have common names for the interface (sysctl) for all NICs supporting this - "on grep finds all" and not to start home-brewed names for each driver. There might be some different names needed because int_delay, int_throttle_ceil or sk_interrupt_mod might or might not achieve the same but if they do names should be same. > drivers offer more sysctls; fxp lets you choose the maximum delay and > maximum packets to hold before firing an interrupt. great; someone should improve fxp.4 I guess ;) -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT