Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jan 2003 01:41:04 GMT
From:      killing@multiplay.co.uk
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/47235: top reports inaccurate cpu usage
Message-ID:  <200301200141.h0K1f4lu016401@gromit.multiplay.co.uk>

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

>Number:         47235
>Category:       bin
>Synopsis:       top reports inaccurate cpu usage
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 19 17:50:02 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Steven Hartland &
>Release:        FreeBSD 5.0-RELEASE i386
>Organization:
Multiplay UK
>Environment:
System: FreeBSD gromit.multiplay.co.uk 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Thu Jan 16 22:16:53 GMT 2003 root@hollin.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386
Ibm 370 thinkpad 450Mhz 128MB RAM


>Description:
	When using top the totals at the top and the totals of the
	processes differ wildy e.g
last pid: 13371;  load averages:  1.02,  0.88,  0.51                                           up 0+02:22:35  01:33:35
35 processes:  2 running, 33 sleeping
CPU states:  100% user,  0.0% nice,  0.0% system,  0.0% interrupt,  0.0% idle
Mem: 27M Active, 58M Inact, 24M Wired, 5220K Cache, 22M Buf, 5324K Free
Swap: 235M Total, 48K Used, 235M Free

  PID USERNAME PRI NICE   SIZE    RES STATE    TIME   WCPU    CPU COMMAND
13370 root     132    0 10616K 10084K RUN      0:02 55.35%  5.27% cc1
13367 root       8    0   576K   444K wait     0:00  1.54%  0.15% make
  456 killing   96    0  5372K  1936K select   0:04  0.00%  0.00% sshd
 1962 root      96    0  2140K  1172K RUN      0:02  0.00%  0.00% top
  385 root      96    0  2628K  1644K select   0:01  0.00%  0.00% sshd
10489 root       8    0  4080K  3976K wait     0:01  0.00%  0.00% make
  661 killing   96    0  5372K  1960K select   0:01  0.00%  0.00% sshd
  390 root      96    0  3124K  1872K select   0:00  0.00%  0.00% sendmail
  618 root      20    0  1472K   964K pause    0:00  0.00%  0.00% csh
  233 root      96    0  1172K   664K select   0:00  0.00%  0.00% syslogd
  434 root       8    0  1236K   812K nanslp   0:00  0.00%  0.00% cron
  454 root       4    0  5380K  1872K sbwait   0:00  0.00%  0.00% sshd
  659 root       4    0  5380K  1920K sbwait   0:00  0.00%  0.00% sshd
  457 killing    8    0  1260K   808K wait     0:00  0.00%  0.00% bash
  665 root      20    0  1420K   884K pause    0:00  0.00%  0.00% csh
13371 root      -8    0  1096K   904K piperd   0:00  0.00%  0.00% as
  617 killing    8    0  1536K   984K wait     0:00  0.00%  0.00% su
  664 killing    8    0  1536K   984K wait     0:00  0.00%  0.00% su
12803 root       8    0   876K   436K wait     0:00  0.00%  0.00% sh
  327 root      96    0  1144K   604K select   0:00  0.00%  0.00% usbd
  662 killing    8    0  1256K   804K wait     0:00  0.00%  0.00% bash
12802 root       8    0   588K   464K wait     0:00  0.00%  0.00% make
  393 smmsp     20    0  2996K  1772K pause    0:00  0.00%  0.00% sendmail
  444 root       5    0  1184K   736K ttyin    0:00  0.00%  0.00% getty
  445 root       5    0  1184K   736K ttyin    0:00  0.00%  0.00% getty
  447 root       5    0  1184K   736K ttyin    0:00  0.00%  0.00% getty
  451 root       5    0  1184K   736K ttyin    0:00  0.00%  0.00% getty
  446 root       5    0  1184K   736K ttyin    0:00  0.00%  0.00% getty
  449 root       5    0  1184K   736K ttyin    0:00  0.00%  0.00% getty
  448 root       5    0  1184K   736K ttyin    0:00  0.00%  0.00% getty
  450 root       5    0  1184K   736K ttyin    0:00  0.00%  0.00% getty
13369 root       8    0   316K   216K wait     0:00  0.00%  0.00% cc
13368 root       8    0   864K   420K wait     0:00  0.00%  0.00% sh
12801 root       8    0   860K   416K wait     0:00  0.00%  0.00% sh
  124 root      20    0   220K    76K pause    0:00  0.00%  0.00% adjkerntz

Sometimes the machine is busy according to the process total yet 100% idle
in the CPU states other times its 0% idle and the process totals add
to nothing.

>How-To-Repeat:
	run top while doing a kernel compile
>Fix:
	Unknown
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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