diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2023-03-29 09:25:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 09:25:07 +0200 |
commit | 534dace8278f983a1704bb98b75d85cbbf73e5a5 (patch) | |
tree | 221b8a964fe20e7c5b6208ae7011fd794cf995ab /HISTORY.rst | |
parent | cbb5ca34d719044f7ffb35ee181dbdfdbc78cb2b (diff) | |
download | psutil-534dace8278f983a1704bb98b75d85cbbf73e5a5.tar.gz |
[Linux] guess `available` virtual_memory() if kernel says it's 0 (#2052)
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Diffstat (limited to 'HISTORY.rst')
-rw-r--r-- | HISTORY.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/HISTORY.rst b/HISTORY.rst index 1e259cbb..a86f56c4 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -12,6 +12,10 @@ **Bug fixes** +- 1915_, [Linux]: on certain kernels, ``"MemAvailable"`` field from + ``/proc/meminfo`` returns ``0`` (possibly a kernel bug), in which case we + calculate an approximation for ``available`` memory which matches "free" + CLI utility. - 2164_, [Linux]: compilation fails on kernels < 2.6.27 (e.g. CentOS 5). - 2186_, [FreeBSD]: compilation fails with Clang 15. (patch by Po-Chuan Hsieh) - 2191_, [Linux]: `disk_partitions()`_: do not unnecessarily read |