Date: Fri, 6 Apr 2001 00:34:45 +0200 From: Niek Bergboer <niek@wit379119.student.utwente.nl> To: freebsd-hackers@freebsd.org Subject: Network throughput tuning Message-ID: <20010406003445.A92388@wit379119.student.utwente.nl>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010406003445.A92388>
