From owner-freebsd-stable Wed Oct 10 16:43:54 2001 Delivered-To: freebsd-stable@freebsd.org Received: from gigi.excite.com (gigi.excite.com [199.172.152.110]) by hub.freebsd.org (Postfix) with ESMTP id 040A037B40D; Wed, 10 Oct 2001 16:42:51 -0700 (PDT) Received: from patti.excite.com ([199.172.148.159]) by gigi.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20011010234249.RZNU17391.gigi.excite.com@patti.excite.com>; Wed, 10 Oct 2001 16:42:49 -0700 Message-ID: <5180104.1002757369891.JavaMail.imail@patti.excite.com> Date: Wed, 10 Oct 2001 16:42:48 -0700 (PDT) From: Matt Sykes To: freebsd-questions@freebsd.org, freebsd-stable@freebsd.org Subject: 0.00% CPU for all processes Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 66.3.230.250 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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: on motherboard npx0: INT 16 interface pcib0: on motherboard IOAPIC #0 intpin 19 -> irq 2 IOAPIC #0 intpin 18 -> irq 4 IOAPIC #0 intpin 17 -> irq 10 pci0: on pcib0 pcib1: at device 1.0 on pci0 IOAPIC #0 intpin 16 -> irq 11 pci1: on pcib1 pci1: at 0.0 irq 11 isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0xd800-0xd80f at device 4.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 pci0: at 4.2 irq 2 Timecounter "PIIX" frequency 3579545 Hz chip1: 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: