Workers CPU leak [epoll_wait,epoll_ctl]

Maxim Dounin mdounin at
Wed Mar 9 16:19:12 UTC 2016


On Wed, Mar 09, 2016 at 10:56:40AM -0500, vizl wrote:

> Thank you. 
> We don't make any changes with files or overwrite them while sendfile
> processing it. 
> Only create temp file and then mv it.

The debug log suggests this is not true.

> Maybe Is it the same bug concerned with treads aio like in this messeges, 
> and it would be fixed in future ?

Yes, and the patch provided links to the very same thread and 
resolves the problem in nginx, i.e., CPU hog.  With the patch an 
alert will be correctly logged.

Note well that the root cause of CPU hog observed are non-atomic 
file updates.  You will still see other problems till this is 
resolved (including data corruption), even with the patch.

Maxim Dounin

More information about the nginx mailing list