From nobody@FreeBSD.org  Tue Nov 16 04:49:16 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7B51316A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Nov 2004 04:49:16 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2CFCF43D31
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Nov 2004 04:49:16 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id iAG4m5Dr092906
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Nov 2004 04:48:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id iAG4m5ds092905;
	Tue, 16 Nov 2004 04:48:05 GMT
	(envelope-from nobody)
Message-Id: <200411160448.iAG4m5ds092905@www.freebsd.org>
Date: Tue, 16 Nov 2004 04:48:05 GMT
From: "Zong C. Li" <zong.li@comcast.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: output of "top" cmd is incorrect
X-Send-Pr-Version: www-2.3

>Number:         73989
>Category:       bin
>Synopsis:       output of "top" cmd is incorrect
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 16 04:50:21 GMT 2004
>Closed-Date:    Sat Jul 30 01:32:55 GMT 2005
>Last-Modified:  Sat Jul 30 01:32:55 GMT 2005
>Originator:     Zong C. Li
>Release:        5.3
>Organization:
redline networks
>Environment:
FreeBSD FreeBSD 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Sat Nov 13 23:16:32 PST 2004     zong@FreeBSD:/usr/obj/usr/src/sys/SMP  i386

>Description:
All CPU usage numbers are zero's in output of of "top" command. Please see the following snapshot:

last pid:  4742;  load averages:  0.00,  0.00,  0.00                                            up 1+09:05:28  21:45:37
24 processes:  1 running, 23 sleeping
CPU states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  0.0% idle
Mem: 24M Active, 280M Inact, 99M Wired, 52K Cache, 60M Buf, 91M Free
Swap: 999M Total, 999M Free

  PID USERNAME PRI NICE   SIZE    RES STATE  C   TIME   WCPU    CPU COMMAND
  473 zong      96    0 13932K 13124K select 0   0:54  0.00%  0.00% Xvnc
  479 zong      96    0  5980K  4216K select 0   0:47  0.00%  0.00% wmaker
  478 zong      96    0  5460K  4312K select 1   0:07  0.00%  0.00% xterm-static
  796 zong      96    0  4968K  4068K select 0   0:07  0.00%  0.00% xterm-static
  898 root      96    0  6060K  3792K select 0   0:07  0.00%  0.00% smbd
  536 root      96    0  4596K  2404K select 1   0:04  0.00%  0.00% nmbd
  383 root       8    0  1356K  1044K nanslp 0   0:01  0.00%  0.00% cron
  260 root      96    0  1312K   904K select 1   0:00  0.00%  0.00% syslogd
  799 zong      96    0  3284K  2816K select 0   0:00  0.00%  0.00% ssh
  480 zong       8    0  2204K  1880K wait   1   0:00  0.00%  0.00% bash
  797 zong       8    0  2200K  1876K wait   0   0:00  0.00%  0.00% bash
 4742 zong      96    0  2288K  1576K CPU1   1   0:00  0.00%  0.00% top
  427 root      96    0  1436K  1128K select 1   0:00  0.00%  0.00% inetd
  439 root       5    0  1280K   952K ttyin  0   0:00  0.00%  0.00% getty
  440 root       5    0  1280K   952K ttyin  1   0:00  0.00%  0.00% getty
  441 root       5    0  1280K   952K ttyin  0   0:00  0.00%  0.00% getty

>How-To-Repeat:
just run "top" in any shell
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Dima Dorfman <dd@freebsd.org>
To: "Zong C. Li" <zong.li@comcast.net>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/73989: output of "top" cmd is incorrect
Date: Fri, 19 Nov 2004 01:15:40 +0000

 Zong C. Li <zong.li@comcast.net> wrote:
 > >Description:
 > All CPU usage numbers are zero's in output of of "top" command. Please see the following snapshot:
 > 
 > last pid:  4742;  load averages:  0.00,  0.00,  0.00                                            up 1+09:05:28  21:45:37
 > 24 processes:  1 running, 23 sleeping
 > CPU states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  0.0% idle
 
 This looks exactly like PR 60385. Can you take a look at that PR and
 provide the output I asked for, including details about your hardware
 configuration?
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Mon Nov 29 09:09:35 GMT 2004 
State-Changed-Why:  
Note that submitter has been asked for feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73989 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Sat Jul 30 01:32:44 GMT 2005 
State-Changed-Why:  
Feedback timeout 

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