Connecting Tech Pros Worldwide Forums | Help | Site Map

How can I let DB2 to use more CPU

richardshen@canada.com
Guest
 
Posts: n/a
#1: Nov 12 '05
We are having DB2 V8.1.5 installed on windows 2003 server has 2 intel cpu.
I notice the CPU and Disk usage is very low no matter how busy is my application.

How can we let DB2 make full use of system resource on Windows 2003?
Thanks in advance.
Richard
Ian
Guest
 
Posts: n/a
#2: Nov 12 '05

re: How can I let DB2 to use more CPU


richardshen@canada.com wrote:
[color=blue]
> We are having DB2 V8.1.5 installed on windows 2003 server has 2 intel cpu.
> I notice the CPU and Disk usage is very low no matter how busy is my application.
>
> How can we let DB2 make full use of system resource on Windows 2003?
> Thanks in advance.
> Richard[/color]

DB2 doesn't have a built in limit (unless you've configured the governor,
but I don't think you'd be asking this question if you had).

If CPU and disk aren't problems on your server, that's a _good_ thing.

If application performance is an issue, then you need to look at the
application to see what's going on. It could be problems with the app,
or its interaction with the database (i.e. concurrency - locking issues).


Good luck,






-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jean-David Beyer
Guest
 
Posts: n/a
#3: Nov 12 '05

re: How can I let DB2 to use more CPU


richardshen@canada.com wrote:[color=blue]
> We are having DB2 V8.1.5 installed on windows 2003 server has 2 intel cpu.
> I notice the CPU and Disk usage is very low no matter how busy is my application.
>
> How can we let DB2 make full use of system resource on Windows 2003?
> Thanks in advance.
> Richard[/color]

I do not run Windows anymore, and never ran DB2 on it.

I do run DB2 V8.1.5 on RHEL 3 ES, with two XEON processors 4 Ultra/320
SCSI 10,000rpm hard drives and two 100MHz ATA/EIDE hard drives (for the
little stuff in SMS tablespaces).

I used to run DB2 V6.1 on a machine with two 10,000rpm Ultra-2 LVD hard
drives and noticed that the machine was not compute limited (two 550 MHz
Pentium IIIs), nor was it IO limited (usually 1 megabyte/sec IO), but it
was slow anyway even when no other processes were using CPU. But you could
tell from all the clicking that the process(es) was seek limited. Hence
all the hard drives on the new machine.

I did not need all the storage capacity of all 6 spindles, but by dividing
things up better and using DMS containers (could not do that on RHL 7.3),
the new machine is 10x to 20x faster than before. It still runs at about
320% wait state (2 hyperthreaded XEON processors could go up to 400%),
which is frustrating. I am running 7 page fetchers and 7 page cleaners,
but the page cleaners all sit in state D (waiting for IO) a lot of the
time. Now maybe a wiser distribution of the tables over the tablespaces
would help. I cannot easily tell if it is seek limited, because the new
disk drives are silent.

What I have is the main data on three hard drives, and the index for those
data on the fourth. These are the fast SCSI drives.

Some medium sized stuff (for me): 3260 pages, total, are SMS on one of the
IDE drives and the tiny boring stuff 44 pages is on the other IDE drive
(where the log files also reside). I have studied it so that as I run it
the seeks should be minimized.

Since it is about 20x faster than the old machine (a >10-hour job runs in
about 35 minutes), I am not sweating it, but I wish I could cut the IO
wait time down since I run only about 40% of one CPU and the other 3.6
CPUs have little to do.

One bad idea is to run setiathome (entirely compute-limited). I run it
nice 19 which makes it least likely to get a shot at a processor, yet it
cuts the speed of DB2 in half. My present guess is that it is scrambling
the processor caches.

--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 14:05:00 up 8 days, 21:20, 3 users, load average: 3.23, 3.21, 3.03

Mark A
Guest
 
Posts: n/a
#4: Nov 12 '05

re: How can I let DB2 to use more CPU


<richardshen@canada.com> wrote in message
news:7c400d4c.0405310824.5829215a@posting.google.c om...[color=blue]
> We are having DB2 V8.1.5 installed on windows 2003 server has 2 intel cpu.
> I notice the CPU and Disk usage is very low no matter how busy is my[/color]
application.[color=blue]
>
> How can we let DB2 make full use of system resource on Windows 2003?
> Thanks in advance.
> Richard[/color]

Did you get Daniel Morgan's permission to install DB2 on Windows?


Blair Adamache
Guest
 
Posts: n/a
#5: Nov 12 '05

re: How can I let DB2 to use more CPU


Mark A wrote:
[color=blue]
> Did you get Daniel Morgan's permission to install DB2 on Windows?
>
>[/color]

A: not needed - as long as you take his course.

Michael Austin
Guest
 
Posts: n/a
#6: Nov 12 '05

re: How can I let DB2 to use more CPU


Mark A wrote:
[color=blue]
> <richardshen@canada.com> wrote in message
> news:7c400d4c.0405310824.5829215a@posting.google.c om...
>[color=green]
>>We are having DB2 V8.1.5 installed on windows 2003 server has 2 intel cpu.
>>I notice the CPU and Disk usage is very low no matter how busy is my[/color]
>
> application.
>[color=green]
>>How can we let DB2 make full use of system resource on Windows 2003?
>>Thanks in advance.
>>Richard[/color]
>
>
> Did you get Daniel Morgan's permission to install DB2 on Windows?
>
>[/color]
.... and may I ask why did you cross-post in an Oracle related newgroup???
Daniel Morgan
Guest
 
Posts: n/a
#7: Nov 12 '05

re: How can I let DB2 to use more CPU


Mark A wrote:
[color=blue]
> <richardshen@canada.com> wrote in message
> news:7c400d4c.0405310824.5829215a@posting.google.c om...
>[color=green]
>>We are having DB2 V8.1.5 installed on windows 2003 server has 2 intel cpu.
>>I notice the CPU and Disk usage is very low no matter how busy is my[/color]
>
> application.
>[color=green]
>>How can we let DB2 make full use of system resource on Windows 2003?
>>Thanks in advance.
>>Richard[/color]
>
>
> Did you get Daniel Morgan's permission to install DB2 on Windows?[/color]

I have it installed on Windows ... Then again I also have Teradata
installed on Windows too.

But tell me Mark ... with all that DB2 on Windows experience ...
why didn't you help Richard?

--
Daniel Morgan
http://www.outreach.washington.edu/e...ad/oad_crs.asp
http://www.outreach.washington.edu/e...oa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)

Mark A
Guest
 
Posts: n/a
#8: Nov 12 '05

re: How can I let DB2 to use more CPU


> >>We are having DB2 V8.1.5 installed on windows 2003 server has 2 intel
cpu.[color=blue][color=green][color=darkred]
> >>I notice the CPU and Disk usage is very low no matter how busy is my[/color]
> >
> > application.
> >[color=darkred]
> >>How can we let DB2 make full use of system resource on Windows 2003?
> >>Thanks in advance.
> >>Richard[/color]
> >
> >
> > Did you get Daniel Morgan's permission to install DB2 on Windows?[/color]
>
> I have it installed on Windows ... Then again I also have Teradata
> installed on Windows too.
>
> But tell me Mark ... with all that DB2 on Windows experience ...
> why didn't you help Richard?
>
> --
> Daniel Morgan[/color]

Daniel, I have worked on many DB2 Windows systems, including at 2 of largest
10 corporations in the US. I think if you follow this forum, there are quite
a few people using that platform.

OK, here are some suggestions for a multiple CPU system:

Increase the following parameters to 2 (you will have to look up the actual
parm name in the Administration: Performance Guide):

1. number of IO servers
2. number of page cleaners
3. Degree of parallelism (intra-partition parallelism).

Optimize the following:

1. Create at least 2 (or multiple thereof) containers for each DMS
tablespace, and make sure that they are on different physical disk drives,
or if RAID is used, make sure they are on separate disk arrays. This
includes the System Temporary Tablespace.
2. Make sure you understand how to configure the prefetch and extent size
correctly for DMS tablespaces.

Make sure that you have enough memory allocated for the following:

1. Buffer pools
2. Log buffer size (also increase the number and size of log buffers on
disk).

These suggestion work equally well on DB2 for UNIX and Linux.


richardshen@canada.com
Guest
 
Posts: n/a
#9: Nov 12 '05

re: How can I let DB2 to use more CPU


Ian <ianbjor@mobileaudio.com> wrote in message news:<40bb649a_1@corp.newsgroups.com>...[color=blue]
> richardshen@canada.com wrote:
>[color=green]
> > We are having DB2 V8.1.5 installed on windows 2003 server has 2 intel cpu.
> > I notice the CPU and Disk usage is very low no matter how busy is my application.
> >
> > How can we let DB2 make full use of system resource on Windows 2003?
> > Thanks in advance.
> > Richard[/color]
>
> DB2 doesn't have a built in limit (unless you've configured the governor,
> but I don't think you'd be asking this question if you had).
>
> If CPU and disk aren't problems on your server, that's a _good_ thing.
>
> If application performance is an issue, then you need to look at the
> application to see what's going on. It could be problems with the app,
> or its interaction with the database (i.e. concurrency - locking issues).
>
>
> Good luck,
>[/color]
If the DB2 server and Application runs on windows 2000 with 1 cpu, the
system resouce is fully used, and my application is faster than it
runs under windows 2003 with 2 cpu.
Mark Yudkin
Guest
 
Posts: n/a
#10: Nov 12 '05

re: How can I let DB2 to use more CPU


CPU isn't limited. Hence you probably have some other bottleneck.

Check if you're configured to use multiple CPUs both in Windows (needs the
SMP kernel) and DB2 - if you have 50% utilization, this might be the
problem.

You will need to use the Windows performance monitor and DB2 monitor to try
and figure out where the problem is; there is no way we can guess out here
what the bottleneck might be - disks (incl. mechanical), memory, network. It
could also be unbalanced hardware (e.g. using IDE disks, or PIO instead of
DMA).

FWIW, we're running 8.1.5 on W2K with 4 CPUs, and are CPU bound under heavy
loads.

<richardshen@canada.com> wrote in message
news:7c400d4c.0405310824.5829215a@posting.google.c om...[color=blue]
> We are having DB2 V8.1.5 installed on windows 2003 server has 2 intel cpu.
> I notice the CPU and Disk usage is very low no matter how busy is my[/color]
application.[color=blue]
>
> How can we let DB2 make full use of system resource on Windows 2003?
> Thanks in advance.
> Richard[/color]


joerg
Guest
 
Posts: n/a
#11: Nov 12 '05

re: How can I let DB2 to use more CPU


Hi,
may be all mentionned components are not the reason.

-> low CPU-usage
-> low DISC-usage
-> few DB2-processes

Did you trace with a IO-monitor like vmstat on unix ? Do you see
blocked processes ? How many isolated transactions are pushed to the
database manager ?
Did you monitor the log-files ?

If there are many write-transactions in your application you may need
to have some write-buffering, is your Raid-Controller write-buffered
(battery-buffered) ?

Write-Transactions require physical commits from your io-device, at
least from your hard-disk or from the write-buffer.

You may check this very easy, just write a small multithreaded
programm with a lot of small transactions, if a single thread is as
fast as multithreaded the bottleneck is the io.

Joerg

Ian <ianbjor@mobileaudio.com> wrote in message news:<40bb649a_1@corp.newsgroups.com>...[color=blue]
> richardshen@canada.com wrote:
>[color=green]
> > We are having DB2 V8.1.5 installed on windows 2003 server has 2 intel cpu.
> > I notice the CPU and Disk usage is very low no matter how busy is my application.
> >
> > How can we let DB2 make full use of system resource on Windows 2003?
> > Thanks in advance.
> > Richard[/color]
>
> DB2 doesn't have a built in limit (unless you've configured the governor,
> but I don't think you'd be asking this question if you had).
>
> If CPU and disk aren't problems on your server, that's a _good_ thing.
>
> If application performance is an issue, then you need to look at the
> application to see what's going on. It could be problems with the app,
> or its interaction with the database (i.e. concurrency - locking issues).
>
>
> Good luck,
>
>
>
>
>
>
> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----== Over 100,000 Newsgroups - 19 Different Servers! =-----[/color]
Closed Thread


Similar DB2 Database bytes