Date: Wed, 10 Oct 2001 16:42:48 -0700 (PDT) From: Matt Sykes <matt-sykes@excite.com> To: freebsd-questions@freebsd.org, freebsd-stable@freebsd.org Subject: 0.00% CPU for all processes Message-ID: <5180104.1002757369891.JavaMail.imail@patti.excite.com>
next in thread | raw e-mail | index | archive | help
I have recently raised the following issue in freebsd-questions and in
comp.unix.freebsd.misc. I guess I am still hoping to get a definitive
answer one way or the other.
I would very much like to know whether FreeBSD is fully functional on
this machine. That is, even though it appears normal except for the
output from top and ps, is the kernel malfunctioning in some way? Is
it safe to use this machine as a router or firewall?
kernel: 4.4-STABLE
motherboard: P2L97-DS, dual Pentium II 300MHZ
top shows 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 0.0% idle
WCPU and CPU show 0.00% for all processes in top and ps.
This problem appears in google alot. The standard solution is to
compile userland after compiling a new kernel, but this doesn't solve
it for me. Others have mentioned this problem with this motherboard,
but no resolution appears to have been made.
Actually when I boot then log in immediately, I can see some non-zero
percentages appear in top (like sshd and top itself). All processes
gradually reduce to zero percent, however, and never come back. For
example, a 'make buildworld' will put make and cc at the top, but they
still say %0.00 along with all the other processes.
It runs fine with kernel.GENERIC, so I am assuming the problem is a
result of enabling SMP. Top runs fine with SMP linux.
I have
- upgraded bios.
- cvsup src-all 4.4-STABLE
- build kernel, reboot, build world
- enabled mps 1.4 support in bios (tried it disabled too)
LINT config file says
# Notes on APM The flags takes the following meaning for apm0: 0x0020
# Statclock is broken. If apm is omitted, some systems require sysctl
# -w kern.timecounter.method=1 for correct timekeeping.
but all combinations of setting apm on/off and setting
kern.timecounter.method on/off do not correct the problem (I reboot
each time to be sure).
I tried the follwing patch I found on google archives but it didn't
seem to help (I thought it did at one point --- before I watched top
long enough to realize the percentages were falling).
Please CC my email if you reply.
Thanks.
-------------------------------------------------------
Index: clock.c
===================================================================
RCS file: /usr/cvs/FreeBSD/src/sys/i386/isa/clock.c,v
retrieving revision 1.149.2.3
diff -c -r1.149.2.3 clock.c
*** clock.c 2001/04/18 23:17:41 1.149.2.3
--- clock.c 2001/09/30 14:36:16
***************
*** 202,207 ****
--- 202,211 ----
static void
clkintr(struct clockframe frame)
{
+ #if 1 /* Patch from Tor Egge to keep rtc running */
+ while (rtcin(RTC_INTR) & RTCIR_PERIOD)
+ statclock(&frame);
+ #endif
if (timecounter->tc_get_timecount == i8254_get_timecount) {
disable_intr();
if (i8254_ticked)
-----------------------------------------------------------
machine i386
cpu I686_CPU
ident FUZZ
maxusers 32
makeoptions CONF_CFLAGS=-fno-builtin #Don't allow use of memcmp, etc.
makeoptions SC_DFLT_FONT=cp850
options INCLUDE_CONFIG_FILE # Include this file in kernel
options ROOTDEVNAME=\"ufs:da0s2e\"
options SMP # Symmetric MultiProcessor Kernel
options APIC_IO # Symmetric (APIC) I/O
options COMPAT_43
options INET #Internet communications protocols
options IPSEC #IP security
options IPSEC_ESP #IP security (crypto; define w/ IPSEC)
options MROUTING # Multicast routing
options IPFIREWALL #firewall
options IPFIREWALL_VERBOSE #print information about
options IPFIREWALL_FORWARD #enable transparent proxy support
options IPFIREWALL_VERBOSE_LIMIT=10 #limit verbosity
options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default
options IPDIVERT #divert sockets
options IPFILTER #ipfilter support
options IPFILTER_LOG #ipfilter logging
options IPSTEALTH #support for stealth forwarding
options RANDOM_IP_ID
options ACCEPT_FILTER_DATA
options ACCEPT_FILTER_HTTP
options ICMP_BANDLIM
options FFS #Fast filesystem
options MFS #Memory File System
options NFS #Network File System
options FDESC #File descriptor filesystem
options KERNFS #Kernel filesystem
options NULLFS #NULL filesystem
options UMAPFS #UID map filesystem
options FFS_ROOT #FFS usable as root device
options NFS_ROOT #NFS usable as root device
options SOFTUPDATES
options NSWAPDEV=5
options QUOTA #enable disk quotas
options P1003_1B
options _KPOSIX_PRIORITY_SCHEDULING
options AUTO_EOI_1
options MAXCONS=8 # number of virtual consoles
options SC_DISABLE_REBOOT # disable reboot key sequence
options SC_PIXEL_MODE # add support for the raster text mode
options ATA_STATIC_ID
pseudo-device ether #Generic Ethernet
pseudo-device loop #Network loopback device
pseudo-device pty #Pseudo ttys
pseudo-device speaker #Play IBM BASIC-style noises out your speaker
pseudo-device vn #Vnode driver (turns a file into a device)
pseudo-device md #Memory/malloc disk
device npx0 at nexus? port IO_NPX irq 13
device isa
device atkbdc0 at isa? port IO_KBD
device atkbd0 at atkbdc? irq 1
device psm0 at atkbdc? irq 12
device vga0 at isa?
device sc0 at isa?
device ata
device ata0
device ata1
device atadisk # ATA disk drives
device atapifd # ATAPI floppy drives
device fdc0 at isa? port IO_FD1 irq 6 drq 2
device fd0 at fdc0 drive 0
device ep
device pci
device vx0 # 3Com 3c590, 3c595 (``Vortex'')
device vx1 # 3Com 3c590, 3c595 (``Vortex'')
Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.4-STABLE #6: Wed Oct 10 02:56:50 EDT 2001
root@fuzz.mydomain.com:/usr/local/src/sys/compile/FUZZ
Timecounter "i8254" frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (300.68-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x634 Stepping = 4
Features=0x80fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,MMX>
real memory = 100651008 (98292K bytes)
avail memory = 94818304 (92596K bytes)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor motherboard
cpu0 (BSP): apic id: 1, version: 0x00040011, at 0xfee00000
cpu1 (AP): apic id: 0, version: 0x00040011, at 0xfee00000
io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000
Preloaded elf kernel "kernel" at 0xc0310000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc031009c.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 7 entries at 0xc00f0d20
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443LX (440 LX) host to PCI bridge> on motherboard
IOAPIC #0 intpin 19 -> irq 2
IOAPIC #0 intpin 18 -> irq 4
IOAPIC #0 intpin 17 -> irq 10
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443LX (440 LX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
IOAPIC #0 intpin 16 -> irq 11
pci1: <PCI bus> on pcib1
pci1: <NVidia/SGS-Thomson Riva128 graphics accelerator> at 0.0 irq 11
isab0: <Intel 82371AB PCI to ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xd800-0xd80f at device 4.1 on
pci0
ata0: at 0x1f0 irq 14 on atapci0
pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 4.2 irq 2
Timecounter "PIIX" frequency 3579545 Hz
chip1: <Intel 82371AB Power management controller> port 0xe800-0xe80f at
device 4.3 on pci0
vx0: <3COM 3C590 Etherlink III PCI> port 0xd000-0xd01f irq 4 at device 10.0
on pci0
utp/aui/bnc[*utp*]: disable 'auto select' with DOS util! address
00:a0:24:76:f9:17
vx0: driver is using old-style compatibility shims
vx1: <3COM 3C590 Etherlink III PCI> port 0xb800-0xb81f irq 10 at device 11.0
on pci0
utp/aui/bnc[*utp*]: disable 'auto select' with DOS util! address
00:a0:24:76:f7:bc
vx1: driver is using old-style compatibility shims
orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <8 virtual consoles, flags=0x200>
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
IP packet filtering initialized, divert enabled, rule-based forwarding
enabled, default to accept, logging limited to 10 packets/entry by default
IPsec: Initialized Security Association Processing.
IP Filter: v3.4.20 initialized. Default = pass all, Logging = enabled
SMP: AP CPU #1 Launched!
ad0: 2014MB <WDC AC22100H> [4092/16/63] at ata0-master WDMA2
ad1: 2014MB <WDC AC32100H> [4092/16/63] at ata0-slave WDMA2
Mounting root from ufs:/dev/ad0s1a
===============================================================================
MPTable, version 2.0.15
-------------------------------------------------------------------------------
MP Floating Pointer Structure:
location: BIOS
physical address: 0x000f6e30
signature: '_MP_'
length: 16 bytes
version: 1.4
checksum: 0x05
mode: Virtual Wire
-------------------------------------------------------------------------------
MP Config Table Header:
physical address: 0x000f6a22
signature: 'PCMP'
base table length: 252
version: 1.4
checksum: 0xee
OEM ID: 'OEM00000'
Product ID: 'PROD00000000'
OEM table pointer: 0x00000000
OEM table size: 0
entry count: 23
local APIC address: 0xfee00000
extended table length: 124
extended table checksum: 226
-------------------------------------------------------------------------------
MP Config Base Table Entries:
--
Processors: APIC ID Version State Family Model Step Flags
1 0x11 BSP, usable 6 3 4 0x80fbff
0 0x11 AP, usable 6 3 4 0x80fbff
--
Bus: Bus ID Type
0 PCI
1 PCI
2 ISA
--
I/O APICs: APIC ID Version State Address
2 0x11 usable 0xfec00000
--
I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN#
ExtINT conforms conforms 2 0 2 0
INT conforms conforms 2 1 2 1
INT conforms conforms 2 0 2 2
INT conforms conforms 2 3 2 3
INT conforms conforms 2 5 2 5
INT conforms conforms 2 6 2 6
INT conforms conforms 2 7 2 7
INT conforms conforms 2 8 2 8
INT conforms conforms 2 9 2 9
INT conforms conforms 2 12 2 12
INT conforms conforms 2 14 2 14
INT active-lo level 1 0:A 2 16
INT active-lo level 0 4:D 2 19
INT active-lo level 0 10:A 2 18
INT active-lo level 0 11:A 2 17
--
Local Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN#
ExtINT active-hi edge 2 0 255 0
NMI active-hi edge 2 0 255 1
-------------------------------------------------------------------------------
MP Config Extended Table Entries:
--
System Address Space
bus ID: 0 address type: I/O address
address base: 0x0
address range: 0x10000
--
System Address Space
bus ID: 0 address type: memory address
address base: 0x6000000
address range: 0xdcbe0000
--
System Address Space
bus ID: 0 address type: prefetch address
address base: 0xe2be0000
address range: 0x5420000
--
System Address Space
bus ID: 0 address type: memory address
address base: 0xe8000000
address range: 0x18000000
--
System Address Space
bus ID: 0 address type: memory address
address base: 0xa0000
address range: 0x20000
--
Bus Heirarchy
bus ID: 2 bus info: 0x01 parent bus ID: 0
--
Compatibility Bus Address
bus ID: 0 address modifier: add
predefined range: 0x00000000
--
Compatibility Bus Address
bus ID: 0 address modifier: add
predefined range: 0x00000001
===============================================================================
_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5180104.1002757369891.JavaMail.imail>
