On 2010-09-20, Andre Keller <a...@list.ak.cx> wrote: > > I have some odd packet loss on a openbsd based router (running -current > as of the beginning of september....) . > > The router has 6 physical interfaces (all em, Intel 82575EB), 4 of them > have traffic (about 10-20 Mbps). > > > We did some tuning (mostly with informations from: > https://calomel.org/network_performance.html) and could improve the > performance:
grr, that page again. "As a very general rule, using the on-board network card is going to be much slower than an add in PCI card" "A gigabit network controller built on board using the CPU will slow the entire system down. More than likely the system will not even be able to sustain 100MB speeds while also pegging the CPU at 100%." and people still use it for kernel tuning advice? > Currently we use the following sysctl tweaks: > sysctl kern.maxclusters=122880 how much?!! > sysctl net.inet.ip.ifq.maxlen=1536 increasing this from the defaults can be useful if you see drops in net.inet.ip.ifq.drops, I'm surprised if you have to go that high for 4x10-20Mb. > sysctl net.inet.tcp.recvspace=262144 > sysctl net.inet.tcp.sendspace=262144 > sysctl net.inet.udp.recvspace=262144 > sysctl net.inet.udp.sendspace=262144 the net.inet.*space values HAVE NO EFFECT on routed packets. > But still we have about 1300 Ierrs per minute... > > When we run a simple ping, we can see that something is strange. Where > the majority of packets have a rtt of 1ms or less about every tenth > package shows a rtt of >250ms... missing dmesg. but try disabling sensor devices or i2c controllers (boot -c, disable <somedevice>, quit).