From: Dave <foo@coo.com>
Subject: Re: Determine number of CPUs
Date: Thu, 15 Oct 2009 23:51:11 +0100 [thread overview]
Message-ID: <4ad7a761@212.67.96.135> (raw)
In-Reply-To: <402175f9-1707-4871-b076-9371fc977ee9@y21g2000yqn.googlegroups.com>
Leo wrote:
> Hi,
>
> You can use "prtconf | grep Processors" which will display the number
> of processors.
> you can use "lsdev -Cc processor" which will display all the
> processors and id's. you can count the number of lines which gives the
> total number of processors by the command "lsdev -Cc processor | wc -
> l"
> And you can use "bindprocessor -q" which shows the number of cores.
>
> all the above commands can be used by a basic user. hope it helps
>
> -LeO
Thank you for the help on AIX. Would I be right in assuming this box has
a pair of dual core processors?
$ lsdev -Cc processor
proc0 Available 00-00 Processor
proc2 Available 00-02 Processor
$ bindprocessor -q
The available processors are: 0 1 2 3
$ prtconf | grep Processors
Number Of Processors: 2
Do you know if the format of the output has been stable over the various
AIX releases, so it can be parsed and used in scripts which will work on
most AIX releases?
Can anyone come up with similar data for HP-UX?
Just out of interest I'll add for a Solaris box with two CPUs, each with
8 cores, and each core having 4 hardware threads (i.e. 128 threads)
kirkby@t2:[~] $ psrinfo
0 on-line since 08/14/2009 09:24:31
1 on-line since 08/14/2009 09:24:33
2 on-line since 08/14/2009 09:24:33
etc. so
kirkby@t2:[~] $ psrinfo | wc -l
128
means it has 128 threads.
kirkby@t2:[~] $ psrinfo -p
2
means there are two physical processors. I do not know how to get the
number of cores, which is probably the most useful thing actually.
Dave
--
I respectfully request that this message is not archived by companies as
unscrupulous as 'Experts Exchange' . In case you are unaware,
'Experts Exchange' take questions posted on the web and try to find
idiots stupid enough to pay for the answers, which were posted freely
by others. They are leeches.
next prev parent reply other threads:[~2009-10-15 22:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-14 10:07 Determine number of CPUs Dave
2009-10-14 13:44 ` Leo
2009-10-15 22:51 ` Dave [this message]
2009-10-16 6:14 ` Michael Kraemer
2009-10-14 15:57 ` Don Morris
2009-10-14 18:52 ` Rick Jones
2009-10-15 13:59 ` sjm
2009-10-15 18:00 ` Dave
2009-10-15 19:49 ` Henry
2009-10-19 22:18 ` John F. Carr
2009-10-20 12:16 ` Dave
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox