Date: Wed, 10 Jan 2024 22:04:51 -0500 From: Garrett Wollman <wollman@bimajority.org> To: "Patrick M. Hausen" <hausen@punkt.de> Cc: FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org> Subject: Re: Odd values for various memory metrics via SNMP Message-ID: <26015.23251.994177.437150@hergotha.csail.mit.edu> In-Reply-To: <E1BABD9C-C243-4949-8F69-152B4E23A8CB@punkt.de> References: <1EDAF2AC-3A2B-43BE-B66B-E095F5A80C2C@punkt.de> <de2988a0-00d6-4b4b-8150-bfa235649d64@aetern.org> <84B7C7D7-BC06-4944-A7E0-5AFC47B6BC0E@punkt.de> <8f4cf72e-8320-4bfd-a4d9-3db34db4580d@aetern.org> <A09B8144-EC0A-42DD-AAD6-D3C1E7FDFEB9@punkt.de> <25996.34932.339497.605798@hergotha.csail.mit.edu> <E1BABD9C-C243-4949-8F69-152B4E23A8CB@punkt.de>
next in thread | previous in thread | raw e-mail | index | archive | help
<<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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?26015.23251.994177.437150>