If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to findout the number of CPUs / Cores the instance is running?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-29-09, 23:18
winix winix is offline
Registered User
 
Join Date: Oct 2003
Posts: 2
How to findout the number of CPUs / Cores the instance is running?

Hi All,

I am a newbie, and currently constructing a program that want to act differently according to the number of CPUs / Cores available on the machine running the instance.

Is there a query that I can execute and show me the number? I know there is a setting for the degree of parallelism, but it could be 'ANY', and the setting may not reflect the actual number of CPUs / cores.

I am currently using IBM DB2 9.7 Windows version.

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 09-30-09, 08:45
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
If you are using DB2 Express-C (free version) Db2 will only use up to 2 of the Cores. Anything else, DB2 will use whatever is there.

Andy
Reply With Quote
  #3 (permalink)  
Old 09-30-09, 09:00
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
Environment administrative views: Supported administrative SQL routines and views
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #4 (permalink)  
Old 10-08-09, 02:23
winix winix is offline
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks, I got what I need by using the following SQLs:

--to get the env db info
select * from SYSIBMADM.ENV_PROD_INFO

--to get system info
select * from SYSIBMADM.ENV_SYS_INFO

I have all the OS, DBMS, and CPU information
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On