728x90

Question
How many processors exist on an HP-UX system?
 
Answer

When tuning various IBM Informix® products you need to know the number of processors on your system. The NUMCPUVPS or VPCLASS onCONFIG configuration parameter, for instance, should be set to one less than the actual number of physical CPUs present in the server. 

A processor is a device that operates on core. With multiple core technology, this can be a single device or a device that has multiple core "processors". The HP Itanium workstation uses a multiple core device. IBM Informix® products consider these cores as separate physical processors. on HP-UX you can use the ioscancommand to find out how many processors(single or multiple core) are on your system.

On a HP-UX system the ioscan command (located in /usr/sbin) outputs a list of all IO devices. Each line in the output that begins with processor represents a processor that is either a single device or an instance of a multiple core device. 

Use this command line to include the processors in the output and automatically count them using grep and wc. For more information see your Operating System man pages.

    /usr/sbin/ioscan -kf | grep processor | wc -l

    Example 1:

    This example is from a machine with 2 processors.

      $   /usr/sbin/ioscan -kf|grep processor|wc -l
      2
    Example 2:

    This example is from a machine with 4 processors. The Line count (wc -l) is left off to show the actual ioscan output.

      $   /usr/sbin/ioscan -kf|grep processor
      processor   0  120            processor  CLAIMED     PROCESSOR    Processor
      processor   1  121            processor  CLAIMED     PROCESSOR    Processor
      processor   2  122            processor  CLAIMED     PROCESSOR    Processor
      processor   3  123            processor  CLAIMED     PROCESSOR    Processor



https://www-304.ibm.com/support/docview.wss?uid=swg21105416

728x90

'*nix' 카테고리의 다른 글

Determining how many CPUs you have on Solaris UNIX  (0) 2011.11.20
Determining CPU Speed in AIX  (0) 2011.11.20
cpio: 0511-903 Out of phase!  (0) 2011.11.01
Korn Shell Commands  (0) 2011.10.23
dummy file 생성방법  (0) 2011.03.11

+ Recent posts