-
Notifications
You must be signed in to change notification settings - Fork 154
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
Accelerating the search for victims #114
Comments
If you use the new method, processes with other uids will be invisible to the daemon. And the daemon will only kill processes with the same UID and will never fail if it is not running as root. |
Actually, I think this is a bug. If another user uses up the memory, all my processes will be killed! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed that you use not optimal way to search victim:
I found best way to find PIDs in proc: just check /proc/*/exe existence. This way lets you to exclude zombies and kthreads. This way works about 30% faster in my experience: it reduces search time from 9 ms to 6 ms in nohang.
The text was updated successfully, but these errors were encountered: