Unix Technical Forum

DB2 not using all processors

This is a discussion on DB2 not using all processors within the DB2 forums, part of the Database Server Software category; --> Hi all, I have DB28.2 running on win2003 system which has 8 Processors with HT its 16 How do ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 02:14 AM
db2inst2
 
Posts: n/a
Default DB2 not using all processors

Hi all,

I have DB28.2 running on win2003 system which has 8 Processors with HT
its 16

How do i make DB2 more use of all the processors?

Right now i am doing an import and task manager shows almost 100%
usage of just one CPU and everything else is idle. (Overall CPU usages
is less than 10%)

This is how my CFG looks like (Changed Specifically for import)

intra_parallel system
dft_degree -1

NUM_IOCLEANERS 30
CHNGPGS_THRESH 5
DBHEAP 3000
LOCKLIST 300
LOGRETAIN OFF
USEREXIT OFF

Tablespaces are DMS

Is there anything else i should do achieve this.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 02:14 AM
Yasaswi Pulavarti
 
Posts: n/a
Default Re: DB2 not using all processors

Are you sure you have the right number of processor licenses for DB2?
You would need 8 processor license I think.
Yasaswi

db2inst2@gmail.com (db2inst2) wrote in message news:<10084fa9.0411101934.753dca7f@posting.google. com>...
> Hi all,
>
> I have DB28.2 running on win2003 system which has 8 Processors with HT
> its 16
>
> How do i make DB2 more use of all the processors?
>
> Right now i am doing an import and task manager shows almost 100%
> usage of just one CPU and everything else is idle. (Overall CPU usages
> is less than 10%)
>
> This is how my CFG looks like (Changed Specifically for import)
>
> intra_parallel system
> dft_degree -1
>
> NUM_IOCLEANERS 30
> CHNGPGS_THRESH 5
> DBHEAP 3000
> LOCKLIST 300
> LOGRETAIN OFF
> USEREXIT OFF
>
> Tablespaces are DMS
>
> Is there anything else i should do achieve this.
>
> Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 02:14 AM
Christos Kalantzis
 
Posts: n/a
Default Re: DB2 not using all processors

DB2 8.2 express supports 2 CPUs
Workgroup supports 4 CPUs
Enterprise.....well a lot more.

Make sure you have the right version to support the number of CPUs you have.

That being said, make sure you have parallelism turned on.

Christos Kalantzis






db2inst2 wrote:
> Hi all,
>
> I have DB28.2 running on win2003 system which has 8 Processors with HT
> its 16
>
> How do i make DB2 more use of all the processors?
>
> Right now i am doing an import and task manager shows almost 100%
> usage of just one CPU and everything else is idle. (Overall CPU usages
> is less than 10%)
>
> This is how my CFG looks like (Changed Specifically for import)
>
> intra_parallel system
> dft_degree -1
>
> NUM_IOCLEANERS 30
> CHNGPGS_THRESH 5
> DBHEAP 3000
> LOCKLIST 300
> LOGRETAIN OFF
> USEREXIT OFF
>
> Tablespaces are DMS
>
> Is there anything else i should do achieve this.
>
> Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 02:14 AM
Larry
 
Posts: n/a
Default Re: DB2 not using all processors

I don't believe that this will affect the number of processors that DB2
uses.

Larry Edelstein

Yasaswi Pulavarti wrote:
> Are you sure you have the right number of processor licenses for DB2?
> You would need 8 processor license I think.
> Yasaswi
>
> db2inst2@gmail.com (db2inst2) wrote in message news:<10084fa9.0411101934.753dca7f@posting.google. com>...
>
>>Hi all,
>>
>>I have DB28.2 running on win2003 system which has 8 Processors with HT
>>its 16
>>
>>How do i make DB2 more use of all the processors?
>>
>>Right now i am doing an import and task manager shows almost 100%
>>usage of just one CPU and everything else is idle. (Overall CPU usages
>>is less than 10%)
>>
>>This is how my CFG looks like (Changed Specifically for import)
>>
>>intra_parallel system
>>dft_degree -1
>>
>>NUM_IOCLEANERS 30
>>CHNGPGS_THRESH 5
>>DBHEAP 3000
>>LOCKLIST 300
>>LOGRETAIN OFF
>>USEREXIT OFF
>>
>>Tablespaces are DMS
>>
>>Is there anything else i should do achieve this.
>>
>>Thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 02:14 AM
Mark
 
Posts: n/a
Default Re: DB2 not using all processors

db2inst2@gmail.com (db2inst2) wrote in message news:<10084fa9.0411101934.753dca7f@posting.google. com>...
> Hi all,
>
> I have DB28.2 running on win2003 system which has 8 Processors with HT
> its 16
>
> How do i make DB2 more use of all the processors?
>
> Right now i am doing an import and task manager shows almost 100%
> usage of just one CPU and everything else is idle. (Overall CPU usages
> is less than 10%)
>
> This is how my CFG looks like (Changed Specifically for import)
>
> intra_parallel system
> dft_degree -1
>
> NUM_IOCLEANERS 30
> CHNGPGS_THRESH 5
> DBHEAP 3000
> LOCKLIST 300
> LOGRETAIN OFF
> USEREXIT OFF
>
> Tablespaces are DMS
>
> Is there anything else i should do achieve this.
>
> Thanks


Not directly related to your CPU issue, but you should probably change
your parms as follows:

NUM_IOCLEANERS 8
CHNGPGS_THRESH 40
LOCKLIST 4096
LOGBUFSZ 128 (or higher)

It will help if you use multiple containers per tablespace, but only
if each container is on a different RAID array or physical drive (if
you are using JBOD). Then make your prefetch size n times the extent
size (where n is the number of containers in each tablespace).

I don't think you can use WSE for 8 processor machines, but there may
also be a license issue also.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 02:14 AM
db2inst2
 
Posts: n/a
Default Re: DB2 not using all processors

I do have the license. And updated it with db2licm.

And the version of db2 is ESE 8.2

Thanks

yasaswi@encfor.com (Yasaswi Pulavarti) wrote in message news:<aa862233.0411110251.8032479@posting.google.c om>...
> Are you sure you have the right number of processor licenses for DB2?
> You would need 8 processor license I think.
> Yasaswi
>
> db2inst2@gmail.com (db2inst2) wrote in message news:<10084fa9.0411101934.753dca7f@posting.google. com>...
> > Hi all,
> >
> > I have DB28.2 running on win2003 system which has 8 Processors with HT
> > its 16
> >
> > How do i make DB2 more use of all the processors?
> >
> > Right now i am doing an import and task manager shows almost 100%
> > usage of just one CPU and everything else is idle. (Overall CPU usages
> > is less than 10%)
> >
> > This is how my CFG looks like (Changed Specifically for import)
> >
> > intra_parallel system
> > dft_degree -1
> >
> > NUM_IOCLEANERS 30
> > CHNGPGS_THRESH 5
> > DBHEAP 3000
> > LOCKLIST 300
> > LOGRETAIN OFF
> > USEREXIT OFF
> >
> > Tablespaces are DMS
> >
> > Is there anything else i should do achieve this.
> >
> > Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-27-2008, 02:14 AM
richard
 
Posts: n/a
Default Re: DB2 not using all processors

You could check if every CPU is used in its own window. Try some big
and complicated query...

db2inst2@gmail.com (db2inst2) wrote in message news:<10084fa9.0411101934.753dca7f@posting.google. com>...
> Hi all,
>
> I have DB28.2 running on win2003 system which has 8 Processors with HT
> its 16
>
> How do i make DB2 more use of all the processors?
>
> Right now i am doing an import and task manager shows almost 100%
> usage of just one CPU and everything else is idle. (Overall CPU usages
> is less than 10%)
>
> This is how my CFG looks like (Changed Specifically for import)
>
> intra_parallel system
> dft_degree -1
>
> NUM_IOCLEANERS 30
> CHNGPGS_THRESH 5
> DBHEAP 3000
> LOCKLIST 300
> LOGRETAIN OFF
> USEREXIT OFF
>
> Tablespaces are DMS
>
> Is there anything else i should do achieve this.
>
> Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-27-2008, 02:14 AM
Pierre Saint-Jacques
 
Posts: n/a
Default Re: DB2 not using all processors

Check the following
dbm cfg
INTRA_PARALLEL ON
MAX_QUERYDEGREE -1 or ANY 0r 8
db cfg
DFT_DEGREE -1 or ANY or 8

Those parms. affect whether or not multiple cpus will be used and how many.
All the other parms. affect capacity management issues WHEN you are
using multiple cpus not how many.

Given that you have ESE installed, and you are licensed for, that
version can use as many processors as you will make available.

db2inst2 wrote:
> Hi all,
>
> I have DB28.2 running on win2003 system which has 8 Processors with HT
> its 16
>
> How do i make DB2 more use of all the processors?
>
> Right now i am doing an import and task manager shows almost 100%
> usage of just one CPU and everything else is idle. (Overall CPU usages
> is less than 10%)
>
> This is how my CFG looks like (Changed Specifically for import)
>
> intra_parallel system
> dft_degree -1
>
> NUM_IOCLEANERS 30
> CHNGPGS_THRESH 5
> DBHEAP 3000
> LOCKLIST 300
> LOGRETAIN OFF
> USEREXIT OFF
>
> Tablespaces are DMS
>
> Is there anything else i should do achieve this.
>
> Thanks


--
Pierre Saint-Jacques - Reply to: sescons at attglobal dot net
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-27-2008, 02:15 AM
Matt Emmerton
 
Posts: n/a
Default Re: DB2 not using all processors


"db2inst2" <db2inst2@gmail.com> wrote in message
news:10084fa9.0411101934.753dca7f@posting.google.c om...
> Hi all,
>
> I have DB28.2 running on win2003 system which has 8 Processors with HT
> its 16
>
> How do i make DB2 more use of all the processors?
>
> Right now i am doing an import and task manager shows almost 100%
> usage of just one CPU and everything else is idle. (Overall CPU usages
> is less than 10%)
>
> This is how my CFG looks like (Changed Specifically for import)
>
> intra_parallel system
> dft_degree -1
>
> NUM_IOCLEANERS 30
> CHNGPGS_THRESH 5
> DBHEAP 3000
> LOCKLIST 300
> LOGRETAIN OFF
> USEREXIT OFF
>
> Tablespaces are DMS
>
> Is there anything else i should do achieve this.


I don't believe IMPORT pays heed to INTRA_PARALLEL, and thus will only end
up one CPU.

You have two options:
1) split your input file into multiple smaller files and run multiple IMPORT
sessions in parallel by hand
2) use LOAD, which will parallelize internally and make batter use of your
CPUs

--
Matt Emmerton


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-27-2008, 02:15 AM
db2inst2
 
Posts: n/a
Default Re: DB2 not using all processors

I changed all these parameters.

But still no luck for imports.

When i do some exports all cpu's are used and its faster than doing
exports on a single cpu machine.

when i tried dividing the imports into 4 and ran them simultaneously
it was better. But still only 4 cpu's are used.

Is there something with imports, that it can't make use of multiple
cpus

Thanks for your responses.


Pierre Saint-Jacques <sescons@attglobal.net> wrote in message news:<4193DA01.4070502@attglobal.net>...
> Check the following
> dbm cfg
> INTRA_PARALLEL ON
> MAX_QUERYDEGREE -1 or ANY 0r 8
> db cfg
> DFT_DEGREE -1 or ANY or 8
>
> Those parms. affect whether or not multiple cpus will be used and how many.
> All the other parms. affect capacity management issues WHEN you are
> using multiple cpus not how many.
>
> Given that you have ESE installed, and you are licensed for, that
> version can use as many processors as you will make available.
>
> db2inst2 wrote:
> > Hi all,
> >
> > I have DB28.2 running on win2003 system which has 8 Processors with HT
> > its 16
> >
> > How do i make DB2 more use of all the processors?
> >
> > Right now i am doing an import and task manager shows almost 100%
> > usage of just one CPU and everything else is idle. (Overall CPU usages
> > is less than 10%)
> >
> > This is how my CFG looks like (Changed Specifically for import)
> >
> > intra_parallel system
> > dft_degree -1
> >
> > NUM_IOCLEANERS 30
> > CHNGPGS_THRESH 5
> > DBHEAP 3000
> > LOCKLIST 300
> > LOGRETAIN OFF
> > USEREXIT OFF
> >
> > Tablespaces are DMS
> >
> > Is there anything else i should do achieve this.
> >
> > Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:19 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com