Date: Wed, 25 Nov 2009 00:06:23 +0100 From: Michael Schaefer <utf128@googlemail.com> To: freebsd-questions@freebsd.org Subject: Re: rTorrent + FreeBSD + pf = freeze? Message-ID: <4B0C66EF.9010709@gmail.com> In-Reply-To: <C7305DBD.CA036%mksmith@adhost.com> References: <C7305DBD.CA036%mksmith@adhost.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B0C66EF.9010709>