From owner-freebsd-bugs@FreeBSD.ORG Thu Dec 18 21:00:35 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17F9C16A4CE for ; Thu, 18 Dec 2003 21:00:35 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCCD543D31 for ; Thu, 18 Dec 2003 21:00:31 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBJ50VFR034922 for ; Thu, 18 Dec 2003 21:00:31 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBJ50VFP034918; Thu, 18 Dec 2003 21:00:31 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 18 Dec 2003 21:00:31 -0800 (PST) Resent-Message-Id: <200312190500.hBJ50VFP034918@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Jin Guojun[VFF]" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12F9516A4CE for ; Thu, 18 Dec 2003 20:59:59 -0800 (PST) Received: from adsl-63-198-35-122.dsl.snfc21.pacbell.net (adsl-63-198-35-122.dsl.snfc21.pacbell.net [63.198.35.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BFB043D31 for ; Thu, 18 Dec 2003 20:59:56 -0800 (PST) (envelope-from jin@adsl-63-198-35-122.dsl.snfc21.pacbell.net) Received: from adsl-63-198-35-122.dsl.snfc21.pacbell.net (localhost.pacbell.net [127.0.0.1])ESMTP id hBJ3ZkJ7003033 for ; Thu, 18 Dec 2003 19:35:46 -0800 (PST) (envelope-from jin@adsl-63-198-35-122.dsl.snfc21.pacbell.net) Received: (from jin@localhost)id hBJ3ZkGl003032; Thu, 18 Dec 2003 19:35:46 -0800 (PST) (envelope-from jin) Message-Id: <200312190335.hBJ3ZkGl003032@adsl-63-198-35-122.dsl.snfc21.pacbell.net> Date: Thu, 18 Dec 2003 19:35:46 -0800 (PST) From: "Jin Guojun[VFF]" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/60385: vmstat/iostat/top all fail to report CPU usage X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Jin Guojun\[VFF\]" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 05:00:35 -0000 >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@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 real memory = 536858624 (511 MB) avail memory = 511819776 (488 MB) MPTable: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 1 cpu1 (AP): APIC ID: 0 ioapic0: Assuming intbase of 0 ioapic0 irqs 0-23 on motherboard Pentium Pro MTRR support enabled npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: 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: