On Wed, Sep 27, 2006 at 10:12:12AM +0100, jacek wrote: > Hi all, > > I bumped on your that emial on the list > http://archives.neohapsis.com/archives/openbsd/2005-06/1679.html about > testing the bandwidth between obsd <> obsd , obsd <> linux and thorugh > router linux <> bsd <> linux boxes. Im using dell 1425SC boxes witch 1GB > em0 nics and my machine with openbsd 3.9 routes packets only with max around > 680Mbits/s for one connection using iperf , window from 64k - 256k or up to > 800Mbits/s for 2 or more connections using iperf , window 64k-256k , the > best results i got with window 128k ,direct connections to openbsd box with > one conn from iperf are 40Mbits/s ??!! and a few connection the speed is > multiply how many connection you do 2 so speed is 80Mbits/s??!!.These are > parameters i have on my obsd box and command i used to test. > > net.inet.tcp.sendspace=131072 > net.inet.tcp.recvspace=131072 >
Does not matter on a router. > not sure that it has any affection on speed > net.inet.tcp.sackholelimit=65536 > Does not matter on a router. > i increased it > net.bpf.bufsize=65536 > Does not matter on a router unless you plan to toy around with sniffing tools like snort (but that does not belong on a router anyway). You should have a look at net.inet.ip.ifq.maxlen. Also look at net.inet.ip.ifq.drops if it goes up or not. Tuning the ifq size is black magic because to large queues reduce the performance and may case high delays. Something around 100-300 is enough for a router. Have you enabled pf(4)? I remeber that ipref2 has issues on OpenBSD because of the way they use threads. Not sure if it got fixed. -- :wq Claudio