Subject: | Include SReclaimable space in realfree |
Date: | Sat, 02 May 2020 20:15:08 +0200 |
To: | bug-Sys-Statistics-Linux [...] rt.cpan.org |
From: | Linux-Fan <Ma_Sys.ma [...] web.de> |
Hello,
I would like to report an issue in Sys::Statistics::Linux::MemStats.
When checking the numbers reported by `realfree` I was surprised to find
them mismatching `free -h` output. Comparing the source codes, it seems that
`free` counts `SReclaimable` space as free. However, not being exposed
through the `Sys::Statistics::Linux::MemStats` module, it is difficult to
obtain the figure without parsing `/proc/meminfo` again (which is what I am
doing at the moment...).
I would thus propose that `SReclaimable` be taken into account for
`realfree` computation and/or that a `sreclaimable` field is created in the
mem stats.
Tell me if this sounds reasonable and I will be happy to propose a patch :)
Thanks in advance
Linux-Fan
Message body not shown because it is not plain text.