From owner-freebsd-net@FreeBSD.ORG Sat Jan 28 05:56:09 2012 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 687511065675 for ; Sat, 28 Jan 2012 05:56:09 +0000 (UTC) (envelope-from jshupe@hermetek.com) Received: from alcor.hermetek.com (unknown [IPv6:2607:f348:1007::2]) by mx1.freebsd.org (Postfix) with ESMTP id 28A238FC15 for ; Sat, 28 Jan 2012 05:56:09 +0000 (UTC) Received: from [10.45.29.30] (adsl-64-219-110-27.dsl.lgvwtx.swbell.net [64.219.110.27]) by alcor.hermetek.com (Postfix) with ESMTPSA id 810E13B711 for ; Wed, 25 Jan 2012 00:14:04 -0600 (CST) Message-ID: <4F1F9DAB.6020908@hermetek.com> Date: Wed, 25 Jan 2012 00:14:03 -0600 From: James Shupe Organization: HermeTek Network Solutions User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <4F1F92DE.9060200@zhegan.in> In-Reply-To: <4F1F92DE.9060200@zhegan.in> X-Enigmail-Version: 1.3.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8674301CEA752B52E1C425DE" Subject: Re: low network speed 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: Sat, 28 Jan 2012 05:56:09 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8674301CEA752B52E1C425DE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 01/24/2012 11:27 PM, Eugene M. Zheganin wrote: > Hi. >=20 > I'm suffering from low network performance on one of my FreeBSDs. > I have an i386 8.2-RELEASE machine with an fxp(4) adapter. It's > connected though a bunch of catalysts 2950 to another 8.2. While other > machines in this server room using the same sequence of switches and th= e > same target source server (which, btw, is equipped with an em(4) and a > gigabit link bia catalyst 3750) show sufficient speed, this particular > machine while using scp starts with a speed of 200 Kbytes/sec and while= > copying the file shows speed about 600-800 Kbytes/sec. >=20 > I've added this tweak to the sysctl: >=20 > net.local.stream.recvspace=3D196605 > net.local.stream.sendspace=3D196605 > net.inet.tcp.sendspace=3D196605 > net.inet.tcp.recvspace=3D196605 > net.inet.udp.recvspace=3D196605 > kern.ipc.maxsockbuf=3D2621440 > kern.ipc.somaxconn=3D4096 > net.inet.tcp.sendbuf_max=3D524288 > net.inet.tcp.recvbuf_max=3D524288 >=20 > With these settings the copying starts at 9.5 Mbytes/sec speed, but > then, as file is copying, drops down to 3.5 Megs/sec in about two-three= > minutes. >=20 > Is there some way to maintain 9.5 Mbytes/sec (I like this speed more) ?= >=20 >=20 > Thanks. > Eugene. >=20 > P.S. This machine also runs zfs, I don't know if it's important but I > decided to mention it. > _______________________________________________ > 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" Test IO independently of the network and come back. ZFS takes up a lot of memory and doesn't run amazingly well on i386. However, I doubt it drops your IO speed to under 10MBps. As for the network speed, try using the "-c blowfish" option and see what speeds you get. You fail to mention the processor, and we need to make sure it's not getting choked at the CPU during encryption before moving to the network. Try using iperf too. Remove that crap from sysctl and don't mess with it again. --------------enig8674301CEA752B52E1C425DE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJPH52rAAoJECPibMsISQ9aLv8QALJgKuLjs3m5D5VCjfgnUKd6 8C4fuk2oBl1zGGwXFuAr8oZvkvg+At0qFhdIsdNkYhdCLfp0L6uGkI2C/RzdoHsg h9nLodLGWqNm88MhYYmVEfgNvsB5S3R33Upn0aDzaP7jtFJPUCW+uJgcTqBfZ+F9 mk3qli6AXBLiAZDuof6AQ1dQUmSFK+Zh+Wa4j8ZB5RRjT/apy8Kuy8/JOD0v9HYl n+X8tSVdyWyOMIeOy0d7ZWTaQYNg9+oljk4WLOasWNnZv2cuyd1BGhEx45jKN2RE +XTczuBVP34VzAcZIFZNX1U5lyqp9f5OHTfJhGBWsC0tvXU55pEpkndOrteiABDX LUTRKBgXgB9BZmPFZapqUfFZsF2HCfHALq5Bb6mqDNy3yzg67g9ylNiBsCACJ0Cf YB97rNmoSUdvU27hkrNS7azsV9y5A9chaOjk7QkMqm/oidyrAjWNAf8phaRVpKa0 NIJfC/XRXBCdGq4GSnqhsdjm86FByH+7WQ9ONdk9wRf8vtexu8ARGvdoUEAvCB7f lQxve1MRz/l9kNiPC8IzTvIeFG2kXzFVDHE3Xhwe5zc6dxgyOtELygRllr0KEf3U 9w1u6M+uIWuTLjO28dPA8v6CDz7dgSHpwrSkTFycbV/tNMX2lqWfrAw+rOqJBiEU /hIIFjmKEGwuvqG6aFJj =y/pT -----END PGP SIGNATURE----- --------------enig8674301CEA752B52E1C425DE--