[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Detecting unused CPUs on Linux
From: |
Frank Smith |
Subject: |
Re: Detecting unused CPUs on Linux |
Date: |
Tue, 12 Oct 2004 17:39:26 -0500 |
--On Tuesday, October 12, 2004 17:18:04 -0500 Chip Seraphine <chip@trdlnk.com>
wrote:
>
> I'm working on some lilo-management stuff and I would like to be able to
> detect SMP machines under Linux (Mandrake). No problem at all if the machine
> is already running an SMP kernel-- I can just count the CPUs in /proc/
> cpuinfo, among other ways.
>
> Unfortunately, it's a bit tougher if the box is running a uniprocessor
> kernel.
> On some systems, I can search the dmesg for the string NR_CPUs (which appears
> only in an "unused processsors" warning) to know that I have some unused
> CPUs, but that isn't always present in the dmesg (seems to appear on my
> PowerEdges but not my Dimensions, not sure why...).
>
> Anybody else know of any automated way of telling if I am dragging a CPU?
Try lshw or dmidecode. They'll even tell you the motherboard model. Don't
know if either one is included in the Mandrake distro.
Frank
>
> --
>
> Chip Seraphine
> Unix Administrator
> TradeLink, LLC
> 312-264-2048
> chip@trdlnk.com
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
--
Frank Smith fsmith@hoovers.com
Sr. Systems Administrator Voice: 512-374-4673
Hoover's Online Fax: 512-374-4501