RFR: 8367319: Add os interfaces to get machine and container values separately [v2]

David Holmes dholmes at openjdk.org
Tue Oct 7 10:54:50 UTC 2025


On Tue, 7 Oct 2025 09:44:15 GMT, Casper Norrbin <cnorrbin at openjdk.org> wrote:

> By contrast, the current container-reported value treats cpu quota and logical processors as the same thing, even though quota only restricts cpu time, not the number of cores we can run on. With a quota of 1, we might still execute on two cores for 50% of the time each, but os::active_processor_count() still only reports "1".

Right - the way the "container folk" dealt with quotas etc never made any sense to me at all. I tried arguing the point but to no avail. So basically what you are looking for here is a way to get around the "broken" definition of available-processors when quotas are enforced.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27646#issuecomment-3376353013


More information about the hotspot-dev mailing list