Re: squid-3.0-PRE3-20031008 w epoll bug?

From: Robert Collins <robertc@dont-contact.us>
Date: Mon, 13 Oct 2003 22:37:38 +1000

On Sat, 2003-10-11 at 06:30, Gonzalo Arana wrote:
> Hi,
>
> (I'm back to squid-gzip task now).
> I come up to this situation:
>
> squid 3.0-PRE3-20031008 with epoll
> kernel 2.4.21 patched with
> http://www.xmailserver.org/linux-patches/epoll-lt-2.4.21-0.18.diff
>
> When a client requests a very long object (such as a video), squid uses
> 100% of CPU.
>
> It was caused because epoll_wait returned immediately reporting that
> connection to client can be written without blocking.
>
> So squid was continously calling to epoll_wait, which in turn returned
> immediately.

This is something I was about to look into. Thank you.

Two things:
1) why the change to COMM_TIMEOUT as the return value? That seems
unrelated to the issue.
2) Perhaps we should set the epoll to edge triggered, which IIRC was the
default in the early epoll API (and is not now ?)

Cheers,
Rob

-- 
GPG key available at: <http://members.aardvark.net.au/lifeless/keys.txt>.

Received on Mon Oct 13 2003 - 06:37:55 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:44 MST