Memory usage
-
How does this:
correlate to this:
-
It's the total memory less Inactive, Free and Laundry:
https://github.com/pfsense/pfsense/blob/master/src/usr/local/www/includes/functions.inc.php#L211
Steve
-
Ok, that adds up, but why is inactive not taken into account. After all, despite not being "actively" used, it's still using the memory.
-
The comment on that code shows:
/* Include inactive and laundry with free memory since they * could be freed under pressure. */
-
I would rather have dashboard show what the situation is, not what it could be.
Documentation of the laundry is vague, is there more to it than swapping (and moving pages around)?
-
I won't pretend to be a FreeBSD memory expert.
However if you want that value to include only Free memory you can just edit that file so the line is:
$usedMem = $totalMem - $freeMem;
You can include that as an auto-installing patch even if you wanted it to survive updates.
Steve