CPU system/user/cpu all zero?

CPU system/user/cpu all zero?

Post by Darren Gambl » Thu, 15 Feb 2001 14:35:04



Hi all. I am not sure if someone out there can help me with this problem.  I
did do a search on past bug reports and did discover a number of people with
this exact same problem in 1999 that wasn't resolved.

The problem is that top, vmstat, etc. shows my cpu idle, system and user all
as zero.  If I do a systat -v, I get the message:  "The alternate system
clock has died!  Reverting to ``pigs'' display."

I'd like to be able to poll the computer to get its CPU usage.  Is this a
known problem?

The system is pretty old and generic.  Here's the startup info, in case it
helps:

Feb 10 08:15:22 Femeref /kernel: Copyright (c) 1992-2000 The FreeBSD
Project.
Feb 10 08:15:22 Femeref /kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988,
1989, 1991, 1992, 1993, 1994
Feb 10 08:15:22 Femeref /kernel: The Regents of the University of
California. All rights reserved.
Feb 10 08:15:22 Femeref /kernel: FreeBSD 4.2-RELEASE #0: Mon Nov 20 13:02:55
GMT 2000
Feb 10 08:15:22 Femeref /kernel:

Feb 10 08:15:22 Femeref /kernel: Timecounter "i8254"  frequency 1193182 Hz
Feb 10 08:15:22 Femeref /kernel: CPU: Pentium/P54C (132.63-MHz 586-class
CPU)
Feb 10 08:15:22 Femeref /kernel: Origin = "GenuineIntel"  Id = 0x52c
Stepping = 12
Feb 10 08:15:22 Femeref /kernel:
Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
Feb 10 08:15:22 Femeref /kernel: real memory  = 33554432 (32768K bytes)
Feb 10 08:15:22 Femeref /kernel: config> di lnc0
Feb 10 08:15:22 Femeref /kernel: config> di ie0
Feb 10 08:15:22 Femeref /kernel: config> di fe0
Feb 10 08:15:22 Femeref /kernel: config> di ed0
Feb 10 08:15:22 Femeref /kernel: config> di cs0
Feb 10 08:15:22 Femeref /kernel: config> q
Feb 10 08:15:22 Femeref /kernel: avail memory = 28553216 (27884K bytes)
Feb 10 08:15:23 Femeref /kernel: Preloaded elf kernel "kernel" at
0xc0436000.
Feb 10 08:15:23 Femeref /kernel: Preloaded userconfig_script
"/boot/kernel.conf" at 0xc043609c.
Feb 10 08:15:23 Femeref /kernel: Intel Pentium detected, installing
workaround for F00F bug
Feb 10 08:15:23 Femeref /kernel: md0: Malloc disk
Feb 10 08:15:23 Femeref /kernel: npx0: <math processor> on motherboard
Feb 10 08:15:23 Femeref /kernel: npx0: INT 16 interface
Feb 10 08:15:23 Femeref /kernel: pcib0: <Host to PCI bridge> on motherboard
Feb 10 08:15:23 Femeref /kernel: pci0: <PCI bus> on pcib0
Feb 10 08:15:23 Femeref /kernel: isab0: <PCI to ISA bridge (vendor=10b9
device=1513)> at device 2.0 on pci
0
Feb 10 08:15:23 Femeref /kernel: isa0: <ISA bus> on isab0
Feb 10 08:15:23 Femeref /kernel: atapci0: <CMD 646 ATA controller> port
0x7050-0x705f at device 3.0 on pci
0
Feb 10 08:15:23 Femeref /kernel: ata0: at 0x1f0 irq 14 on atapci0
Feb 10 08:15:23 Femeref /kernel: ata1: at 0x170 irq 15 on atapci0
Feb 10 08:15:23 Femeref /kernel: pci0: <ATI Mach64-CT graphics accelerator>
at 4.0
Feb 10 08:15:23 Femeref /kernel: xl0: <3Com 3c905-TX Fast Etherlink XL> port
0x7000-0x703f irq 5 at device
 14.0 on pci0
Feb 10 08:15:23 Femeref /kernel: xl0: Ethernet address: 00:60:97:d4:26:64
Feb 10 08:15:23 Femeref /kernel: miibus0: <MII bus> on xl0
Feb 10 08:15:23 Femeref /kernel: nsphy0: <DP83840 10/100 media interface> on
miibus0
Feb 10 08:15:23 Femeref /kernel: nsphy0:  10baseT, 10baseT-FDX, 100baseTX,
100baseTX-FDX, auto
Feb 10 08:15:23 Femeref /kernel: pci0: <Cirrus Logic GD5434 SVGA controller>
at 15.0
Feb 10 08:15:23 Femeref /kernel: fdc0: <NEC 72065B or clone> at port
0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
Feb 10 08:15:23 Femeref /kernel: fdc0: FIFO enabled, 8 bytes threshold
Feb 10 08:15:23 Femeref /kernel: fd0: <1440-KB 3.5" drive> on fdc0 drive 0
Feb 10 08:15:23 Femeref /kernel: atkbdc0: <Keyboard controller (i8042)> at
port 0x60,0x64 on isa0
Feb 10 08:15:23 Femeref /kernel: atkbd0: <AT Keyboard> flags 0x1 irq 1 on
atkbdc0
Feb 10 08:15:23 Femeref /kernel: kbd0 at atkbd0
Feb 10 08:15:23 Femeref /kernel: vga0: <Generic ISA VGA> at port 0x3c0-0x3df
iomem 0xa0000-0xbffff on isa0
Feb 10 08:15:23 Femeref /kernel: sc0: <System console> at flags 0x100 on
isa0
Feb 10 08:15:23 Femeref /kernel: sc0: VGA <16 virtual consoles, flags=0x300>
Feb 10 08:15:23 Femeref /kernel: sio0 at port 0x3f8-0x3ff irq 4 flags 0x10
on isa0
Feb 10 08:15:23 Femeref /kernel: sio0: type 16550A
Feb 10 08:15:23 Femeref /kernel: sio1 at port 0x2f8-0x2ff irq 3 on isa0
Feb 10 08:15:23 Femeref /kernel: sio1: type 16550A
Feb 10 08:15:23 Femeref /kernel: ppc0: <Parallel port> at port 0x378-0x37f
irq 7 on isa0
Feb 10 08:15:23 Femeref /kernel: ppc0: Generic chipset (EPP/NIBBLE) in
COMPATIBLE mode
Feb 10 08:15:23 Femeref /kernel: plip0: <PLIP network interface> on ppbus0
Feb 10 08:15:23 Femeref /kernel: lpt0: <Printer> on ppbus0
Feb 10 08:15:24 Femeref /kernel: lpt0: Interrupt-driven port
Feb 10 08:15:24 Femeref /kernel: ppi0: <Parallel I/O> on ppbus0
Feb 10 08:15:24 Femeref /kernel: ad0: 1222MB <QUANTUM FIREBALL_TM1280A>
[2484/16/63] at ata0-master WDMA2
Feb 10 08:15:24 Femeref /kernel: acd0: CDROM <685A> at ata1-master using
PIO3

 
 
 

CPU system/user/cpu all zero?

Post by Dejan Oljac » Thu, 15 Feb 2001 18:49:30


On Tue, 13 Feb 2001 22:35:04 -0700, "Darren Gamble"


>Hi all. I am not sure if someone out there can help me with this problem.  I
>did do a search on past bug reports and did discover a number of people with
>this exact same problem in 1999 that wasn't resolved.

>The problem is that top, vmstat, etc. shows my cpu idle, system and user all
>as zero.  If I do a systat -v, I get the message:  "The alternate system
>clock has died!  Reverting to ``pigs'' display."

>I'd like to be able to poll the computer to get its CPU usage.  Is this a
>known problem?

>The system is pretty old and generic.  Here's the startup info, in case it
>helps:

Maybe you got a bad Timer IC onboard, depends on your chipset. Such
things happend...

 
 
 

CPU system/user/cpu all zero?

Post by Michel Talo » Thu, 15 Feb 2001 19:01:55



> Hi all. I am not sure if someone out there can help me with this problem.  I
> did do a search on past bug reports and did discover a number of people with
> this exact same problem in 1999 that wasn't resolved.

I see that you have a 4.2 kernel. Do you have also a 4.2 userland?
Because if not top etc. will not work. Another cause of trouble:
do you boot your kernel through /boot/loader or directly through the boot
blocks? In the latter case you will have the same problem.

--
Michel Talon

 
 
 

CPU system/user/cpu all zero?

Post by Darren Gambl » Fri, 16 Feb 2001 03:08:48




> > Hi all. I am not sure if someone out there can help me with this
problem.  I
> > did do a search on past bug reports and did discover a number of people
with
> > this exact same problem in 1999 that wasn't resolved.

> I see that you have a 4.2 kernel. Do you have also a 4.2 userland?
> Because if not top etc. will not work.

Yes, as stated, the machine had just been installed.  It has never been
CVSupped, etc.

 Another cause of trouble:

Quote:> do you boot your kernel through /boot/loader or directly through the boot
> blocks? In the latter case you will have the same problem.

Through the standard /boot/loader.

If it helps any, the internal clock time on the computer is OK.

Is there anything that I could supply that might help troubleshoot this?

Quote:

> --
> Michel Talon

 
 
 

CPU system/user/cpu all zero?

Post by Michel Talo » Sat, 17 Feb 2001 01:53:27






>> > Hi all. I am not sure if someone out there can help me with this
> problem.  I
>> > did do a search on past bug reports and did discover a number of people
> with
>> > this exact same problem in 1999 that wasn't resolved.

>> I see that you have a 4.2 kernel. Do you have also a 4.2 userland?
>> Because if not top etc. will not work.
> Yes, as stated, the machine had just been installed.  It has never been
> CVSupped, etc.
>  Another cause of trouble:
>> do you boot your kernel through /boot/loader or directly through the boot
>> blocks? In the latter case you will have the same problem.
> Through the standard /boot/loader.
> If it helps any, the internal clock time on the computer is OK.
> Is there anything that I could supply that might help troubleshoot this?

In this case i have never seen this problem - sorry. I read regularly the
newsgroup and the freebsd-stable mailing list and don't remember having seen
it mentioned. Perhaps you have strange hardware.
It may be rewarding to try Linux on the box and see if it has problems.

Quote:

>> --
>> Michel Talon

--
Michel Talon
 
 
 

1. High system CPU% in dual CPU System

I'm experiencing very high system CPU% indications on my new dual
Pentium III machine (SuSE Linux 7.1, Kernel 2.4.4-SMP):

  12:26am  up 1 day,  8:34,  9 users,  load average: 1.44, 2.74, 3.26
116 processes: 113 sleeping, 3 running, 0 zombie, 0 stopped
CPU0 states: 19.2% user, 32.0% system,  0.0% nice, 48.2% idle
CPU1 states: 20.4% user, 40.1% system,  0.0% nice, 38.3% idle
Mem:   512180K av,  498144K used,   14036K free,       0K shrd,  145360K buff
Swap: 1024120K av,    8504K used, 1015616K free                   39976K cache

   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
20308 root       9   0 21056  20M  1744 S     2.7  4.1   6:14 X
30471 capicall  12   0  1020 1020   772 R     0.7  0.1   0:36 top
   594 root       9   0   628  628   480 S     0.5  0.1   6:59 nscd
22072 ingo      17   0  1484 1484   576 R     0.5  0.2   0:00 ps
   596 root       9   0   628  628   480 S     0.3  0.1   6:36 nscd
22467 ingo       9   0  3940 3940  2812 R     0.3  0.7  11:03 gkrellm
22978 ingo       9   0  1380 1380  1132 S     0.3  0.2   0:04 ssh
   597 root       9   0   628  628   480 S     0.1  0.1   6:31 nscd
   598 root       9   0   628  628   480 S     0.1  0.1   6:35 nscd
22071 ingo      17   0  1036 1036   852 S     0.1  0.2   0:00 sh
...

After the initial Installation everything was fine - it must be
caused by some additonal package, but I have no clue.

What can I do to find out what the CPUs are doing during "system" time?

--

Ingo

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Cable/WAN DNS Problems

3. Sun license manager...1%cpu...1%cpu...50%cpu50%cpu50%cpu....

4. The Linux Desktop

5. Binding Oracle to two CPU's in a four CPU Sun Solaris 8 system........

6. major and minor numbers

7. testing individual cpu in multi-cpu system

8. #9 Imagine 128

9. system to user cpu ratio

10. 2 CPUs und System/User-Time

11. Allow non zero boot cpu

12. fix slab allocator for non zero boot cpu

13. cpu idle goes to zero when using tape drive