NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/52669 (htop displays wrong used memory)

Synopsis: htop displays wrong used memory

Responsible-Changed-From-To: pkg-manager->kern-bug-people
Responsible-Changed-When: Fri, 24 Nov 2017 03:19:21 +0000
Now for why netbsd reports a different value.

State-Changed-From-To: open->analyzed
State-Changed-When: Fri, 24 Nov 2017 03:19:21 +0000
This is because the calculation is:
MemTotal - MemFree - buffers - cache
uvmexp.npages - - uvmexp.filepages - (uvmexp.anonpages + uvmexp.filepages + uvmexp.execpages)
We remove uvmexp.filepages twice, so it can be a negative number.

Home | Main Index | Thread Index | Old Index