Question
How many processors exist on an HP-UX system?
Answer
This document explains how to count the number of processors on your system as IBM Informix® products defines a processor. Various IBM Informix® products are tuned based on the number of processors on your system. The NUMCPUVPS or VPCLASS onCONFIG configuration parameter, for example, 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". IBM Informix® products consider these multiple cores as separate physical processors.
On any HP-UX system, the ioscan command lists how many processors(single or multiple core) are on your 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 the following command line to include the processors in the output and automatically count them using grep (pattern match) and wc (character count). 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
Note: You would set the NUMCPUVPS or VPCLASS parameter to 1 in this example.
- Example 2:
This example is from a machine with 4 processors.
- $ /usr/sbin/ioscan -kf|grep processor|wc -l
4
This example is from a machine with 4 processors. The Line count (wc -l) is left off to show the actual ioscan and grep 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
Note: You would set the NUMCPUVPS or VPCLASS parameter to 3 in this example.
'Informix > informix reference' 카테고리의 다른 글
Changing hostname of the DB2 server (0) | 2013.04.17 |
---|---|
IBM Moblie OpenAdmin Tool for Informix (0) | 2013.04.02 |
Determining how many CPUs you have under AIX (0) | 2013.04.02 |
(작성중) (0) | 2013.02.20 |
Inserting Data into a BLOB Column (TEXT) using ESQL/C (0) | 2013.02.04 |