From jkratochvil at azul.com Tue Dec 19 13:20:35 2023 From: jkratochvil at azul.com (Jan Kratochvil (Azul)) Date: Tue, 19 Dec 2023 21:20:35 +0800 Subject: Detecting resource limits with cgroups v2 In-Reply-To: <06706ee926bb9580c415592fbf4ac3f00398e37f.camel@redhat.com> References: <681da959-3cee-486a-af27-743ecb88a727@azul.com> <06706ee926bb9580c415592fbf4ac3f00398e37f.camel@redhat.com> Message-ID: 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