From owner-freebsd-net@FreeBSD.ORG Mon Sep 7 13:49:19 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 A5DAD106568F for ; Mon, 7 Sep 2009 13:49:19 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mail.digiware.nl (unknown [IPv6:2001:4cb8:1:106::2]) by mx1.freebsd.org (Postfix) with ESMTP id 426048FC27 for ; Mon, 7 Sep 2009 13:49:19 +0000 (UTC) Received: from localhost (localhost.digiware.nl [127.0.0.1]) by mail.digiware.nl (Postfix) with ESMTP id F125D153434; Mon, 7 Sep 2009 15:49:17 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from mail.digiware.nl ([127.0.0.1]) by localhost (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TnZQigyaLFSD; Mon, 7 Sep 2009 15:49:15 +0200 (CEST) Received: from [212.61.27.67] (opteron [212.61.27.67]) by mail.digiware.nl (Postfix) with ESMTP id E1D08153433; Mon, 7 Sep 2009 15:49:15 +0200 (CEST) Message-ID: <4AA50F5B.1080600@digiware.nl> Date: Mon, 07 Sep 2009 15:49:15 +0200 From: Willem Jan Withagen Organization: Digiware User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Mike Tancsa References: <4AA14018.3010102@digiware.nl> <5bc218350909041002x670460c8nf202a714182d1bf6@mail.gmail.com> <4AA4F11C.4060200@digiware.nl> <200909071301.n87D1kqY062913@lava.sentex.ca> In-Reply-To: <200909071301.n87D1kqY062913@lava.sentex.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:49:19 -0000 Mike Tancsa wrote: > 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. Thanx Mike, I'll have a look. Always better well copied, than badly self invented. (free to an old dutch proverb). :) Reason I'm home growing, is that these tests are for really specific applications we're developing. And the actual purpose is to find hardware combo's that will do UDP packets a fast at we can get it out of the ports. Preferably with a 10Gbit card at close to 10Gb/s. But thus far I'm only getting the intel hardware on 1Gbit close to the line max. But I've got several boards still to test. As I side note: If anybody had experience with 10Gb hardware, I would appreciate recommandations for that as well. One of the piexes of hardware I'm currently evaluating is: Which does a nice job, with 2mbit udp in on em0 and 1Gbit udp out on port em6. --WjW