Bug 29245

Summary: top(1) manpage doesn't understand SMP
Product: Documentation Reporter: ada <ada>
Component: Books & ArticlesAssignee: Giorgos Keramidas <keramida>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description ada 2001-07-26 16:20:00 UTC
The top manpage doesn't describe the cpu affinity column in top, nor does it
describe the CPU0/CPU1 states.
Comment 1 Ceri Davies freebsd_committer freebsd_triage 2002-09-30 19:24:19 UTC
Responsible Changed
From-To: freebsd-doc->ceri

I'll take this.
Comment 2 Ceri Davies freebsd_committer freebsd_triage 2003-01-23 23:35:31 UTC
Responsible Changed
From-To: ceri->freebsd-doc

Throw this back to the doc team at large.
Comment 3 Pawel Worach 2003-07-16 08:57:28 UTC
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
Comment 4 Giorgos Keramidas freebsd_committer freebsd_triage 2006-05-16 16:28:39 UTC
State Changed
From-To: open->patched

Patch committed, as revision 1.16 of src/contrib/top/top.X,v 
Thank you all. 


Comment 5 Giorgos Keramidas freebsd_committer freebsd_triage 2006-05-16 16:28:39 UTC
Responsible Changed
From-To: freebsd-doc->keramida

I will handle merging this from HEAD to RELENG_X branches.
Comment 6 Giorgos Keramidas freebsd_committer freebsd_triage 2006-06-23 19:29:30 UTC
State Changed
From-To: patched->closed

Merged to RELENG_6 as part of revision 1.12.2.2 
of file src/contrib/top/top.X,v