You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running on FreeBSD 11.2 with Python 2.7.15 and Python 3.6.5 and have psutil version (5, 4, 6). I found that some of the values are incorrect, namely buffers, cache, and available.
My thought is that available is incorrect because psutil is unable to accurately collect buffers and cache correct? This appears to work on Fedora 28 with psutil version (5, 4, 3):
This is how psutil determines cache and buffer memory (in C).
Available is calculated as inactive + cached + free. Why do you say available mem is incorrect?
I'm running on FreeBSD 11.2 with Python 2.7.15 and Python 3.6.5 and have psutil version (5, 4, 6). I found that some of the values are incorrect, namely buffers, cache, and available.
Here are the values from
psutil.virtual_memory()
As you can see, buffers and caches are 0, but a simple output from htop shows this:
Mem[|||||||||**********************3.15G/16.0G]
Swp[|||||| 552M/4.00G]
The *** are cache. And free shows this:
Mem: 9916K Active, 430M Inact, 99M Laundry, 15G Wired, 189M Free
ARC: 12G Total, 863M MFU, 10G MRU, 24M Anon, 181M Header, 812M Other
10G Compressed, 14G Uncompressed, 1.43:1 Ratio
Swap: 4096M Total, 552M Used, 3544M Free, 13% Inuse
My thought is that available is incorrect because psutil is unable to accurately collect buffers and cache correct? This appears to work on Fedora 28 with psutil version (5, 4, 3):
The text was updated successfully, but these errors were encountered: