From owner-freebsd-net@FreeBSD.ORG Thu Apr 28 15:35:26 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 3A7FA106564A for ; Thu, 28 Apr 2011 15:35:26 +0000 (UTC) (envelope-from kungfujesus06@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id EC6658FC1A for ; Thu, 28 Apr 2011 15:35:25 +0000 (UTC) Received: by iwn33 with SMTP id 33so3219614iwn.13 for ; Thu, 28 Apr 2011 08:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=bjoZzvuF9jC/9UEDNAvSTgtx+q01L1iKeVdmUP4cGdk=; b=ax5ZUuawre2Q+IUBLDYpCJcXGiOfkXRYq2x/mdbO7NTy79cSqwlT7wQGkxBLWiDeAH //V2nCJHCbkf7Ag9D99cGqz+7tG2WuL1gwqrbfKWm59oK56Aqu63iS93E51Ch4Ynm3KH tyM8qZtbQusb8594L+Am31Y5rTQIbyNzrNcyU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=ChkvdTDv5Kfl9HaEVYrcDS9O6Yqlq1phkDr8BOoltA27KcJ4K9KD4yWnqS/tP3mtsO 5DTnWsm6/+SpNQfYri6ahcuyD/2e0EZItEf3KaAeHvt1as0OMI03hRPnxLnHuXFWXIys Xdzajmk8uojYoTdVkdoM+s5dQ+K8zIW/q/9I4= Received: by 10.42.115.199 with SMTP id l7mr4246883icq.308.1304004925173; Thu, 28 Apr 2011 08:35:25 -0700 (PDT) Received: from ossumpossum.geop.uc.edu ([129.137.163.68]) by mx.google.com with ESMTPS id 19sm754796ibx.1.2011.04.28.08.35.22 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Apr 2011 08:35:23 -0700 (PDT) Date: Thu, 28 Apr 2011 11:35:39 -0400 From: Adam Stylinski To: Mike Tancsa Message-ID: <20110428153539.GC19362@ossumpossum.geop.uc.edu> 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> <4DB985FC.4000704@sentex.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lCAWRPmW1mITcIfM" Content-Disposition: inline In-Reply-To: <4DB985FC.4000704@sentex.net> User-Agent: Mutt/1.5.21 (2010-09-15) 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:35:26 -0000 --lCAWRPmW1mITcIfM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 28, 2011 at 11:21:32AM -0400, Mike Tancsa wrote: > On 4/28/2011 11:01 AM, Adam Stylinski wrote: > >=20 > > ./netblast 192.168.0.121 5001 32768 30 > >=20 > > start: 1304002549.184689025 > > finish: 1304002579.187555311 > > send calls: 2163162 > > send errors: 2095950 > > approx send rate: 2240 > > approx error rate: 0 > >=20 > > ? 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. =20 > >=20 > > So to do the math:=20 > > (32768*2210)/(1024*1024) > > 69.06250000000000000000MB/sec? This is still only saturating about hal= f the link speed. >=20 > 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. >=20 > Watch it in real time with something like ifstat >=20 > ./netblast 192.168.0.121 5001 500 5 >=20 > ---Mike >=20 >=20 >=20 >=20 > --=20 > ------------------- > 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/ k so during the transmission ifstat reported: 0.53 44266.87 0.23 62788.56 0.06 62774.17 0.00 62774.26 0.00 62774.95 0.40 19482.25 And the rate output of netblast (using as suggested the parameters above): 119091 This is about 454mbps. Still way slower than it ought to be. --=20 Adam Stylinski PGP Key: http://pohl.ececs.uc.edu/~adam/publickey.pub Blog: http://technicallyliving.blogspot.com --lCAWRPmW1mITcIfM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQIcBAEBAgAGBQJNuYlKAAoJED6sRHE6TvmnCmwQAI3OnXy4q1x+dzxDGOrbSbcG D2nz9rEn94nsud+k+8CvNB/1GAlQ5HU+IgASeUISRbMQ6ewzVcOTT/eECtCiZF8g azuFS0Feliq0x5VsVs3iydX4i0uUIQt824y9m+1B32pupB0PABhoWyEzxCGVXzo/ tfIBNVohPR7i1g1+LfKKb3DfNQAJh2ZndCdZ3LvFfRFa+VtesBucAKy6W/EbclHR 3AlFHCcZLYhGCCrcH6h6xAgyTaG2kXY7GKmBZUJwu89FswwAQbBPJBrznDE8R3hm ZVq7xAf/v/x06DuezR4HKxCCmBuN7FD0XTXJWPm/de0ZFSAdbr9GLI9vpRg8NX7a OxopCYQy9mMt9afxyZPosVQgN+698i75MxgCQKK2ZrGW1zM/fe09sJlJ9JVpPDyJ wUekYYF/1pvA9iqSiIdASv/0GB0k04filrryiirWEiu36rDy5InJca+49614xg3T T0jwYcBgkmwuV2NVjZqYD8rvnAiANOTohKhmGJqp48Lypkpd8MVyzZzCZFR50qg1 M9Z6ccTFymn5Uap+K3LBS5v8jmJwFl+1nitHnfl/UVpzm1vrXCWy2US1Gi2yoRVV WI69lx0kOlMhGw41eP25lSGa+XBpUaDMgjJM9lvrR5jdQqwWKsAyrir3W0EeCQzL f4RH1Oj7gL3r4jZoc9ij =ake4 -----END PGP SIGNATURE----- --lCAWRPmW1mITcIfM--