Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

high CPU usage and epoll Poller #1515

Closed
aleph0naught opened this issue Jun 22, 2022 · 2 comments
Closed

high CPU usage and epoll Poller #1515

aleph0naught opened this issue Jun 22, 2022 · 2 comments

Comments

@aleph0naught
Copy link

Hi!

We found high CPU consumption (our java application 70%, supervisor 30%) when using supervisor
After running strace, it turned out that this consumption is associated with redirecting application's stdout to log file - supervisor using system calls read/write/select in python2 and poll in python3 - and apparently the main cpu time is spent on select syscall. Also we can't use kqueue since we use ubuntu

We need logs, so we want to reduce CPU consumption without turning them off
So far, the only thing that comes to mind is using epoll instead of select/poll to wait for descriptors in the hope that it will help

Are there any plans to add epoll to pollers list?
If so, when will it happen? And if not, is it worth adding its support on my own? Are there any pitfalls here?

Or maybe you can suggest how to solve this problem in some other way?

@aleph0naught
Copy link
Author

aleph0naught commented Jun 22, 2022

#807

P.S:
I found this issue, but I don't see solution to our problem there

@mnaberez
Copy link
Member

Duplicate of #807

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants