[PLUG] How to determine if my dual processors are being recognized

Petcher, Danielx J danielx.j.petcher at intel.com
Wed Sep 17 14:09:02 UTC 2003


> -----Original Message-----
> From: Paul Heinlein [mailto:heinlein at madboa.com]
> Sent: Wednesday, September 17, 2003 2:03 PM
> To: plug at lists.pdxlinux.org
> Subject: Re: [PLUG] How to determine if my dual processors are being
> recognized
> 
> On Wed, 17 Sep 2003, Wil Cooley wrote:
> 
> > On Wed, 2003-09-17 at 13:10, Prutzer wrote:
> > >
> > > I'm trying to find a way to determine if both my dual processors
> > > are being recognized and utilized by my RedHat OS. [...]
> >
> > cat /proc/cpuinfo
> 
> Wil's answer is the most general, and the one I would have posted had
> he not done it first. Since he did the basic work, however, I'm free
> to post some, er, idiosyncratic answers:
> 
> * More specifically:
> 
>   grep -c ^processor /proc/cpuinfo
> 
> * More obscurely, Red Hat style:
> 
>   rpm --eval %_smp_mflags | sed 's![^0-9]!!g'
> 
> * One-liner:
> 
>   ps auxw | grep -c 'ksoftirqd_CPU[0-9]'
> 
> * Obligatory Perl solution:
> 
>   head -n 1 /proc/interrupts | perl -nle 'print tr/C//'
 
Another solution which may not be available in all distributions is to
type the 'top' command and examine the top of the screen to see if
activity is reported on more than 1 processor.
-djp




More information about the PLUG mailing list