misc/73989: output of "top" cmd is incorrect

Zong C. Li zong.li at comcast.net
Mon Nov 15 20:50:22 PST 2004


>Number:         73989
>Category:       misc
>Synopsis:       output of "top" cmd is incorrect
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 16 04:50:21 GMT 2004
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:


More information about the freebsd-bugs mailing list