RFR: 8327946: containers/docker/TestJFREvents.java fails when host kernel config vm.swappiness=0 after JDK-8325139 [v3]

SendaoYan syan at openjdk.org
Fri Apr 12 08:42:45 UTC 2024


On Thu, 11 Apr 2024 15:49:42 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

>> Thanks for your review. The space after `//` has been added.
>> 
>> I can't reproduce the "OCI runtime error" failure on mine ubuntu22 environment.
>> It seems that ubuntu22 use cgroups v2 by default.
>> ![image](https://github.com/openjdk/jdk/assets/24123821/d41934fe-afb4-45a7-abd4-df4070123bb2)
>> 
>> Can you show your host machine enviroment information, so I can reproduce the same failure. After that I will try to find a solution with cgroupv2.
>
> It seems to be podman runtime specific. `crun` fails, `runc` doesn't seem to be. Either way, the corresponding interface file, `memory.swappiness` doesn't exist for cgroup v2. Try `podman run --runtime /usr/bin/crun --rm -ti --memory-swappiness=60 fedora:39`  provided the `crun` runtime is installed in `/usr/bin`.

@jerboaa Thanks for the review. The `--memory-swappiness=60` option only added when the cgroup version is v1.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/18225#discussion_r1562232109


More information about the hotspot-dev mailing list