Date: Sun, 30 Sep 2001 09:39:21 -0500 From: Bob Willcox <bob@immure.com> To: Hassan Halta <hassan@cs.earlham.edu> Cc: freebsd-smp@FreeBSD.ORG Subject: Re: Zero % values for CPU and WCPU Message-ID: <20010930093921.A28955@luke.immure.com> In-Reply-To: <20010928012505.X52188-100000@quark.cs.earlham.edu>; from hassan@cs.earlham.edu on Fri, Sep 28, 2001 at 01:29:24AM -0500 References: <20010928012505.X52188-100000@quark.cs.earlham.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
I have this problem on one of my older systems here. It's a dual 400 MHz Xeon using an ASUS XG-DLS mb, running a 4.4-RC version of FreeBSD. This board has always (since I originally assembled it over 2.5 years ago now) done this. I am (still) running the following patch that I got from Tor Egge that seems to "fix" it, though: 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) This works for me (I've not noticed any ill effects from it) but YMMV. Bob On Fri, Sep 28, 2001 at 01:29:24AM -0500, Hassan Halta wrote: > Hi all, > > I have a weird problem with top after having SMP enabled in the Kernel. > Everything seems to be working just fine, except for stuff like top starts > giving me weird errors with zero % of the CPU usage. I tried to hammer the > CPU with some benchmarks, and see if that makes it get away from zero, but > there was no hope. I even recomplied top, and things seem to be the same. > Just a quick note, when I add "options NCPU=x" it says that NPU is an > unknown command, which is totally weird. > > I am running FreeBSD 4.3 Stable. It is been a problem since I had FreeBSD > 4.2 and I hoped that it would go away with 4.3, but I guess not. > > I hope that I can get some help with this! > > Thanks a lot, > Hassan > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-smp" in the body of the message -- Bob Willcox Putt's Law: bob@vieo.com Technology is dominated by two types of people: Austin, TX Those who understand what they do not manage. Those who manage what they do not understand. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010930093921.A28955>