From owner-freebsd-doc@FreeBSD.ORG Thu Oct 7 14:10:02 2010 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7719D1065670 for ; Thu, 7 Oct 2010 14:10:02 +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 3B8B68FC15 for ; Thu, 7 Oct 2010 14:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o97EA2mY077826 for ; Thu, 7 Oct 2010 14:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o97EA2U5077825; Thu, 7 Oct 2010 14:10:02 GMT (envelope-from gnats) Resent-Date: Thu, 7 Oct 2010 14:10:02 GMT Resent-Message-Id: <201010071410.o97EA2U5077825@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bas Smeelen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7750B106564A for ; Thu, 7 Oct 2010 14:04:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 4B9568FC0C for ; Thu, 7 Oct 2010 14:04:07 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o97E46aZ058045 for ; Thu, 7 Oct 2010 14:04:06 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o97E46AT058044; Thu, 7 Oct 2010 14:04:06 GMT (envelope-from nobody) Message-Id: <201010071404.o97E46AT058044@www.freebsd.org> Date: Thu, 7 Oct 2010 14:04:06 GMT From: Bas Smeelen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/151283: [patch] man(1) top change pages to bytes in description of memory X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2010 14:10:02 -0000 >Number: 151283 >Category: docs >Synopsis: [patch] man(1) top change pages to bytes in description of memory >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 07 14:10:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Bas Smeelen >Release: 8.1-RELEASE >Organization: >Environment: FreeBSD test.ose.nl 8.1-RELEASE FreeBSD 8.1-RELEASE #6: Fri Jul 30 09:08:22 CEST 2010 Freebee@test.ose.nl:/usr/obj/usr/src/sys/GIZMO amd64 >Description: The top manpage states in the memory discription that the output is in pages. The output of top in the memory section is apparantly in bytes, this can be verified in the top source file on lines 430 to 460 at the comment /* conve rt memory stats to Kbytes */ This has been discussed on freebsd-questions october 2010 >How-To-Repeat: Execute top and verify the output. >Fix: See patch below Patch attached with submission follows: --- top.local.1.orig 2010-10-07 15:16:28.000000000 +0200 +++ top.local.1 2010-10-07 15:22:48.000000000 +0200 @@ -6,7 +6,7 @@ At runtime the 'H' key will toggle this mode. The default is OFF. .SH DESCRIPTION OF MEMORY -Mem: 9220K Active, 1032K Inact, 3284K Wired, 1MB Cache, 2M Buf, 1320K Free +Mem: 9220K Active, 1032K Inact, 3284K Wired, 1M Cache, 2M Buf, 1320K Free Swap: 91M Total, 79M Free, 13% Inuse, 80K In, 104 K Out .B K: @@ -19,23 +19,23 @@ 1/100 .TP .B Active: -number of pages active +number of bytes active .TP .B Inact: -number of pages inactive +number of bytes inactive .TP .B Wired: -number of pages wired down, including cached file data pages +number of bytes wired down, including cached file data pages .TP .B Cache: -number of clean pages caching data that are available for +number of clean bytes caching data that are available for immediate reallocation .TP .B Buf: -number of pages used for BIO-level disk caching +number of bytes used for BIO-level disk caching .TP .B Free: -number of pages free +number of bytes free .TP .B Total: total available swap usage @@ -47,7 +47,7 @@ swap usage .TP .B In: -pages paged in from swap devices (last interval) +bytes paged in from swap devices (last interval) .TP .B Out: -pages paged out to swap devices (last interval) +bytes paged out to swap devices (last interval) >Release-Note: >Audit-Trail: >Unformatted: