From owner-freebsd-questions Tue Apr 17 8:18:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from bumper.jellybaby.net (bumper.jellybaby.net [194.159.247.1]) by hub.freebsd.org (Postfix) with ESMTP id D0B7337B423 for ; Tue, 17 Apr 2001 08:18:28 -0700 (PDT) (envelope-from simond@bumper.jellybaby.net) Received: (from simond@localhost) by bumper.jellybaby.net (8.9.2/8.9.2) id QAA32848; Tue, 17 Apr 2001 16:19:08 +0100 (BST) (envelope-from simond) Date: Tue, 17 Apr 2001 16:19:08 +0100 From: simond@irrelevant.org To: Odhiambo Washington , FBSD-Q Subject: Re: SMP Message-ID: <20010417161908.C25882@irrelevant.org> References: <20010417173019.D28689@everest.wananchi.com> <20010417153638.B25882@irrelevant.org> <20010417174507.A31149@everest.wananchi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20010417174507.A31149@everest.wananchi.com>; from wash@wananchi.com on Tue, Apr 17, 2001 at 05:45:07PM +0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Apr 17, 2001 at 05:45:07PM +0300, Odhiambo Washington wrote: > * simond@irrelevant.org [20010417 17:35]: writing on the subject 'Re: SMP' > simond> On Tue, Apr 17, 2001 at 05:30:19PM +0300, Odhiambo Washington wrote: > simond> > Hello, > simond> > For the first time I've built an SMP kernel and the box boots up fine, > simond> > detecting the 2 CPUs but I am just wondering at what point the 2nd CPU > simond> > comes into play. Is this when the 1st CPU has load of some %age?? > simond> > How can I monitor the loads on the CPUs? > simond> > simond> Generally I guess the 2nd processor is used whenever two or more processes > simond> are trying to run at once, I just got myself a dual p3/733 system last week > simond> so I'm still getting the hang of it. The best way I've found is to just use > simond> top (1) and will say CPU0 for the state when it's on the first cpu and CPU1 > simond> for the 2nd. > > Thanks for the quick response. I hope you're also running FreeBSD. When I run 'top' all it > tells me is CPU status, no CPU0 or CPU1 I am running FreeBSD, yes, it's actually the -STABLE branch as of last week on thursday. After looking at /usr/src/usr.bin/top/machine.c it does indeed print CPU%d. > And I think/believe I am booting an SMP kernel You definitely are running in SMP mode, you can tell by the "SMP: AP CPU #1 Launched!" line in the dmesg. -- Simon Dick simond@irrelevant.org "Why do I get this urge to go bowling everytime I see Tux?" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message