Skip to content

Add cgroup v1 compat patch for OpenJDK detection (6.18.38-1gl1)#322

Merged
saubhikdattagithub merged 2 commits into
rel-2150from
fix/cgroup-v1-openjdk-compat
Jul 14, 2026
Merged

Add cgroup v1 compat patch for OpenJDK detection (6.18.38-1gl1)#322
saubhikdattagithub merged 2 commits into
rel-2150from
fix/cgroup-v1-openjdk-compat

Conversation

@saubhikdattagithub

@saubhikdattagithub saubhikdattagithub commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Reverts upstream commit af000ce85293 ("cgroup: Do not report unavailable v1 controllers in /proc/cgroups"), adapted for the 6.18 kernel

Problem

With CONFIG_CPUSETS_V1 and CONFIG_MEMCG_V1 disabled (upstream default in 6.18), the cpuset and memory controllers disappear from /proc/cgroups. OpenJDK 11–24 relies on /proc/cgroups (v1 API) to detect cgroup memory/CPU limits — without them the JVM defers GC and can trigger OOM in containers despite not needing all allocated memory.

References

Reverts upstream commit af000ce85293 ("cgroup: Do not report
unavailable v1 controllers in /proc/cgroups") adapted for 6.18.

With CONFIG_CPUSETS_V1 and CONFIG_MEMCG_V1 disabled, cpuset and
memory controllers disappear from /proc/cgroups. OpenJDK 11-24
relies on /proc/cgroups to detect cgroup memory/CPU limits — without
them the JVM defers GC and triggers OOM in containers.

Origin: https://sources.debian.org/patches/linux/6.12.43-1~bpo12+1/debian/revert-cgroup-do-not-report-unavailable-v1-controlle.patch/
Bug-Debian: https://bugs.debian.org/1108294

Bumps version_suffix to gl1~bp2150.
@saubhikdattagithub saubhikdattagithub self-assigned this Jul 13, 2026
@saubhikdattagithub saubhikdattagithub merged commit 7b819cd into rel-2150 Jul 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants