Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8349527

cgroups v2 support cannot be inferred from /proc/cgroups in Linux 6.12

XMLWordPrintable

    • x86_64
    • linux_ubuntu

      The container support in the JDK reads /proc/cgroups to decide whether the cgroup v1 or cgroup v2 controllers are enabled. But with kernel commits https://github.com/torvalds/linux/commit/1abab1ba0775036bb67c6c57945c637be644c04f and https://github.com/torvalds/linux/commit/e93d4166b40a84df83c4d5cb4c709d022808ef9b v2 controllers may be enabled but absent from /proc/cgroup. Running a kernel with these (*_V1) options disabled prevents the container support from working at all.

      JDK-8346874 is a related bug report covering only the cpuset controller but the memory controller is required too and running a new kernel with CONFIG_MEMCG_V1 disabled (it's disabled by default) prevents the JDK's container support from working even though all the v2 controllers are available.


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: