Detecting resource limits with cgroups v2

Jan Kratochvil (Azul) jkratochvil at azul.com
Tue Dec 19 13:20:35 UTC 2023


Hi,

On Tue, 28 Nov 2023 19:29:09 +0800, Severin Gehwolf wrote:
> Could you please file an enhancement bug?

https://bugs.openjdk.org/browse/JDK-8322420


> > I guess that traversing the whole hierarchy would have some performance
> > impact (though reading the cgroup limits is already throttled), are there
> > any other concerns to traversing the ancestors?
> 
> I think it would be sufficient to figure out the hierarchy when we
> first set the path to the interface files. I.e. set it to the path
> where the lowest limit is being set.

I would find it safer to reduce the existing frequency of the checks.
But I can follow your advice.


> It would also be good to understand how we could mimic such a setup so
> we can test this properly.

There is a reproducer in the Issue above.


Jan Kratochvil


More information about the container-discuss mailing list