From owner-freebsd-net@FreeBSD.ORG Wed Jan 25 23:37:55 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 C7819106564A for ; Wed, 25 Jan 2012 23:37:55 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 7D8A08FC18 for ; Wed, 25 Jan 2012 23:37:55 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAMiRIE+DaFvO/2dsb2JhbABDhQmqQYFyAQEBAwEBAQEgKyALGxgCAg0ZAikBCSYGCAcEARwEh1sIpjWRVIEvh2ABBgYJBQEBAgEJAhgKBYJIBgIFAQUKAQMJCgEGAgJdHIIdgRYEiD+JBIE0gieSbw X-IronPort-AV: E=Sophos;i="4.71,571,1320642000"; d="scan'208";a="156817553" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 25 Jan 2012 18:37:38 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id EB45CB3F9A; Wed, 25 Jan 2012 18:37:38 -0500 (EST) Date: Wed, 25 Jan 2012 18:37:38 -0500 (EST) From: Rick Macklem To: "Eugene M. Zheganin" Message-ID: <234323947.154683.1327534658917.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <4F1F92DE.9060200@zhegan.in> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.203] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-net@freebsd.org 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: Wed, 25 Jan 2012 23:37:55 -0000 Eugene M. Zheganin wrote: > 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) > ? > You might want to try disabling the hardware checksumming via ifconfig. (I very vaguely recall doing that for a fxp(4) interface some time ago, but am probably completely wrong.:-) rick > > Thanks. > Eugene. > > 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"