From owner-freebsd-hackers Thu Apr 5 15:30:53 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from wit379112.student.utwente.nl (wit379119.student.utwente.nl [130.89.232.129]) by hub.freebsd.org (Postfix) with ESMTP id B286237B422 for ; Thu, 5 Apr 2001 15:30:50 -0700 (PDT) (envelope-from niek@wit379112.student.utwente.nl) Received: by wit379112.student.utwente.nl (Postfix, from userid 1000) id 935715D40; Fri, 6 Apr 2001 00:34:45 +0200 (CEST) Date: Fri, 6 Apr 2001 00:34:45 +0200 From: Niek Bergboer To: freebsd-hackers@freebsd.org Subject: Network throughput tuning Message-ID: <20010406003445.A92388@wit379119.student.utwente.nl> Reply-To: niek@wit379119.student.utwente.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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