Operating System - HP-UX
1752794 Members
5776 Online
108789 Solutions
New Discussion юеВ

Active processors with ICOD

 
Vacquier
Occasional Advisor

Active processors with ICOD

Hi,
my application ( C language) needs to know how man active processors exist on the machine. This is done by reading the kernel. On a new machine with 4 processors and 4 not activated ICOD processors, the return of the kernel read is 8 active processors. If I run "ioscan -fnC processor", I see 8 processors in state "CLAIMED"; if I run "sar -u -M" it returns only 4 processors. Does someone know what is the difference between ioscan and sar search and how, in a C language program, I can separate really active and inactive ICOD cpus.
6 REPLIES 6
Paula J Frazer-Campbell
Honored Contributor

Re: Active processors with ICOD

Hi

The Kernel and ioscan will see all processors on your system (claimed).

ICOD is a software control on processor usage and sar and top are after the icod control software so will only "SEE" the non ICOD processors.

Your c program should either use the sar/top output or perhaps interogate the ICOD software.



HTH

Paula

If you can spell SysAdmin then you is one - anon
John Carr_2
Honored Contributor

Re: Active processors with ICOD

Hi

I dont know the ansewr to your question but ioscan only tells you about the hardware you have not the state the hardware is in ON/OFF as you might say.

John.
Vacquier
Occasional Advisor

Re: Active processors with ICOD

Thanks for your responses, but I cannot use the result of sar; my application needs to collect informations very often, so the analysis of a system command output will take too much time.
Olav Baadsvik
Esteemed Contributor

Re: Active processors with ICOD



Hi,

I think that if you install patch PHKL_22987
(or newer) the pstat functions will give
you the info you are seeking.
Do a man pstat and you will see a number
of functions that you may use to get
system-info.

Regards
Olav
Paula J Frazer-Campbell
Honored Contributor

Re: Active processors with ICOD

Hi

1. Use ioscan to count the total number of processors.

2. /usr/sbin/icod_stat will display the HP owned processors (ICOD)

Total processors: 6
Allocated processors: 4

iCOD deallocated processors: 2
Other deallocated processors: 0
Firmware deconfigured processors: 0
-------------------------------------
Total number of unused processors: 2



Subtract owned from total and you then have "Active processors".#


HTH

Paula


If you can spell SysAdmin then you is one - anon
Erik Bostrom
New Member

Re: Active processors with ICOD

The icod_stat -a option available in version 4 and higher was designed to give you this information in a machine readable format. You can download the new software from software.hp.com. The behavior in this case should be...

# icod_stat -a
4