Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Nov 2004 17:55:45 -0800
From:      Aaron Glenn <aaron.glenn@gmail.com>
To:        Sean Chittenden <sean@chittenden.org>
Cc:        freebsd-performance@freebsd.org
Subject:   Re: I've ran out of ideas
Message-ID:  <18f6019404111817553208789e@mail.gmail.com>
In-Reply-To: <A8AF7255-39B9-11D9-B82A-000A95C705DC@chittenden.org>
References:  <18f6019404111801471db5bbfd@mail.gmail.com> <A8AF7255-39B9-11D9-B82A-000A95C705DC@chittenden.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Nov 2004 15:29:14 -0800, Sean Chittenden <sean@chittenden.org> wrote:
> Are you using thttpd+sendfile(2)?  If so, I'm going to guess you've
> exhausted your sendfile(2) buffers.  Can you run top to see what the
> state of your thttpd process is?  I've bumped into this numerous times.

sendfile? I wasn't aware of that option. I'll look into it

11303 nobody    -8    0  4124K  3516K biord    4:35  2.83%  2.83% thttpd

This is with the previous sysctl changes mentioned, and a new kernel
with HZ set to 2000 and DEVICE_POLLING enabled. Absolutely no change
on the interrupts - still 12-14% cpu.

>   If you look through arch@ there's a patch from me to change the
> behavior of sendfile(2) so that it returns with ENOBUFs instead of
> blocking when your sendfile buffers are exhausted.  I would've thought
> that alc@'s work on sendfile(2) would've prevented this from happening,
> but you may have just exhausted them in which case you're getting
> killed by this.   -sc
> 
> --
> Sean Chittenden



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18f6019404111817553208789e>