From owner-freebsd-stable@FreeBSD.ORG Fri Jan 5 18:05:38 2007 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6267816A403 for ; Fri, 5 Jan 2007 18:05:38 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.freebsd.org (Postfix) with ESMTP id 4ED5413C461 for ; Fri, 5 Jan 2007 18:05:38 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id l05I5cgr091195; Fri, 5 Jan 2007 10:05:38 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id l05I5cf6091194; Fri, 5 Jan 2007 10:05:38 -0800 (PST) (envelope-from rizzo) Date: Fri, 5 Jan 2007 10:05:38 -0800 From: Luigi Rizzo To: Eugene Grosbein Message-ID: <20070105100537.A90952@xorpc.icir.org> References: <20070105174350.GA21615@svzserv.kemerovo.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20070105174350.GA21615@svzserv.kemerovo.su>; from eugen@kuzbass.ru on Sat, Jan 06, 2007 at 12:43:50AM +0700 Cc: stable@freebsd.org, performance@freebsd.org Subject: Re: benchmark X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jan 2007 18:05:38 -0000 On Sat, Jan 06, 2007 at 12:43:50AM +0700, Eugene Grosbein wrote: > Hi! > > I'm trying to meashure network throughput between two 6.2-PRERELEASE boxes, > basically get maximim IP packets per second transmitted/received. > > Tried to use iperf from ports in UDP mode with 64 byte payload, > but it calls gettimeofday() after each write and gives me about 80Kpps only > for Pentium D 2.8Ghz. just write your own program that repeatedly calls send() on an udp socket, and you should be able to go way up. in the past (2001-2002) i tweaked the kernel with a sysctl that generated multiple (e.g. 100 or so) copies of each packet for a single send(), just for testing purposes, and on a 700 MHz machine i think i reached something in the order of 5-700kpps on a 4.x At the time the limit was the Gig-E card mounted on a PCI-66/64 bus. These days with a decent card on a PCI-X bus you shouldn't have these problems. cheers luigi > What alternative should I use? May be, a netgraph node? > > Eugene > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"