Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSS memory calculation overflow for some low in resource usage processes #84

Closed
btmc opened this issue May 18, 2024 · 1 comment · Fixed by #99
Closed

RSS memory calculation overflow for some low in resource usage processes #84

btmc opened this issue May 18, 2024 · 1 comment · Fixed by #99

Comments

@btmc
Copy link

btmc commented May 18, 2024

For some nodes in my setup in node view, Memory consumers, bytes graph I see some processes have 18.45E memory consumption, so the graph gets unusable.

My nodes in question run on Debian 11, using cgroups v2.

It seems to be a consequence of current RSS calculation in the agent here, wherein RSS is calculated as: current - vars["file"],.

For example, for system-getty.slice cgroup I see:

cat /sys/fs/cgroup/system.slice/system-getty.slice/memory.current
249856
cat /sys/fs/cgroup/system.slice/system-getty.slice/memory.stat | grep ^file\
file 270336

So subtraction gives negative result.

@def
Copy link
Member

def commented May 28, 2024

@btmc thank you for the report. We'll take a look ASAP

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 a pull request may close this issue.

2 participants