RFR: 8321931: memory_swap_current_in_bytes reports 0 as "unlimited"
Gerard Ziemski
gziemski at openjdk.org
Tue Jan 16 22:02:52 UTC 2024
On Tue, 16 Jan 2024 18:13:11 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> Are we sure 0 means unlimited? I looked at https://www.kernel.org/doc/Documentation/cgroup-v1/memory.txt and did not find any remarks.
>
> https://unix.stackexchange.com/questions/420906/what-is-the-value-for-the-cgroups-limit-in-bytes-if-the-memory-is-not-restricte seems to indicate the value is some very high number. Or is this handled by the JVMs cgroup layer?
Now I'm not 100% sure. I think it was a source code comment somewhere where I saw this special 0 treatment. I will have to refresh my memory...
Thank you for taking a look!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17314#issuecomment-1894583963
More information about the hotspot-runtime-dev
mailing list