Skip to content

Conversation

viceice
Copy link
Contributor

@viceice viceice commented Mar 13, 2025

Currently memory usage is doubled because cadvisor is taking the values from cgroups which contains the parent group.
The parrent group accumulates the memory, so we need to ignore the parent.

https://stackoverflow.com/a/69282328/10109857

@sniok
Copy link
Contributor

sniok commented Mar 13, 2025

nice catch, thanks! would it make sense to add container!='' to the rest of the queries (network, fs)?

@sniok
Copy link
Contributor

sniok commented Mar 13, 2025

related issue kubernetes-sigs/headlamp#2920

@viceice
Copy link
Contributor Author

viceice commented Mar 13, 2025

nice catch, thanks! would it make sense to add container!='' to the rest of the queries (network, fs)?

Don't know, would need to test it 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Double amount of memory reported used by Pod when a pod has multiple containers.

2 participants