RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v5]

Sergey Chernyshev schernyshev at openjdk.org
Wed Nov 27 09:11:22 UTC 2024


On Mon, 25 Nov 2024 09:44:33 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> ```
> "echo '+memory' > /sys/fs/cgroup/memory/cgroup.subtree_control ; "
> ```
> 
> ... relies on the user in the container image to be `root`. So depending on which base image is being used - by means of `-Djdk.test.docker.image.name=XXX -Djdk.test.docker.image.version=XX` - it might fail unexpectedly with permission errors.

The default base image in the test library is "ubuntu:latest" with `root` as the default user. `--privileged` ensures the cgroup files are mounted read-write.

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

PR Comment: https://git.openjdk.org/jdk/pull/21808#issuecomment-2503316548


More information about the core-libs-dev mailing list