-
Notifications
You must be signed in to change notification settings - Fork 33
Description
If we examine a pod in the current /General/Perf/Container Utilization/% mem used over limit chart we can see the usage as:
However if we open the /General/Kubernetes/Compute Resources/Pod graph the usage is much much much less:
In
/General/Perf/Container Utilization/Mem
the attribute used is:
container_memory_usage_bytes
In
/General/Kubernetes/Compute Resources/Pod
the attribute used is:
container_memory_working_set_bytes
Overall, we cant use the /General/Kubernetes/Compute Resources/Pod because I want to compare all compute sessions that run overnight overlaid on top of each other, and it would take to long to go through them one by one.
We would instead prefer the /General/Perf/Container Utilization/Mem chart to use container_memory_working_set_bytes instead.
According to A Deep Dive into Kubernetes Metrics — Part 3 Container Resource Metrics | by Bob Cotton | FreshTracks.io: You might think that memory utilization is easily tracked with container_memory_usage_bytes, however, this metric also includes cached (think filesystem cache) items that can be evicted under memory pressure. The better metric is container_memory_working_set_bytes as this is what the OOM killer is watching for.