-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fedora 33 exec and java memory usage of allocation is always 0 bytes #10190
Comments
Thanks @antongocode ! Thanks for the detailed report, we'll examine it and follow up. Also, to make sure we are looking at the same thing. What memory fields being reported at 0 is relevant here ? In the allocation stats, I see non-zero memory usage but 0 rss and 0 max usage: "RSS": 0,
"Cache": 0,
"Swap": 1430994944,
"Usage": 314494976,
"MaxUsage": 0, Also, I noticed that one PID is reporting non-zero RSS but zero usage: "MemoryStats": {
"RSS": 321540096,
"Cache": 0,
"Swap": 0,
"Usage": 0,
"MaxUsage": 0, We'll dig into both, but not sure which one impacts you more. Thanks! |
I picked this up from the UI showing 0 memory usage, which I assumed comes from the ResourceUsage.Memory. |
Got it. I'll attempt to reproduce and follow up if we need anything. Thanks for the info and quick response! |
Hi @antongocode. Thanks again for reporting the bug. It found the underlying issue to be Nomad mishandling of cgroup2 - and that affects ~all drivers, including Docker! As I found the issues to be more far reaching that handling of Fedora, and may require us to rethink our handling of metrics - I opened a new issue at #10251 and will keep you posted. |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Version
1.0.4
Operating system and Environment details
Fedora 33
Kernel version 5.10.20-200.fc33.x86_64
Issue
On Fedora 33 the java and exec drivers using the cgroup and chroot isolations shows 0 memory usage.
The stats object for the allocation looks as follows:
CPU stats seem to be unaffected and running the same job on a ubuntu 20.04 installation shows the memory usage correctly.
Reproduction steps
This can be reproduced with any simple example using the exec or java driver on a fedora 33 vagrant box.
Expected Result
Expecting the memory usage to be populated correctly. I found this previous issue 9120, but I don't think it's related.
The text was updated successfully, but these errors were encountered: