Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Oct 2010 14:04:06 GMT
From:      Bas Smeelen <b.smeelen@ose.nl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/151283: [patch] man(1) top change pages to bytes in description of memory
Message-ID:  <201010071404.o97E46AT058044@www.freebsd.org>
Resent-Message-ID: <201010071410.o97EA2U5077825@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010071404.o97E46AT058044>