From owner-freebsd-net Fri Oct 18 9:53:34 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 25ED137B401 for ; Fri, 18 Oct 2002 09:53:30 -0700 (PDT) Received: from mx2.nersc.gov (mx2.nersc.gov [128.55.6.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD06143E88 for ; Fri, 18 Oct 2002 09:53:28 -0700 (PDT) (envelope-from dart@nersc.gov) Received: from mx2.nersc.gov (localhost [127.0.0.1]) by localhost.nersc.gov (Postfix) with ESMTP id 1EA61593E; Fri, 18 Oct 2002 09:53:28 -0700 (PDT) Received: from gemini.nersc.gov (gemini.nersc.gov [128.55.16.111]) by mx2.nersc.gov (Postfix) with ESMTP id 9F4D6593C; Fri, 18 Oct 2002 09:53:27 -0700 (PDT) Received: from gemini.nersc.gov (localhost [127.0.0.1]) by gemini.nersc.gov (Postfix) with ESMTP id 559193B1AE; Fri, 18 Oct 2002 09:53:27 -0700 (PDT) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "Jim McGrath" Cc: "Petri Helenius" , "Luigi Rizzo" , "Lars Eggert" , freebsd-net@FreeBSD.ORG Subject: Re: ENOBUFS In-Reply-To: Message from "Jim McGrath" of "Fri, 18 Oct 2002 09:21:37 EDT." Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_128925830P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 18 Oct 2002 09:53:27 -0700 From: Eli Dart Message-Id: <20021018165327.559193B1AE@gemini.nersc.gov> 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 --==_Exmh_128925830P Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable In reply to "Jim McGrath" : > = > > Where could I get the errata sheet? > = > Product Specification Updates i.e. errata, and the Product Specificatio= n > itself are available from Intel under a Non Disclosure Agreement. Unle= ss > you work for a company that is doing business with Intel, they are prob= ably > not obtainable. > > > > Could the numbers be packet thresholds? 28 and 128 packets respective= ly? > > > I can't answer that directly because of NDA. Let us apply some logic h= ere. > If they were packet counts, under very low load conditions e.g. a singl= e > telnet session, the telnet link would be unusable. This leads us to th= e > conclusion that they must be time values. Based on the source code for the sk driver (look for "interrupt = moderation" in if_sk.c) I would suspect that those values represent = time in microseconds. My guess (based on no privileged information = whatsoever) is that if we've not interrupted in = microseconds and we have something to send (or we've received = something) go ahead and raise an interrupt..... Just a guess. I'm perfectly willing to be wrong about this.... --eli > = > Jim > > Anything else that can be done? Does PCI width/speed affect the amoun= t of > > time spent in the kernel interrupt or are the PCI transfers asynchron= ous? > > > > Pete > > > > ----- Original Message ----- > > From: "Jim McGrath" > > To: "Luigi Rizzo" ; "Petri Helenius" = > > Cc: "Lars Eggert" ; > > Sent: Friday, October 18, 2002 7:49 AM > > Subject: RE: ENOBUFS > > > > > > > Careful here. Read the errata sheet!! I do not believe the em > > driver uses > > > these parameters, and possibly for a good reason. > > > > > > Jim > > > > > > > -----Original Message----- > > > > From: owner-freebsd-net@FreeBSD.ORG > > > > [mailto:owner-freebsd-net@FreeBSD.ORG]On Behalf Of Luigi Rizzo > > > > Sent: Thursday, October 17, 2002 11:12 PM > > > > To: Petri Helenius > > > > Cc: Lars Eggert; freebsd-net@FreeBSD.ORG > > > > Subject: Re: ENOBUFS > > > > > > > > > > > > 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 tunabl= e? At > > > > > > > > just reading the source code, yes, it appears that the card has > > > > support for delayed rx/tx interrupts -- see RIDV and TIDV definit= ions > > > > and usage in sys/dev/em/* . I don't know in what units are the va= lues > > > > (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 gene= rates > > > > > way less. This is about 300Mbps so with the average packet size= of > > > > > 750 there should be room for more packets on the interface queu= e > > > > > before needing to service an interrupt? > > > > > > > > > > What=B4s 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 > > > > > > > > > > > > > > > = > = > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message --==_Exmh_128925830P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: This is a comment. iD8DBQE9sDyHLTFEeF+CsrMRAj3SAKDnmZM7GH1u8JAajyz6boZB7oeLEQCgiQJJ 5jP8QSLOwQE2OcI/xd9xbuo= =PgrR -----END PGP SIGNATURE----- --==_Exmh_128925830P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message