From owner-freebsd-net@FreeBSD.ORG Wed Jan 25 06:02:14 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 1FBCE106564A for ; Wed, 25 Jan 2012 06:02:14 +0000 (UTC) (envelope-from eugene@zhegan.in) Received: from elf.hq.norma.perm.ru (mail.norman-vivat.ru [89.250.210.68]) by mx1.freebsd.org (Postfix) with ESMTP id 838288FC08 for ; Wed, 25 Jan 2012 06:02:13 +0000 (UTC) Received: from bsdrookie.norma.com. ([IPv6:fd00::780]) by elf.hq.norma.perm.ru (8.14.4/8.14.4) with ESMTP id q0P5Rwwv008270 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 25 Jan 2012 10:27:58 +0500 (YEKT) (envelope-from eugene@zhegan.in) Message-ID: <4F1F92DE.9060200@zhegan.in> Date: Wed, 25 Jan 2012 11:27:58 +0600 From: "Eugene M. Zheganin" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0) Gecko/20111001 Thunderbird/7.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (elf.hq.norma.perm.ru [IPv6:fd00::30a]); Wed, 25 Jan 2012 10:27:58 +0500 (YEKT) X-Spam-Status: No hits=1.7 bayes=0.5 testhits RDNS_NONE=0.793, TO_NO_BRKTS_DIRECT=0.904, TO_NO_BRKTS_NORDNS=0.001 autolearn=no version=3.3.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on elf.hq.norma.perm.ru Subject: 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: Wed, 25 Jan 2012 06:02:14 -0000 Hi. 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 the 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. I've added this tweak to the sysctl: net.local.stream.recvspace=196605 net.local.stream.sendspace=196605 net.inet.tcp.sendspace=196605 net.inet.tcp.recvspace=196605 net.inet.udp.recvspace=196605 kern.ipc.maxsockbuf=2621440 kern.ipc.somaxconn=4096 net.inet.tcp.sendbuf_max=524288 net.inet.tcp.recvbuf_max=524288 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. Is there some way to maintain 9.5 Mbytes/sec (I like this speed more) ? Thanks. Eugene. P.S. This machine also runs zfs, I don't know if it's important but I decided to mention it.