From owner-freebsd-net@FreeBSD.ORG Thu Apr 28 15:21:58 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC30E106564A for ; Thu, 28 Apr 2011 15:21:58 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id 5D6E98FC16 for ; Thu, 28 Apr 2011 15:21:58 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p3SFLu1C081145 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 28 Apr 2011 11:21:56 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4DB985FC.4000704@sentex.net> Date: Thu, 28 Apr 2011 11:21:32 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Adam Stylinski References: <20110428072946.GA11391@zephyr.adamsnet> <4DB965D8.7090906@sentex.net> <20110428132922.GC2800@ossumpossum.geop.uc.edu> <4DB96DDD.4070801@sentex.net> <20110428141500.GE2800@ossumpossum.geop.uc.edu> <4DB97A07.2020606@sentex.net> <20110428150110.GG2800@ossumpossum.geop.uc.edu> In-Reply-To: <20110428150110.GG2800@ossumpossum.geop.uc.edu> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on IPv6:2607:f3e0:0:1::12 Cc: freebsd-net@freebsd.org Subject: Re: em0 performance subpar 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: Thu, 28 Apr 2011 15:21:58 -0000 On 4/28/2011 11:01 AM, Adam Stylinski wrote: > > ./netblast 192.168.0.121 5001 32768 30 > > start: 1304002549.184689025 > finish: 1304002579.187555311 > send calls: 2163162 > send errors: 2095950 > approx send rate: 2240 > approx error rate: 0 > > ? This output is a bit cryptic but from what I think I understand from the source code it's the number of successful sends of the payload size in 30 seconds. > > So to do the math: > (32768*2210)/(1024*1024) > 69.06250000000000000000MB/sec? This is still only saturating about half the link speed. Just to be clear, you have something listening on the other side on port 5001 right ? ie on 192.168.0.121, you did a ./netreceive 5001... And the payload is.... 32768 ?!? Try something that does not need fragmentation and is within your max MTU. e.g. 500 byte frames should saturate a gigabit link. Watch it in real time with something like ifstat ./netblast 192.168.0.121 5001 500 5 ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/