Hi Finn Arne,

On Tue, Feb 12, 2013 at 11:07:55AM +0100, Finn Arne Gangstad wrote:
> I have a server running v1.5-dev17-17-gcf181c9 which "reliably" (after
> a few hours) gets into a state where it spends 100% in epoll. It still
> works as it should, but calls epoll all the time. I'm pretty sure it
> started happening after i adjusted some timeouts and added "observe
> layer7".
> 
> strace looks like this:
> 
> epoll_wait(3, {{EPOLLIN|0x2000, {u32=37, u64=37}}}, 200, 0) = 1
> epoll_wait(3, {{EPOLLIN|0x2000, {u32=37, u64=37}}}, 200, 0) = 1
> epoll_wait(3, {{EPOLLIN|0x2000, {u32=37, u64=37}}}, 200, 0) = 1
> epoll_wait(3, {{EPOLLIN|0x2000, {u32=37, u64=37}}}, 200, 0) = 1
> ... etc

Very interesting, I privately got a somewhat similar report a few days ago
that I'm currently working on.

Just to confirm it doesn't come from commit 1c07b0755, could you please
try to apply the attached patch which reverts it ?

>From what I have observed, the issue seems to be that some health checks
are aborted without closing the fd which is still polled. I think that
your "observe layer7" is an interesting hint. I'll see if it is possible
that a server status changed during a health check causes a dirty abort
of the check.

I'll keep you informed,

Thanks!
Willy


Reply via email to