From owner-cvs-src@FreeBSD.ORG Sun Nov 16 04:53:12 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6372816A4CF; Sun, 16 Nov 2003 04:53:12 -0800 (PST) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E2DF43FBD; Sun, 16 Nov 2003 04:53:09 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.9p1/8.12.3) with ESMTP id hAGCr6Fw066829; Sun, 16 Nov 2003 04:53:06 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.9p1/8.12.3/Submit) id hAGCr6Sl066828; Sun, 16 Nov 2003 04:53:06 -0800 (PST) (envelope-from rizzo) Date: Sun, 16 Nov 2003 04:53:06 -0800 From: Luigi Rizzo To: Jeff Roberson Message-ID: <20031116045306.A66798@xorpc.icir.org> References: <20031116003939.A10853@xorpc.icir.org> <20031116071813.S10222-100000@mail.chesapeake.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20031116071813.S10222-100000@mail.chesapeake.net>; from jroberson@chesapeake.net on Sun, Nov 16, 2003 at 07:19:53AM -0500 cc: Andre Oppermann cc: Peter Jeremy cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: cvs-src@FreeBSD.org Subject: Re: cvs commit: src/sys/netinet in_var.h ip_fastfwd.c ip_flow.c ip_flow.h ip_input.c ip_output.c src/sys/sys mbuf.h src/sys/conf files src/sys/net if_arcsubr.c if_ef.c if_ethersubr.c if_fddisubr.c if_ X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2003 12:53:12 -0000 On Sun, Nov 16, 2003 at 07:19:53AM -0500, Jeff Roberson wrote: ... > > might result in the second timing call being executed before > > the section of code in the middle is complete. There is > > some nonintuitive instruction (which i now forget) to flush the > > execution pipeline which can be used around the section of > > code you want to time. > > Reading the tsc is also a serializing instruction. I often use it to > accurately measure things that take as few as 20 cycles no, according to the intel documentation it is not, and i myself have seen bogus results which clearly indicate that it is not. There was a thread on the freebsd mailing lists a few months ago. cheers luigi