Date: Thu, 12 Oct 2006 15:24:25 -0700 From: Chuck Swiger <cswiger@mac.com> To: Scott Ullrich <sullrich@gmail.com> Cc: freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: Userland freezes during heavy packet forwarding workloads Message-ID: <E34B464C-10DD-4703-BABB-028729EF6DD9@mac.com> In-Reply-To: <d5992baf0610121411x235272fdi4675f7624ad99f2c@mail.gmail.com> References: <d5992baf0610121411x235272fdi4675f7624ad99f2c@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 12, 2006, at 2:11 PM, Scott Ullrich wrote: > We (pfSense developers) have noticed an interesting problem where > userland stops functioning under high packet forwarding workloads. > Userland applications such as sshd and lighttpd freeze but userland > resumes after the network load eases. [ ...note that the links you posted included the trailing square bracket, and thus were broken, although easily fixable by hand... ] > Is there anything we can do to prevent userland from stopping > completely when under heavy load? Is this a bug? You're probably experiencing some form of "livelock"; your hardware isn't horribly fast, and if the NICs are generating interrupts rapidly enough due to the high rate of packet forwarding, you're not going to have a lot of spare CPU available to run userland tasks. I notice you're compiling in support for DEVICE_POLLING; does enabling it do anything to help the responsiveness of the userland tasks under high network load? You might try adjusting HZ from 100 to 250 or so...I found that made a decent tradeoff between packet delay and scheduler overhead on similar Soerkis 4801 or VIA C3/EPIA-M hardware to yours. -- -Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E34B464C-10DD-4703-BABB-028729EF6DD9>