From owner-freebsd-net Fri Oct 18 10:38:28 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 2B5CA37B412 for ; Fri, 18 Oct 2002 10:38:27 -0700 (PDT) Received: from carp.icir.org (carp.icir.org [192.150.187.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6BAD43E9E for ; Fri, 18 Oct 2002 10:38:26 -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 g9IHcPpJ083056; Fri, 18 Oct 2002 10:38:25 -0700 (PDT) (envelope-from rizzo@carp.icir.org) Received: (from rizzo@localhost) by carp.icir.org (8.12.3/8.12.3/Submit) id g9IHcP8T083055; Fri, 18 Oct 2002 10:38:25 -0700 (PDT) (envelope-from rizzo) Date: Fri, 18 Oct 2002 10:38:25 -0700 From: Luigi Rizzo To: Petri Helenius Cc: Jim McGrath , Lars Eggert , freebsd-net@FreeBSD.ORG, freebsdnic@mailbox.cps.intel.com Subject: Re: ENOBUFS Message-ID: <20021018103825.B82982@carp.icir.org> References: <00b001c276ba$1533dbf0$3500080a@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: <00b001c276ba$1533dbf0$3500080a@PHE>; from pete@he.iki.fi on Fri, Oct 18, 2002 at 06:21:37PM +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 Fri, Oct 18, 2002 at 06:21:37PM +0300, Petri Helenius wrote: ... > Luigi´s polling work would be useful here. That would lead to incorrect > timestamps > on the packets, though? polling introduce an extra uncertainty which might be as large as an entire clock tick, yes. But even with interrupts, you cannot trust the time when the interrupt driver is run -- there are cases where an ISR is delayed by 10ms or more. And even when it runs, it might take quite a bit of time (up to a few 100's of microseconds) to drain the receive queue from packets received earlier. in normal cases, timestamps are reasonably accurate in both cases. In special cases, the error induced by having interrupts blocked causes errors which are much larger than polling alone. cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message