From owner-freebsd-net@FreeBSD.ORG Thu Jul 24 15:57:49 2003 Return-Path: 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 AC33C37B401 for ; Thu, 24 Jul 2003 15:57:49 -0700 (PDT) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85E4E43FBF for ; Thu, 24 Jul 2003 15:57:48 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.8p1/8.12.3) with ESMTP id h6OMvmkN036186; Thu, 24 Jul 2003 15:57:48 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.8p1/8.12.3/Submit) id h6OMvmU5036185; Thu, 24 Jul 2003 15:57:48 -0700 (PDT) (envelope-from rizzo) Date: Thu, 24 Jul 2003 15:57:48 -0700 From: Luigi Rizzo To: "Eric W. Bates" Message-ID: <20030724155748.B35706@xorpc.icir.org> References: <002501c3522f$67e4e320$68c311cc@fortiva> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <002501c3522f$67e4e320$68c311cc@fortiva>; from ericx@vineyard.net on Thu, Jul 24, 2003 at 06:03:25PM -0400 cc: freebsd-net@freebsd.org Subject: Re: Profiling ipfw2 performance X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2003 22:57:50 -0000 On Thu, Jul 24, 2003 at 06:03:25PM -0400, Eric W. Bates wrote: > Can someone please point me to a method for measuring the packet lag between interfaces when using ipfw and/or ipfw2? in RELENG_4, i386 kernels you can add the option options KERN_TIMESTAMP which then allows you to use the TSTMP() macros (defined and documented in /sys/i386/include/param.h) to record timestamps using the TSC register, and export the readings to userland using a sysctl. This way you can get some reasonable numbers in a non-intrusive way. cheers luigi > Thanks. > > Eric W. Bates > ericx@vineyard.net > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"