Replies: 2 comments
-
Hi @cyrus-mc, can you share the entire I assume the reported memory usage on the dashboard is higher than expected. What was the difference between |
Beta Was this translation helpful? Give feedback.
-
@etungsten Thanks for the reply. So there are a couple of issues that I am noting here and not sure it has anything to specifically do with Bottlerocket as I see this same type of discrepancy on CoreOS (my previous base OS for worker nodes; moving to Bottlerocket). Will stick to the main point of this discussion. This deep dive all started because running Metric So based on the above I was seeing a 4G difference between the total system working set bytes and the working set bytes used by all PODs on the system. From there I checked out what the working set was for the
According to how
That means a workingSet of 4.6G. Breaking that down further
WorkingSet of 195858432 (200M)
Full memory.stat file
WorkingSet of 4454916096 (4.4G) |
Beta Was this translation helpful? Give feedback.
-
Was recently putting together some dashboards and became confused by what I was seeing for reported memory usage vs what I thought was running on the box.
Long story short looking at
container_memory_working_set_bytes{id="/kubepods.slice"}
for all POD(s) and comparing that tocontainer_memory_working_set_bytes{id="/"}
(which is basically the system memory usage) I noticed a large difference. That difference can only be used up by theruntime
orsystem
components.When I dug into the usage of memory for
containerd
(using memory.current - inactive_file) I noted thatcontainerd
was using 5G of memory. This seemed oddly strange to me that the runtime would be using up that much memory, given that the calculation forkubeReserved.memory
on this specific EC2 instance is only 850M.I am sure I am missing something here in how these values are calculate because when calculating the containerd memory usage, combined with the POD memory usage the value is greater than what kubectl top nodes gives for that specific node.
Beta Was this translation helpful? Give feedback.
All reactions