From owner-freebsd-hackers Thu Apr 5 15:34:25 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bdr-xcon.matchlogic.com (mail.matchlogic.com [205.216.147.127]) by hub.freebsd.org (Postfix) with ESMTP id 6E88337B449 for ; Thu, 5 Apr 2001 15:34:18 -0700 (PDT) (envelope-from crandall@matchlogic.com) Received: by mail.matchlogic.com with Internet Mail Service (5.5.2653.19) id ; Thu, 5 Apr 2001 16:33:09 -0600 Message-ID: <5FE9B713CCCDD311A03400508B8B30130828EB4E@bdr-xcln.corp.matchlogic.com> From: Charles Randall To: "'niek@wit379119.student.utwente.nl'" , freebsd-hackers@freebsd.org Subject: RE: Network throughput tuning Date: Thu, 5 Apr 2001 16:33:07 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Try using netperf (http://www.netperf.org/) too. I've found it to be an extremely valuable tool. Charles -----Original Message----- From: Niek Bergboer [mailto:niek@wit379119.student.utwente.nl] Sent: Thursday, April 05, 2001 4:35 PM To: freebsd-hackers@freebsd.org Subject: Network throughput tuning Hi, I run two systems on an intranet. The intranet itself is rather large, but the two machines in question are connected to the same 100 Mbps/FDX switch. I would like to optimize network throughput for Machine 1. Machine 1 is a AMD K6-2 233 w/ 64 MB RAM running FreeBSD 4.2-STABLE from around mid march and has a dc NIC. Machine 2 is a dual Celeron 466 running Linux 2.4.2, and also has a dc NIC ("de4x5" driver in Linux terms). In order to measure network throughput, I make sure _not_ to use the disk I/O subsystem and issue the following commands: machine1:~$ rsh machine2 dd if=/dev/zero bs=1048576 count=128 > /dev/null (Linux doesn't understand bs=1m) which yields between 9.0 and 9.2 MB/s which looks good. machine2:~$ rsh machine1 dd if=/dev/zero bs=1m count=128 > /dev/null gets me between 7.6 and 7.8 MB/s while this used to be 8.4 MB/s when machine1 was still running Linux. In short: the BSD machine receives 9.1 MB/s and sends 7.7 MB/s. Not that I'm complaining, and the lower send rate may well be due to the Linux box not handling the incoming stream well, but my question is: Did I do _everything_ on the BSD box to ensure maximum throughput? The tuning I did is: sysctl -w kern.ipc.maxsockbuf=2097152 sysctl -w net.inet.tcp.rfc1323=1 sysctl -w net.inet.tcp.sendspace=1048576 sysctl -w net.inet.tcp.recvspace=1048576 Thanks in advance, Niek -- Conscience doth make cowards of us all. -- Shakespeare To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message