RFR: 8292083: Detected container memory limit may exceed physical machine memory [v6]
Jonathan Dowland
jdowland at openjdk.org
Fri Aug 19 16:08:04 UTC 2022
On Thu, 18 Aug 2022 18:57:11 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
> It appears `os::Linux::available_memory()` would need similar treatment, still.
I've pushed a simple fix for this as caa7913c8a1, but unfortunately this makes the logging noisiness far worse.
Deeper in the call stack of the cgroups-specific code there is some caching to avoid re-reading and parsing the cgroups filesystem too frequently. I wonder if it would be better to have the sanity checking logic behind the caching. Since I think it's better to have the sanity-checking logic at the level of `os::physical_memory`, I might see whether the caching can be brought up to that level.
-------------
PR: https://git.openjdk.org/jdk/pull/9880
More information about the hotspot-runtime-dev
mailing list