From owner-freebsd-net Thu Oct 17 20:12: 1 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDFDE37B401 for ; Thu, 17 Oct 2002 20:11:59 -0700 (PDT) Received: from carp.icir.org (carp.icir.org [192.150.187.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 933C843E6E for ; Thu, 17 Oct 2002 20:11:59 -0700 (PDT) (envelope-from rizzo@carp.icir.org) Received: from carp.icir.org (localhost [127.0.0.1]) by carp.icir.org (8.12.3/8.12.3) with ESMTP id g9I3BxpJ075516; Thu, 17 Oct 2002 20:11:59 -0700 (PDT) (envelope-from rizzo@carp.icir.org) Received: (from rizzo@localhost) by carp.icir.org (8.12.3/8.12.3/Submit) id g9I3BwUm075515; Thu, 17 Oct 2002 20:11:58 -0700 (PDT) (envelope-from rizzo) Date: Thu, 17 Oct 2002 20:11:58 -0700 From: Luigi Rizzo To: Petri Helenius Cc: Lars Eggert , freebsd-net@FreeBSD.ORG Subject: Re: ENOBUFS Message-ID: <20021017201158.A75351@carp.icir.org> References: <065901c27495$56a94c40$8c2a40c1@PHE> <3DAC8FAD.30601@isi.edu> <068b01c2749f$32e7cf70$8c2a40c1@PHE> <20021015161055.A27443@carp.icir.org> <06c901c274d8$e5280b80$8c2a40c1@PHE> <3DAD01A7.3020807@isi.edu> <071501c274db$222c3ea0$8c2a40c1@PHE> <3DAD06AF.7060701@isi.edu> <0be401c2761f$855af670$8c2a40c1@PHE> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <0be401c2761f$855af670$8c2a40c1@PHE>; from pete@he.iki.fi on Thu, Oct 17, 2002 at 11:55:24PM +0300 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Oct 17, 2002 at 11:55:24PM +0300, Petri Helenius wrote: ... > I seem to get about 5-6 packets on an interrupt. Is this tunable? At just reading the source code, yes, it appears that the card has support for delayed rx/tx interrupts -- see RIDV and TIDV definitions and usage in sys/dev/em/* . I don't know in what units are the values (28 and 128, respectively), but it does appear that tx interrupts are delayed a bit more than rx interrupts. They are not user-configurable at the moment though, you need to rebuild the kernel. cheers luigi > 50kpps the card generates 10k interrupts a second. Sending generates > way less. This is about 300Mbps so with the average packet size of > 750 there should be room for more packets on the interface queue > before needing to service an interrupt? > > What´s the way to access kernel adapter-structure? Is there an utility > that can view the values there? > > > Pete > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message