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

Cynthia Wike (wike@fnal.gov)
Tue, 16 Nov 1999 17:48:15 -0600

While I'm not a lawyer (for which I am thankful on a daily basis), my
understanding of the spirit of the kai license is that they are
interested in the number of processors being utilized by the compiler.
Would Connie's

grep processor /proc/cpuinfo | wc -l

be accurate, then, for all SMP and non-SMP cases?

Cindy

James Amundson wrote:
>
> 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