Closed akicker closed 5 years ago
Memory usage on Linux is captured by fetching data from /proc/meminfo
. Can you please post a cat /proc/meminfo
and a screenshot of the figures shown in the Taskmanager at the same time? Thanks!
hi, meminfo shows: stepping back to Sysinfo 0.9.4 shows more plausible values!
... one more info using the command free ... used total matches with taskman ;-)
Thanks. The difference is that TaskManager shows MemAvailable instead of MemFree. MemAvailable is an estimation of MemFree plus reclaimable memory (buffers and cache).
// |------------------------------------------------------------|
// | R A M |
// |______________________|_____________________________________|
// | | available (6) estimated |
// |______________________|_________________________|___________|
// | active (2) | buffers/cache (5) | free (3) |
// |________________________________________________|___________|
// | total (1) |
// |____________________________________________________________|
//
See also: http://www.software-architect.net/blog/article/date/2015/06/12/-826c6e5052.html
In summary, there are different interpretation on what memory used and free are. As a compromise I'll provide memory active and available as additional attributes with the next version.
OK, the issue is how used is defined ;-) in the previous version 0.9.4 memory was defined as res.total - res.avail see: ../node_modules/pimatic-sysinfo/sysinfo.coffee now 0.9.5 you are showing usedMemory as res.used (looks like total - free) raspbian taskman shows: memory consumption (total- avail) command free uses: used = total - free - buffers - cache command top shows similar values as free I think the old definition (total-avail) says more on the health of the system!
I think the old definition (total-avail) says more on the health of the system!
I agree with this and will change the values for memoryUsed (= Active) and memoryFree (= Available) with the next release.
Great, working perfect now 👍
Excellent! I am closing this now.
Sysinfo 0.9.5 shows about double values (M USED) than taskmanager, ...