-
Notifications
You must be signed in to change notification settings - Fork 39
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
Free memory gives wrong result on linux #24
Comments
But only if the system's kernel is new enough to provide it. |
sure. is there a reason to stick to old kernels? |
Many installation use RHEL etc. which tend to update conservatively. |
let me rephrase it, is there a reason NOT to support new kernel feature? |
else if (strcmp(title, "MemFree:") == 0 || |
I can't avoid not to think of reasons not to support new kernel features. Yeah, something along that is obviously fine. |
The free memory returned is not correct on linux. Problem: file system cache and buffers are counted as "free", but the system might not be able to free them on demand. Example: Any file residing in /dev/shm is counted as free memory.
reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773
In osdMemUsage.c, summing of of items shoudl be replaced by the value of MemAvailable
The text was updated successfully, but these errors were encountered: