Date: Fri, 23 Dec 2005 18:28:17 +0300 From: "Andrew P." <infofarmer@gmail.com> To: "Ezequiel O. Block" <ezequielb@pilar-ciudad.com.ar> Cc: FreeBSD Ports <ports@freebsd.org>, mpd-users@lists.sourceforge.net Subject: Re: [Mpd-users] Tuning kernel for mpd Message-ID: <cb5206420512230728k161eb30dg33953886471d05d1@mail.gmail.com> In-Reply-To: <43AC04FB.8080908@pilar-ciudad.com.ar> References: <cb5206420512230425y7041745dwc4fafc55f126f36@mail.gmail.com> <43AC04FB.8080908@pilar-ciudad.com.ar>
next in thread | previous in thread | raw e-mail | index | archive | help
On 12/23/05, Ezequiel O. Block <ezequielb@pilar-ciudad.com.ar> wrote: > Andrew P. wrote: > > Dec 16 16:06:00 gw mpd: mpd: pipe: Too many open files in system > > Dec 16 16:06:00 gw mpd: mpd: fatal error, exiting > > > > I got it too, I could solve it out setting kern.maxfiles=3D100000 in > /boot/loader and rebooting. With this I have 800 ng interfaces over two > nics. (Im on 4.10, maybe 6.0 is different, dunno.) > > Under high load (traffic), I have seen some errors about running out of > mbuf buffers, I have no longer the logs to tell you the exact error, but > a kern.ipc.nmbclusters=3D"32768" did the job. You can monitor this with > netstat -m > > Now it serves 200 simultaneus PPPoe users at 30% cpu usage, connected to > two cisco routers, one with 4Mbit and the other 2Mbit to the outside > world, doing ipfw to route them. It=B4s a P4 2.2 with 256 RAM. Good tips, thanks! I'll test it next week. There's also kern.maxfilesperproc, I'll try to increase it, too. BTW, it's quite a load (30%) for such a high-spec box and such small bandwidth. Do you compress/encrypt anything? We've got only 2Mbit now (4Mbit soon), but traffic from some file servers is also going through the gateway. It's a P4 2.4GHz 256Mb box and I actually expected it to pass over 100Mbit (it's on a local gigabit backbone) through ethernet, pptp and pppoe. Thanks a lot! Andrew P.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb5206420512230728k161eb30dg33953886471d05d1>