Date: Thu, 16 Feb 2012 17:59:28 GMT From: Arnaud Lacombe <lacombar@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/165208: Incorrect unit/description in `vm.vmtotal' output Message-ID: <201202161759.q1GHxSx3031293@red.freebsd.org> Resent-Message-ID: <201202161800.q1GI0OO8011419@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 165208 >Category: misc >Synopsis: Incorrect unit/description in `vm.vmtotal' output >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 16 18:00:24 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Arnaud Lacombe >Release: 8-STABLE >Organization: n/a >Environment: % uname -a FreeBSD shai 8.2-STABLE FreeBSD 8.2-STABLE #2: Mon May 9 14:29:02 EDT 2011 >Description: The description "Free Memory Pages" from the output of `vm.vmtotal' is clearly wrong: % sysctl vm.vmtotal vm.vmtotal: System wide totals computed every five seconds: (values in kilobytes) =============================================== Processes: (RUNQ: 1 Disk Wait: 0 Page Wait: 0 Sleep: 147) Virtual Memory: (Total: 1075965600K, Active 2091112K) Real Memory: (Total: 199976K Active 122716K) Shared Virtual Memory: (Total: 63564K Active: 28088K) Shared Real Memory: (Total: 15200K Active: 11620K) Free Memory Pages: 507564K While the machine only really has 4G of memory, that's only at most 1 million pages. There is absolutely *no way* for this machine to have 519745536 free memory pages. >How-To-Repeat: run `sysctl vm.vmtotal', read output, think about what is written. >Fix: s/ Pages//. and break the ABI for all the people parsing sysctl(8) output. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202161759.q1GHxSx3031293>