From owner-freebsd-questions Mon Oct 15 20:27:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail8.nc.rr.com (fe8.southeast.rr.com [24.93.67.55]) by hub.freebsd.org (Postfix) with ESMTP id ACF9537B40D; Mon, 15 Oct 2001 20:27:30 -0700 (PDT) Received: from i8k.babbleon.org ([66.57.85.154]) by mail8.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Mon, 15 Oct 2001 23:27:19 -0400 Content-Type: text/plain; charset="iso-8859-1" From: Brian T.Schellenberger To: Matt Sykes , Jason Andresen Subject: Re: 0.00% CPU for all processes Date: Mon, 15 Oct 2001 23:27:12 -0400 X-Mailer: KMail [version 1.2] Cc: freebsd-questions@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG References: <19663931.1003184867692.JavaMail.imail@patti.excite.com> In-Reply-To: <19663931.1003184867692.JavaMail.imail@patti.excite.com> MIME-Version: 1.0 Message-Id: <01101523271202.00737@i8k.babbleon.org> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "top" consistently shows as 0.00% for me while running top. On a relatively idle machine, only X-related processes (xosview, kmail, XFree86, mozilla) ever show as anything other than 0.00%, so if you are running in console mode, 0.00% might quite possibly be right for everything. The CPU will show up as right busy, though, if, well, it's busy. On Monday 15 October 2001 18:27, Matt Sykes wrote: > On Mon, 15 Oct 2001 17:23:48 -0400, Jason Andresen wrote: > > Matt Sykes wrote: > > > On Mon, 15 Oct 2001 18:06:17 +0200 (SAT), John Hay wrote: > > > > > > I don't know. If this patch ever do go in, it will probably > > > > > > have to be protected with a "#ifdef BROKEN_P2L97-DS" or > > > > > > something similar. > > > > > > > > > > > > > And, since I still have a broken FreeBSD kernel, how do I to > > > > > > > fix it? Am I just out of luck with this motherboard? > > > > > > > > > > > > Well if you are brave enough, you can try my patch. :-) If you > > > > > > see the message "Disabled Device 13 trap SMI for access to RTC > > > > > > chip" during the boot phase, you will know that it did execute > > > > > > the code in the patch. > > > > > > > > > > Hey thanks alot, I'll give it a try. > > > > > > > > > > Before I do, a few questions: can you give me the exact line of > > > > > your kernel config file for device apm0 (which flags enabled or > > > > > disabled)? Or do you not use device apm0 in kernel config? Is > > > > > apm enabled or disabled in the bios? What is your > > > > > kern.timecounter.method? Which bios revision (I only have access > > > > > to 1.005 and 1.008)? > > > > > > > > I don't have physical access to the machine at the moment, it is at > > > > work, but IIRC the bios is ver 1.008 and apm was disabled. I don't > > > > have apm in the kernel and it is using the PIIX timecounter and I > > > > set it to 3580676. > > > > > > Looks like it works! > > > > > > In top, cvsup gradually comes up to about 40%, stays there a while, > > > then disappears (I couldn't think of another longish process to test > > > with). I guess that's correct. Before it would start at 2% then > > > quickly go back to 0%. > > > > > > dmesg says "Timecounter 'PIIX' frequency 3579545"; I guess that's > > > alright. > > > > > > One thing which surprises me, though --- all other processes are zero. > > > Is this normal? This is my first time seeing FreeBSD run. I have an > > > identical box here running linux (and each box runs a minimum of > > > services), where at least top will show nonzero CPU percentage in top, > > > usually around 0.5%. Does linux have more fine-grained timing, or is > > > it cheating, or does the margin of error render this test essentially > > > meaningless anyway? > > > > It's not unusual to see most of your processes at 0.00% in FreeBSD. > > From the answers I've recieved, seems I wasn't clear enough. > I know that most of idle processes should be zero --- my > point is that top should show up in top, and since it does > in linux and with other FreeBSD top outputs I've seen, this > leads me to believe my kernel timer is still broken (and > it works on this same box running linux). > > > > > > > > > _______________________________________________________ > Send a cool gift with your E-Card > http://www.bluemountain.com/giftcenter/ > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) Brian, the man from Babble-On . . . . bts@babbleon.org (personal) http://www.babbleon.org -------> Free Dmitry Sklyarov! (let him go home) <----------- http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message