From owner-freebsd-bugs@FreeBSD.ORG Thu Feb 16 18:00:31 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E0C21065742 for ; Thu, 16 Feb 2012 18:00:31 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6C8BE8FC13 for ; Thu, 16 Feb 2012 18:00:24 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1GI0OQ0011420 for ; Thu, 16 Feb 2012 18:00:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1GI0OO8011419; Thu, 16 Feb 2012 18:00:24 GMT (envelope-from gnats) Resent-Date: Thu, 16 Feb 2012 18:00:24 GMT Resent-Message-Id: <201202161800.q1GI0OO8011419@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Arnaud Lacombe Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5E9B1065670 for ; Thu, 16 Feb 2012 17:59:28 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 9FEFA8FC0A for ; Thu, 16 Feb 2012 17:59:28 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q1GHxSWn031294 for ; Thu, 16 Feb 2012 17:59:28 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q1GHxSx3031293; Thu, 16 Feb 2012 17:59:28 GMT (envelope-from nobody) Message-Id: <201202161759.q1GHxSx3031293@red.freebsd.org> Date: Thu, 16 Feb 2012 17:59:28 GMT From: Arnaud Lacombe To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/165208: Incorrect unit/description in `vm.vmtotal' output X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 18:00:31 -0000 >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: