Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Why is my gigabit ethernet so slow?



Antti Kantee wrote:
On Tue, Jan 26, 2010 at 01:53:13PM +0000, Matthias Scheler wrote:
On Tue, Jan 26, 2010 at 02:46:26PM +0200, Martti Kuparinen wrote:
How can I get better speed (800+ Mbps) within NetBSD?
2.) Please try to run "ttcp" with the option "-s 131072" to increase
    the socket buffer size.

Wouldn't net.inet.tcp.recv/sendbuf_auto set to 1 solve that?  Is
there any reason it isn't the default?

I ran

sysctl -w net.inet.tcp.recvbuf_auto=1
sysctl -w net.inet.tcp.sendbuf_auto=1

sysctl -w net.inet6.tcp6.recvbuf_auto=1
sysctl -w net.inet6.tcp6.sendbuf_auto=1

ifconfig wm0 ip4csum tcp4csum udp4csum tcp6csum udp6csum
ifconfig wm1 ip4csum tcp4csum udp4csum tcp6csum udp6csum

and now I get 545.01 Mbps.

Martti


Home | Main Index | Thread Index | Old Index