bin/60385: vmstat/iostat/top all fail to report CPU usage

Jin Guojun[VFF] jin at adsl-63-198-35-122.dsl.snfc21.pacbell.net
Thu Dec 18 21:00:35 PST 2003


>Number:         60385
>Category:       bin
>Synopsis:       vmstat/iostat/top all fail to report CPU usage
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 18 21:00:31 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jin Guojun[VFF]
>Release:        FreeBSD 5.2-RC1
>Organization:
>Environment:
System: FreeBSD 5.2-RC1


	FreeBSD 5.2-RC1 #0: Sun Dec  7 22:15:14 GMT 2003
    root at wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0a2c000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0a2c21c.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium III/Pentium III Xeon/Celeron (463.55-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x673  Stepping = 3
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 536858624 (511 MB)
avail memory = 511819776 (488 MB)
MPTable: <OEM00000 PROD00000000>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  1
 cpu1 (AP): APIC ID:  0
ioapic0: Assuming intbase of 0
ioapic0 <Version 1.1> irqs 0-23 on motherboard
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <ASUS   P2B-DS  > on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 7 entries at 0xc00f0d20
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000

>Description:
	Regardless the system is idle or not, vmstat/iostat/top
	all cannot report where CPU goes. Top shows everything is 0.0%.
	Not clear if this is bin problem or kernel problem,
	but assume it is either the wrong structure or API issue.

# top
last pid:  2045;  load averages:  0.00,  0.00,  0.00    up 0+03:52:37  20:41:07
18 processes:  2 running, 16 sleeping
CPU states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  0.0% idle
Mem: 25M Active, 195M Inact, 73M Wired, 60M Buf, 202M Free
Swap: 1024M Total, 1024M Free

  PID USERNAME PRI NICE   SIZE    RES STATE  C   TIME   WCPU    CPU COMMAND
  458 root      96    0  6220K  2884K RUN    1   0:01  0.00%  0.00% sshd
  388 root      96    0  3488K  2464K select 1   0:01  0.00%  0.00% sshd
  394 root      96    0  3528K  2700K select 0   0:00  0.00%  0.00% sendmail
  461 root      20    0  2364K  1896K pause  1   0:00  0.00%  0.00% csh
  411 root       8    0  1336K  1016K nanslp 0   0:00  0.00%  0.00% cron
  242 root      96    0  1312K   860K select 0   0:00  0.00%  0.00% syslogd
  341 root      96    0  1236K   752K select 0   0:00  0.00%  0.00% usbd
  397 smmsp     20    0  3404K  2648K pause  0   0:00  0.00%  0.00% sendmail
 2045 root      96    0  2208K  1452K CPU1   1   0:00  0.00%  0.00% top
  450 root       5    0  1276K   928K ttyin  0   0:00  0.00%  0.00% getty

devp# iostat 1
      tty             ad0              fd0             cpu
 tin tout  KB/t tps  MB/s   KB/t tps  MB/s  us ni sy in id
   0   43 16.53   4  0.07   0.00   0  0.00   2  0  1  0 96
   0  180  0.00   0  0.00   0.00   0  0.00   0  0  0  0  0
   0   59  0.00   0  0.00   0.00   0  0.00   0  0  0  0  0
   0   59  0.00   0  0.00   0.00   0  0.00   0  0  0  0  0

devp#  vmstat 1
 procs      memory      page                    disks     faults      cpu
 r b w     avm    fre  flt  re  pi  po  fr  sr ad0 fd0   in   sy  cs us sy id
 0 0 0   28056 189588   21   0   0   0  28   0   0   0  258    0 491  2  1 96
 0 0 0   28056 189588    4   0   0   0   4   0   0   0  207    0 361  0  0  0
 0 0 0   28056 189588    0   0   0   0   0   0   0   0  207    0 358  0  0  0
^C

>How-To-Repeat:
	run vmstat, iostat and top to see the problem.

>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list