Re: Odd values for various memory metrics via SNMP

From: Garrett Wollman <wollman_at_bimajority.org>
Date: Thu, 11 Jan 2024 03:04:51 UTC
<<On Sat, 6 Jan 2024 13:02:26 +0100, "Patrick M. Hausen" <hausen@punkt.de> said:

>> [I wrote:]
>> This is computed by the function vmtotal() in sys/vm/vm_meter.c.  It
>> walks all VM objects in the system, skipping those that are
>> unreferenced, and adds up all of their sizes.
>> [...]

> Why does FreeBSD calculate the values this way while MWL's book clearly
> states differently? Who's wrong here?

I cannot speak for Michael Lucas.  FreeBSD has ~always calculated VM
statistics in this way; the same algorithm was in 4.4BSD, thirty years
ago.

-GAWollman