dbTalk Databases Forums  

What's throttling?

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss What's throttling? in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Troels Arvin
 
Posts: n/a

Default What's throttling? - 03-04-2010 , 04:52 PM






Hello,

DB2 v. 9.7.1.

During certain special workloads (e.g. parallel REORGs/RUNSTATs), I've
seen the server consuming 450MB/s with 25000IO/s (yes, there is probably
some storage system caching happening here) while all CPU cores were
happily working in an even mix of usermode/wait. And disk benchmark tools
can also bring some very satisfying bandwith and IO/s numbers to the
table.

On the other hand, we also have another scenario: A single rather complex
query with at least one large table scan. "list applications" reports
that the query is Executing (not locked). IO: At most 10MB/s, 500 IO/s;
CPU: two cores in 99.9% wait state, all other cores 100% idle. The tables
which the query reads from have been altered to have LOCKSIZE=TABLE, so I
would think that lock list work is zero.
What's going on in such a situation? What tools/snapshots/... can I use
to gain better insight in such a case?

--
Regards, Troels Arvin

Reply With Quote
  #2  
Old   
Ian
 
Posts: n/a

Default Re: What's throttling? - 03-05-2010 , 01:10 AM






On 3/4/10 3:52 PM, Troels Arvin wrote:
Quote:
Hello,

DB2 v. 9.7.1.

During certain special workloads (e.g. parallel REORGs/RUNSTATs), I've
seen the server consuming 450MB/s with 25000IO/s (yes, there is probably
some storage system caching happening here) while all CPU cores were
happily working in an even mix of usermode/wait. And disk benchmark tools
can also bring some very satisfying bandwith and IO/s numbers to the
table.

On the other hand, we also have another scenario: A single rather complex
query with at least one large table scan. "list applications" reports
that the query is Executing (not locked). IO: At most 10MB/s, 500 IO/s;
CPU: two cores in 99.9% wait state, all other cores 100% idle. The tables
which the query reads from have been altered to have LOCKSIZE=TABLE, so I
would think that lock list work is zero.
What's going on in such a situation? What tools/snapshots/... can I use
to gain better insight in such a case?

This sounds like you are probably doing a lot of synchronous I/O,
reading scattered data from all over a table. The REORG and
RUNSTATS can do very efficient asynchronous I/O, batching up
lots of large reads. When you run these two different workloads,
what kind of average read times do you see for your tablespaces?

What does the query plan look like? Is it reading an index and fetching
rows from a (big) table? Perhaps this IXSCAN/FETCH pair
is the inner leg of an NLJOIN ? If this is the case, what is the
clusterfactor for the index?


Ian Bjorhovde

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.