Re: command for finding out number of processors on a linux machine

James Amundson (amundson@fnal.gov)
Tue, 16 Nov 1999 17:36:06 -0600

Jeffrey McDonald wrote:
>
> rpm -qa | grep kernel
>
> if you see something like:
> kernel-smp-2.X.XX-XX
>
> you have an smp kernel installed.
>
> jeff

That doesn't necessarily mean you are using it...

I think the only case where Connie's suggestion of
grep processor /proc/cpuinfo | wc -l
will fail is where you have multiple processors, but your kernel isn't
talking to more than one of them. It seems to me that this case is
pathological enough that it isn't worth worrying about. After all, does
Kuck et al really care how many processors are in the box if only one is
being used?

--Jim