diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2023-04-15 13:39:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 13:39:02 +0200 |
commit | a0b096c88421548593ecebe93bbe369385087f3b (patch) | |
tree | 6a9706d587ea2ff06d1cb7f4c26b712d4ccdd706 /HISTORY.rst | |
parent | 9322179812d3177719c7bab23301646bbf862974 (diff) | |
download | psutil-a0b096c88421548593ecebe93bbe369385087f3b.tar.gz |
[NetBSD] virtual_memory() metrics are completely wrong (#2235), fixes #2234
Match values shown by **htop**. This is before. In here:
* available mem is almost the same as total (unrealistic)
* used is higher than total; there's also a failing test:
```
MEMORY
------
Total : 972.7M
Available : 959.1M
Percent : 1.4
Used : 1.1G
Free : 173.6M
Active : 434.3M
Inactive : 258.4M
Buffers : 509.4M
Cached : 692.9M
Shared : 0.0B
Wired : 280.0K
```
Now:
```
MEMORY
------
Total : 972.7M
Available : 538.1M
Percent : 44.7
Used : 434.5M
Free : 173.6M
Active : 434.2M
Inactive : 258.4M
Buffers : 509.4M
Cached : 692.9M
Shared : 0.0B
Wired : 280.0K
```
Diffstat (limited to 'HISTORY.rst')
-rw-r--r-- | HISTORY.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/HISTORY.rst b/HISTORY.rst index 63b43c69..d214e61f 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -35,6 +35,8 @@ - 2229_, [OpenBSD]: unable to properly recognize zombie processes. `NoSuchProcess`_ may be raised instead of `ZombieProcess`_. - 2231_, [NetBSD]: *available* `virtual_memory()`_ is higher than *total*. +- 2234_, [NetBSD]: `virtual_memory()`_ metrics are wrong: *available* and + *used* are too high. We now match values shown by *htop* CLI utility. 5.9.4 ===== |