From ada@wally.eecs.harvard.edu  Thu Jul 26 08:18:49 2001
Return-Path: <ada@wally.eecs.harvard.edu>
Received: from wally.eecs.harvard.edu (new-wally.eecs.harvard.edu [140.247.60.24])
	by hub.freebsd.org (Postfix) with ESMTP id 4A4B437B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 26 Jul 2001 08:18:45 -0700 (PDT)
	(envelope-from ada@wally.eecs.harvard.edu)
Received: (from ada@localhost)
	by wally.eecs.harvard.edu (8.11.3/8.11.3) id f6QFIe835157;
	Thu, 26 Jul 2001 11:18:40 -0400 (EDT)
	(envelope-from ada)
Message-Id: <200107261518.f6QFIe835157@wally.eecs.harvard.edu>
Date: Thu, 26 Jul 2001 11:18:40 -0400 (EDT)
From: ada@bsd.org
Reply-To: ada@bsd.org
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: top(1) manpage doesn't understand SMP
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         29245
>Category:       docs
>Synopsis:       top(1) manpage doesn't understand SMP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    keramida
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 26 08:20:00 PDT 2001
>Closed-Date:    Fri Jun 23 18:30:41 GMT 2006
>Last-Modified:  Fri Jun 23 18:30:41 GMT 2006
>Originator:     
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD wally.eecs.harvard.edu 4.3-RELEASE FreeBSD 4.3-RELEASE #1: Wed Jul 25 17:41:51 EDT 2001 root@wally.eecs.harvard.edu:/usr/src-4.3-release/sys/compile/WALLY i386

>Description:

The top manpage doesn't describe the cpu affinity column in top, nor does it
describe the CPU0/CPU1 states.

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->ceri 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Mon Sep 30 11:24:19 PDT 2002 
Responsible-Changed-Why:  
I'll take this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=29245 
Responsible-Changed-From-To: ceri->freebsd-doc 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Thu Jan 23 15:35:31 PST 2003 
Responsible-Changed-Why:  
Throw this back to the doc team at large. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=29245 

From: Pawel Worach <pawel.worach@telia.com>
To: freebsd-gnats-submit@FreeBSD.org, ada@bsd.org
Cc:  
Subject: Re: docs/29245: top(1) manpage doesn't understand SMP
Date: Wed, 16 Jul 2003 09:57:28 +0200

 Something like this?
 C could also be the "processor number on which the process last executed".
 STATE is a merge of info from top/machine.c and ps(1)
 
 ps. my first mdoc hack, so please be nice :)
 
 --- src/contrib/top/top.X.old  Thu Jan 24 18:54:04 2002
 +++ src/contrib/top/top.X      Wed Jul 16 09:49:56 2003
 @@ -288,8 +288,12 @@
   SIZE is the total size of the process (text, data, and stack),
   RES is the current amount of resident memory (both SIZE and RES are
   given in kilobytes),
 -STATE is the current state (one of \*(lqsleep\*(rq, \*(lqWAIT\*(rq,
 -\*(lqrun\*(rq, \*(lqidl\*(rq, \*(lqzomb\*(rq, or \*(lqstop\*(rq),
 +STATE is the current state (one of \*(lqSTART\*(rq, \*(lqRUN\*(rq
 +(shown as \*(lqCPUn\*(rq on SMP systems), \*(lqSLEEP\*(rq, \*(lqSTOP\*(rq,
 +\*(lqZOMB\*(rq, \*(lqWAIT\*(rq, \*(lqLOCK\*(rq or the event on which the
 +process waits),
 +C is the processor number on which the process is executing (only on SMP
 +systems),
   TIME is the number of system and user cpu seconds that the process has used,
   WCPU, when displayed, is the weighted cpu percentage (this is the same
   value that
 
State-Changed-From-To: open->patched 
State-Changed-By: keramida 
State-Changed-When: Tue May 16 15:28:39 UTC 2006 
State-Changed-Why:  
Patch committed, as revision 1.16 of src/contrib/top/top.X,v 
Thank you all. 


Responsible-Changed-From-To: freebsd-doc->keramida 
Responsible-Changed-By: keramida 
Responsible-Changed-When: Tue May 16 15:28:39 UTC 2006 
Responsible-Changed-Why:  
I will handle merging this from HEAD to RELENG_X branches. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=29245 
State-Changed-From-To: patched->closed 
State-Changed-By: keramida 
State-Changed-When: Fri Jun 23 18:29:30 UTC 2006 
State-Changed-Why:  
Merged to RELENG_6 as part of revision 1.12.2.2 
of file src/contrib/top/top.X,v 

http://www.freebsd.org/cgi/query-pr.cgi?pr=29245 
>Unformatted:
