1834146 Members
2208 Online
110064 Solutions
New Discussion

Re: number of cpu

 
so.nimda
Super Advisor

number of cpu

hi all,

how do i check the number of cpu in ux11?

thanks
14 REPLIES 14
Vibhor Kumar Agarwal
Esteemed Contributor

Re: number of cpu

dmesg | grep processor
Vibhor Kumar Agarwal
Vibhor Kumar Agarwal
Esteemed Contributor

Re: number of cpu

so.nimda
Super Advisor

Re: number of cpu

thanks !!
sstan
Frequent Advisor

Re: number of cpu

try this,

echo "runningprocs/D" | adb -k /stand/vmunix /dev/mem
Ralph Grothe
Honored Contributor

Re: number of cpu

You could also try

# ioscan -kfCprocessor
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
processor 0 33 processor CLAIMED PROCESSOR Processor
processor 1 97 processor CLAIMED PROCESSOR Processor
Madness, thy name is system administration
Ralph Grothe
Honored Contributor

Re: number of cpu

Or if you have STM installed try

# echo "sc prod cpu;info;wait;il"|cstm|grep Active:
Monarch: Yes Active: Yes
Monarch: No Active: Yes
Madness, thy name is system administration
Joseph Loo
Honored Contributor

Re: number of cpu

hi,

try this:

# ioscan -fnC processor
for total processor

if u r running make_tape_recovery, run print_manifest command. a file, manifest in the /var/opt/ignite/recovery/latest/ will show u the total number of processors.

or use sam -> Performance Monitor -> System Properties -> Processor tab


regards.
(p.s. please remember to assign points.)
what you do not see does not mean you should not believe
Muthukumar_5
Honored Contributor

Re: number of cpu

If you have ignite-ux installed then,

print_manifest

If you are hp-ux o/s version is 11.23 then,
machinfo

You can use sam as,

sam -> performance monitor -> system properties -> processor tab

You can get sysinfo script and execute it to get processor information.

Using adb,
echo "processor_count/D" | adb /stand/vmunix /dev/kmem

You can get all system informations with solution in,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=706790

hth.
Easy to suggest when don't know about the problem!
generic_1
Respected Contributor

Re: number of cpu

Hi James,

Just a side note, if you have any processors deactivated on a system they will not show up in the operating system.
People do this to save money on licenses or if a processor goes bad the system may panic, reboot, and deactivate it.

If you have larger systems, you may have Npars/vpars

Just something to keep in mind :)
KRS_1
Frequent Advisor

Re: number of cpu

one of the best way is by using sam

sam - performance monitor - system properties - processor

and other way is


ioscan -fnC processor


Thanks

Rajesh

Bill Hassell
Honored Contributor

Re: number of cpu

And the easiest (with no root access required):

top


Bill Hassell, sysadmin
Florian Heigl (new acc)
Honored Contributor

Re: number of cpu

and it's most fun, too:

CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.04 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
1 0.03 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
2 0.01 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
3 0.00 0.0% 0.0% 1.0% 99.0% 0.0% 0.0% 0.0% 0.0%
4 0.00 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
5 0.00 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
6 0.00 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
7 0.04 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
8 0.00 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
9 0.04 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
10 0.00 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
11 0.05 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
12 0.01 1.0% 0.0% 0.0% 99.0% 0.0% 0.0% 0.0% 0.0%
13 0.00 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
14 0.08 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
15 0.00 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
yesterday I stood at the edge. Today I'm one step ahead.
Devesh Pant_1
Esteemed Contributor

Re: number of cpu

or glance can also be used in a similar way

thanks
DP
so.nimda
Super Advisor

Re: number of cpu

thanks everyone !! :)

your replies were most helpful... i'm now spoilt for choice... :P

cheers !!