1826896 Members
3718 Online
109705 Solutions
New Discussion

number of CPU

 
kholikt
Super Advisor

number of CPU

Hi,

From sam system property I have saw only one cpu running active. Is that possible that one CPU was locked? If so how could I find out. Anyway I am not sure how many processor we have for this L class server.
abc
9 REPLIES 9
Praveen Bezawada
Respected Contributor

Re: number of CPU

Hi
To find the number of CPU, execute
top
command
it gives the number of cpu running

...BPK...
kholikt
Super Advisor

Re: number of CPU

actually I want to know how to lock a dual processors L class server to only 1 CPU. I wish to deactivate the other is this possible to do so
abc
Animesh Chakraborty
Honored Contributor

Re: number of CPU

Hi,
Why you want to lock one cpu ?
I am interested to know what is the advantage
you get by locking one CPU ?


Thanks
Animesh

Did you take a backup?
Praveen Bezawada
Respected Contributor

Re: number of CPU

Hi
You can lock CPUs at boot time.
Interrupt the boot sequence and you have options of running the machine on less number of CPU's.
I am not sure if that can be done without rebooting.
But there are options for running your application on only a particular CPU.

Hope this helps...
...BPK...
Christopher McCray_1
Honored Contributor

Re: number of CPU

If you really want to, you can do it by going into the GSP at the console and deconfiguring the CPU and reboot.

disclaimer 1: I will not guaruntee a good working computer if you only have 2 CPUs.

disclaimer 2: you should only do this if you need to (in the case of its fsilure, etc)

Good luck
Chris
It wasn't me!!!!
Manel Ventura
Advisor

Re: number of CPU

You can see the number of CPU with the stm command. Also you could see it with the top command, but take care with the following: if there is a hardware problem with one CPU, in the boot sequence the CPU is disabled on time and the system starts-up anyway (if so you couldn?t see it with the top command). So, the best way to see your CPUs is in the boot sequence.

About how to enable/disable a particular CPU, type the next command in the boot menu:

cpuconfig <#n?procesador> on/off
Christopher McCray_1
Honored Contributor

Re: number of CPU

If I understand your question correctly, you dont want to actually lock a CPU and there is no cause for alarm. On these systems, if all CPUs are of course working fine, only CPU 0 is marked as active and the remaining (1, 2 ... 7, etc) are marked as idle. You can see this when the system first comes up with early boot detection where it gives you the opportunity to interrupt the boot process. i believe you can also view this information in the General Service Processor (GSP) by doing a cntrl-B at the console and hitting return twice for the login and password (unless your GSP has a login/password). I don't remember off the top of my head what command to execute, but it is very easy to determine.

I hope this helps.

Chris
It wasn't me!!!!
Bill McNAMARA_1
Honored Contributor

Re: number of CPU

For ICOD and disabled CPUs these will not be presented to hp-ux at all, so you won't see them as inactive, you won't even see them,

At the Boot Console Handler, in the SER menu there is a CPU command that allows you to enable or disable CPUs for ICOD purposes (see doc.hp.com ha icod section)

There is s/w to install also, the icod daemon, you find if you have that installed by looking for a command in /usr/sbin/icod
icod -verify will tell you if there are cpus in use or not, so will stm support tool manager.. it will also allw you to enable/disable them, but will require a reboot at this icod release..

As mentioned before top will work to see how many cpus are working, installed and configured.. or you can use the getconf command or /usr/sbin/diag/contrib/pdcinfo
or /opt/ignite/bin/print_manifest to find out all you need to know about your harware configuration and installation.

Later,
Bill

It works for me (tm)
James R. Ferguson
Acclaimed Contributor

Re: number of CPU

Hi:

# sar -M 1 1

...will give one snapshot of the per-processor utilization by CPU. You can easily see how many CPUs you have.

...JRF...