From owner-freebsd-net@FreeBSD.ORG Mon Sep 7 13:39:08 2009 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48FEB106566B for ; Mon, 7 Sep 2009 13:39:08 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by mx1.freebsd.org (Postfix) with ESMTP id 17B578FC1E for ; Mon, 7 Sep 2009 13:39:08 +0000 (UTC) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.14.3/8.14.3) with ESMTP id n87D1kqY062913; Mon, 7 Sep 2009 09:01:47 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200909071301.n87D1kqY062913@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Mon, 07 Sep 2009 09:05:30 -0400 To: Willem Jan Withagen From: Mike Tancsa In-Reply-To: <4AA4F11C.4060200@digiware.nl> References: <4AA14018.3010102@digiware.nl> <5bc218350909041002x670460c8nf202a714182d1bf6@mail.gmail.com> <4AA4F11C.4060200@digiware.nl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: net@freebsd.org Subject: Re: UDP output performance X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Sep 2009 13:39:08 -0000 At 07:40 AM 9/7/2009, Willem Jan Withagen wrote: >Well this turns out to be a pilot error, in that I created such a >complex bandwidth evaluation that on buffer full the packet got >tossed in the application. >:( > >Just stripping that out, and just do a > >try send >while(not send) { > usleep(1 packet-time); > try again; >} There are some nice simples tool in /usr/src/tools/tools/netrate that are great for generating arbitrary bandwidth via udp packets you might want to have a look at. ---Mike > >Reduced my packet loss to < 0.1% and I'm able to squeeze a nice > >900 Mbit/s out of a single em(4) port. Still no packets begin >dropped in netstat -i. > >So now I'm off hunting for 'bugs' in snmp, cacti, mrtg to see why >they don't like the counters. Even when I'm using the 64bit counters >I get really spiky bandwidth results. Equal to those when using 32 >bits counters, so certainly things are not as I think they are. > >Other thing is to see how Lin* is performing on this test. >So trying to install ubuntu 9.04. > >--WjW >_______________________________________________ >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" -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike