Replies: 1 comment 5 replies
-
There are a lot of discussions and articles about why /proc/meminfo doesn't show cgroup limits, here's one: https://ops.tips/blog/why-top-inside-container-wrong-memory/ |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
After several weeks of investigation of an issue which I don't really know how to solve, just decided to drop it here in case anyone else ever wonder about it.
Basically when using resource limits in k3s (I assume k8s behaves the same), inside the container the total available is always host's.
This happens in Docker and Containerd.
Just to give an example, we've got the following limits in a Pod:
However, when running
cat /proc/meminfo
inside the container I see the following values:... which is host's.
I am not saying that effectively containers in pod exceeds limits, it's just that I find surprising that the information given does not reflect container's limits.
I could not find too much people complaining about it so I wonder whether it is only me seeing this (a misconfiguration?) or this is something accepted in general.
Hope anyone is interested in the topic.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions