sys-kernel/coreos-modules: enable CONFIG_MEMCG_V1 #3289
+2
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With Kernel 6.12 the cgroup behavior changed which causes cgroup detection in JVM to break.
The previous fix in #3263 wasn't sufficient, we also need to enable
CONFIG_MEMCG_V1
.Fixes flatcar/Flatcar#1884
How to use
Build and deploy flatcar with the kernel parameter and execute tests below.
Testing done
To validate that the first attempt to fix the problem in #3263 is necessary as well:
Java complains, that cpuset and memory controller are missing and falls back to available system memory, which was fixed in #3263.
Behavior with current alpha/beta release on system with 2GB memory:
50% of the host memory is used for heap instead of 50% of the container memory limit. The debug logs complain about missing memory controller.
Behavior with this change:
This time 50% of the container memory limit is used for heap, which is what we want. Also the debug logs show, that cgroupv2 is detected.
changelog/
directory (user-facing change, bug fix, security fix, update)/boot
and/usr
size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.