Home -- Tutorials -- Quickies -- Manual Pages -- Search -- Feedback -- About The Site -- Forum
Adjusting FreeBSD TCP Send and Receive Buffers
added 6.9.2005 -- no source information provided


To tweak your FreeBSD TCP performance (IP tuning), you can adjust the receive and send buffer sizes.

As root, execute the following, where 65536 can be another size you choose (such as 131072):

sysctl -w net.inet.tcp.sendspace=65536
sysctl -w net.inet.tcp.recvspace=65536

If you increase the value to 262144, you must increase kern.ipc.maxsockbuf to something larger than 262144.

For example:

sysctl -w kern.ipc.maxsockbuf=524288

Hope this helps...
© Copyright 1998-2008 VANGEYN.Net, unless otherwise noted.