Page 1 of 1

RAM memory values in CentOs 6 are incorrect

Posted: Fri Apr 12, 2019 9:32 am
by mon-team
Hello,
i've reported this anomaly als on github, this is my topic:

I installed latest NCPA version (2.1.6) on a CentOS 6.6, but values about RAM memory (memory/virtual) are incorrect (except for free memory).

NCAP values:
"available": [ 13.98, "GB" ]
"total": [ 16.72, "GB" ]
"percent": [ 16.4, "%" ]
"free": [ 3.49, "GB" ]
"used": [ 2.06, "GB"]

"free -m" command:
total used free shared buffers cached
Mem: 15943 12619 3324 398 199 7919

On the server memory values reported by htop, top, free -m and "cat /proc/meminfo" are the same.
The only values from NCPA which seems realistic is the free memory.
On CentOS 7 values are correct.
Do you confirm this anomaly?

regards
Francesco

Re: RAM memory values in CentOs 6 are incorrect

Posted: Fri Apr 12, 2019 12:31 pm
by lmiltchev
NCPA uses psutil, so it reports whatever the values are. Some of the memory types a calculated differently, so this is what is causing the issue. For more information on how virtual memory is calculated by psutil, read here:

https://psutil.readthedocs.io/en/latest ... ual_memory

Re: RAM memory values in CentOs 6 are incorrect

Posted: Tue Apr 16, 2019 4:04 am
by mon-team
Thanks for your reply.
I'll avoid to use NCPA on or centOS6 servers.
Francesco

Re: RAM memory values in CentOs 6 are incorrect

Posted: Tue Apr 16, 2019 8:12 am
by lmiltchev
Sounds good. I am closing this topic now. If you have any further questions, please open a new thread. Thank you!