RFR: 8333446: Add tests for hierarchical container support [v3]
Severin Gehwolf
sgehwolf at openjdk.org
Thu Jul 11 14:39:55 UTC 2024
On Thu, 11 Jul 2024 14:26:23 GMT, Jan Kratochvil <jkratochvil at openjdk.org> wrote:
> > > ```
> > > * `CPUQuota` (changed it to `AllowedCPUs`) does not work for me - it properly distributes the load but JDK still sees all available CPU cores (4 of my VM).
> > > ```
> >
> >
> > Could you elaborate on that? What does not work?
>
> In the log there is (`/proc/cpuinfo` has 4 entries on this system):
>
> ```
> [0.139s][trace][os,container] OSContainer::active_processor_count: 4
> ```
>
> and therefore it fails with:
>
> ```
> java.lang.RuntimeException: 'OSContainer::active_processor_count: 2' missing from stdout/stderr
> at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:252)
> at SystemdMemoryAwarenessTest.testHelloSystemd(SystemdMemoryAwarenessTest.java:58)
> at SystemdMemoryAwarenessTest.main(SystemdMemoryAwarenessTest.java:43)
> at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
> at java.base/java.lang.reflect.Method.invoke(Method.java:580)
> at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
> at java.base/java.lang.Thread.run(Thread.java:1575)
> ```
>
> It is on Fedora 40 x86_64 (`systemd-255.8-1.fc40.x86_64`).
Well yes, because the limit isn't properly detected (needs a JVM change that does that; imo https://github.com/openjdk/jdk/pull/17198).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19530#issuecomment-2223109654
More information about the core-libs-dev
mailing list