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

Test/document cgroups behavior #80

Closed
olix0r opened this issue Jul 12, 2019 · 1 comment · Fixed by #96
Closed

Test/document cgroups behavior #80

olix0r opened this issue Jul 12, 2019 · 1 comment · Fixed by #96

Comments

@olix0r
Copy link

olix0r commented Jul 12, 2019

Linux cgroups(7) can limit cpu shares for a process (typically via Docker). Processes that use num_cpus, however, may be shown the number of CPUs available on the host OS and not the CPU shares as provided by cgroups.

I'm not 100% sure of the state of things, but we should build a small dockerized demo application to validate that CPU limits are reflected through num_cpus. If it's not cgroups-aware, we should make it so.

@lucab
Copy link

lucab commented Feb 13, 2020

Relevant related logic from OpenJDK 15: https://github.com/openjdk/jdk/blob/jdk-15%2B0/src/hotspot/os/linux/os_linux.cpp#L5391-L5403

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

Successfully merging a pull request may close this issue.

2 participants