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 > Intraparallelism

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-29-08, 13:03
PaulC73 PaulC73 is offline
Registered User
 
Join Date: Oct 2008
Posts: 2
Intraparallelism

I have a rather sluggish DB2 V8.1 database being hit by a number of large complex ( and probably rather inefficient ) queries. I'm looking at various ways of speeding it up.

The server is a single quad core processor machine with Intraparallelism turned on. I know that with large queries and multiple processors Intraparallelism would be useful but does it have any benefits ( or even downsides) running with multpile cores ??

Should I turn it off ?
Reply With Quote
  #2 (permalink)  
Old 10-29-08, 14:20
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Intraparallelism allows DB2 to run some queries in parallel, thus speeding up the overall query. You need multiple processors (cores) for this to work.

You will probably get more bang for the buck by tuning the queries and adding appropriate indexes. Look at the access plans for the queries and see what can be changed to improve performance.

Andy
Reply With Quote
  #3 (permalink)  
Old 10-29-08, 21:01
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Only certain queries can take advantage of intrapartition parallelism. For your 4 cores, any large tables that will have table scans should have 4 containers. You should also use large page sizes and prefetch for these tablespaces (put your smaller tables in a different tablespace). With 4 containers, you prefetch size should be 4 times your extent size.

There are other db and dbm parms that need to be set besides setting intra_parallel at the dbm level. See this for details:
https://publib.boulder.ibm.com/infoc.../t0004886.html
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 10-30-08, 06:40
PaulC73 PaulC73 is offline
Registered User
 
Join Date: Oct 2008
Posts: 2
Thanks for the replies.

I'll be doing reorgs/runstats during the weekend on some of the larger tables which may hopefully improve things as well as looking more into some of the things you suggested..

With regards to tuning SQL, are there any decent websites/books on the subject that you can recommend ?
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