-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle kmem.limit_in_bytes removal #4018
Conversation
On what distro? |
I was doing some testing with the latest kernel when I noticed this issue with cgroups v1. The kernel config may have not enabled v2. The base OS was Ubuntu 20.04.2 LTS. |
somewhat orthogonal, but reminds me of this ticket I opened at the time; |
Oh! And I just see the latest comments on that ticket that I somehow missed 🙈 (so ignore my earlier comment) |
I need to do some experimenting first, but I think that if the Thus, it does not make sense to read those, and we can simply return a bunch of 0 in |
Flatcar Container Linux. There is still a large pool of users that want to continue running cgroup v1. We continue supporting both cgroup v1 and cgroup v2. We are currently updating to kernel v6.1.54, and kubelet doesn't start anymore in the cgroup v1 configuration. |
That's not quite right:
Kmem accounting is enabled, it's just not possible to limit it and the |
The CI error in |
Done |
LGTM, thanks, but please squash your commits. |
kmem.limit_in_bytes has been removed in upstream linux and this patch is queued to be backported to linux 6.1 stable: - https://lore.kernel.org/linux-mm/[email protected]/T/ - https://www.spinics.net/lists/stable-commits/msg316619.html Without this change to libcontainerd, GetStats() will return an error on the latest kernel(s). A downstream effect is that Kubernetes's kubelet does not start up. This fix was tested by ensuring that it unblocks kubelet startup when running on the latest kernel. Signed-off-by: Jordan Rife <[email protected]>
Done |
@jrife Could you please open a PR to cherry-pick this commit to the branch 1.1? |
kmem.limit_in_bytes has been removed in upstream linux and this patch is queued to be backported to linux 6.1 stable:
Without this change to libcontainerd, GetStats() will return an error on the latest kernel(s). A downstream effect is that Kubernetes's kubelet does not start up. This fix was tested by ensuring that it unblocks kubelet startup when running on the latest kernel.