Skip to content

Rework % mem use / limit to use memory wss values #511

@Carus11

Description

@Carus11

If we examine a pod in the current /General/Perf/Container Utilization/% mem used over limit chart we can see the usage as:

image

However if we open the /General/Kubernetes/Compute Resources/Pod graph the usage is much much much less:

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions