Using a torrent client with lots of connections my (Snow) Leopard used to get stalled (it just hangs and no app seems to be responding, but the GUI remains mostly functional though). The solution seems to be a bit of a network tweaking.
Create (or edit) the file
/etc/sysctl.conf
and add the following to it:
net.inet.tcp.rfc1323=0
net.inet.tcp.recvspace=32768
net.inet.tcp.sendspace=32768
net.inet.tcp.win_scale_factor=1
net.inet.tcp.sockthreshold=0
Here's a description and the defaults for the above variables ...
net.inet.tcp.rfc1323
(1): Activate [url=http://en.wikipedia.org/wiki/TCP_window_scale_option
]window scaling[/url] and timestamp options according to RFC 1323.
net.inet.tcp.recvspace
(65536): Controls how much buffer space is allocated per socket connection for incoming traffic. This is how much data the kernel will cache on a socket while the application chews on it.
net.inet.tcp.sendspace
(65536): Controls how much buffer space is allocated per socket connection for outgoing traffic. This is how much data the kernel will cache on a socket while the application chews on it.
net.inet.tcp.win_scale_factor
(3): I didn't find much info on this one. Only this: it's advised to increase the value of this variable if you use a gigabit network connection.
net.inet.tcp.sockthreshold
(64): Sets the number of open sockets needed for the system to actually obey your sendspace and recvspace marks.
Further links on the topic:
Recent comments
2 years 26 weeks ago
3 years 47 weeks ago
3 years 47 weeks ago
3 years 49 weeks ago
3 years 50 weeks ago
4 years 5 weeks ago
4 years 5 weeks ago
4 years 5 weeks ago
4 years 5 weeks ago
4 years 5 weeks ago