rTorrent + FreeBSD + pf = freeze?

Michael Schaefer utf128 at googlemail.com
Tue Nov 24 23:06:27 UTC 2009


Hi Michael,

On 24.11.2009 00:41, Michael K. Smith wrote:
> We had similar crashes with PF, although not related to rtorrent
> specifically.  However, we use the following sysctl values that have helped
> stability and performance immensely.
> 
> net.inet.carp.preempt=1
> net.inet.carp.arpbalance=0
> net.inet.icmp.icmplim=2000
> net.inet.tcp.sendspace=65536
> net.inet.tcp.recvspace=65536
> net.inet.tcp.blackhole=2
> net.inet.udp.blackhole=1
> kern.ipc.somaxconn=32768
> net.inet.tcp.mssdflt=1460
> kern.ipc.maxsockbuf=16777216
> kern.ipc.nmbclusters=32768
> kern.maxfiles=65536
> kern.maxfilesperproc=32768
> kern.maxvnodes=600000
> net.inet.tcp.delayed_ack=0
> net.inet.tcp.inflight.enable=0
> net.inet.tcp.path_mtu_discovery=0
> net.inet.tcp.recvbuf_auto=1
> net.inet.tcp.recvbuf_inc=16384
> net.inet.tcp.recvbuf_max=16777216
> net.inet.tcp.rfc1323=1
> net.inet.tcp.sendbuf_auto=1
> net.inet.tcp.sendbuf_inc=8192
> net.inet.udp.maxdgram=57344
> net.inet.udp.recvspace=65536
> net.local.stream.recvspace=65536
> net.inet.tcp.sendbuf_max=16777216

thank you for the hint. I tried those values which seem to affect the
traffic class i'm talking about. So what I actually changed is listed below:

sysctl kern.ipc.somaxconn=512
sysctl net.inet.tcp.sendspace=65536
sysctl kern.ipc.maxsockbuf=1048576
sysctl kern.ipc.nmbclusters=32768
sysctl kern.maxvnodes=200000
sysctl net.inet.tcp.recvbuf_max=16777216
sysctl net.local.stream.recvspace=65536

Interesting enough I really was able to start the mentioned rtorrent
instance without crashing the machine. but unfortunately the crash just
was delayed so that the machine rebooted after ~3hours.
However these values seemed to affect the stability and are somehow
related with the problem.
For now i'm just upgrading to 8.0-RELEASE and will see how things change..

regards - michael


More information about the freebsd-questions mailing list