473,394 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Question about prefetchsize, containers and extensize

Hello,

DB2 V8 FP12 LUW.

My system is under heavy wait-io times.

I have read the following article: http://tinyurl.com/p844z and it says
that prefetchsize should be the product of extentsize and the number of
containers.

My tablespace does not follow this:

CREATE REGULAR TABLESPACE PSDATWIN IN DATABASE PARTITION GROUP
IBMDEFAULTGROUP PAGESIZE 16384 MANAGED BY DATABASE
USING (FILE '/db/rtmdb/data2/psdatawin1'2800000)
EXTENTSIZE 32
PREFETCHSIZE 128

What is the exact performance impact I should be expecting from this
configuration (1 container only) ? In order to reduce my wait-io times,
is it better to add 3 more containers or reduce my prefetchsize to 32 ?

Thanks in advance,

Michel

Sep 6 '06 #1
4 2559
"Michel Esber" <mi****@us.automatos.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Hello,

DB2 V8 FP12 LUW.

My system is under heavy wait-io times.

I have read the following article: http://tinyurl.com/p844z and it says
that prefetchsize should be the product of extentsize and the number of
containers.

My tablespace does not follow this:

CREATE REGULAR TABLESPACE PSDATWIN IN DATABASE PARTITION GROUP
IBMDEFAULTGROUP PAGESIZE 16384 MANAGED BY DATABASE
USING (FILE '/db/rtmdb/data2/psdatawin1'2800000)
EXTENTSIZE 32
PREFETCHSIZE 128

What is the exact performance impact I should be expecting from this
configuration (1 container only) ? In order to reduce my wait-io times,
is it better to add 3 more containers or reduce my prefetchsize to 32 ?

Thanks in advance,

Michel
Prefetch is important when you are doing table scans on large tables, and
usually not when accessing small amounts of data each time via an index.
Based on your tablespace size, your application may be doing such table
scans, and that is where you might see some performance enhancements.

If you can put each container on a separate physical disk or disk array,
then definitely create multiple containers.

If you are using SAN or NAS, and you use multiple containers, be sure to
issue the following command:
db2set DB2_PARALLEL_IO=*
Sep 6 '06 #2
Another track you should consider investigating is the throughput
capability of your I/O subsystem. Take a look at alll the volumes that
comprise your containers. Have your disk admin (or the vendor) tell
you what kind of sequential throughput you should expect based on the
configuration. Then, do a DD or comparable test to see what kind of
throughput you are actually seeing. If it's not the vendor's number,
it's the vendors problem. If DD matches the vendors advertised
performance, run a tablescan with the bufferpools set to 100 pages and
see what kind of throughput you generate. If it is less than the DD
number, *then* it's time to look at prefetch/extent/etc.

If it's an OLTP system then replace "sequentioal scan" with IOPS. (and
if so, prefetchsize won't make a lick of difference....)

t


Mark A wrote:
"Michel Esber" <mi****@us.automatos.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Hello,

DB2 V8 FP12 LUW.

My system is under heavy wait-io times.

I have read the following article: http://tinyurl.com/p844z and it says
that prefetchsize should be the product of extentsize and the number of
containers.

My tablespace does not follow this:

CREATE REGULAR TABLESPACE PSDATWIN IN DATABASE PARTITION GROUP
IBMDEFAULTGROUP PAGESIZE 16384 MANAGED BY DATABASE
USING (FILE '/db/rtmdb/data2/psdatawin1'2800000)
EXTENTSIZE 32
PREFETCHSIZE 128

What is the exact performance impact I should be expecting from this
configuration (1 container only) ? In order to reduce my wait-io times,
is it better to add 3 more containers or reduce my prefetchsize to 32 ?

Thanks in advance,

Michel

Prefetch is important when you are doing table scans on large tables, and
usually not when accessing small amounts of data each time via an index.
Based on your tablespace size, your application may be doing such table
scans, and that is where you might see some performance enhancements.

If you can put each container on a separate physical disk or disk array,
then definitely create multiple containers.

If you are using SAN or NAS, and you use multiple containers, be sure to
issue the following command:
db2set DB2_PARALLEL_IO=*
Sep 6 '06 #3
Raj
What is DD? IOPS??(index acess??)

tsmit...@gmail.com wrote:
Another track you should consider investigating is the throughput
capability of your I/O subsystem. Take a look at alll the volumes that
comprise your containers. Have your disk admin (or the vendor) tell
you what kind of sequential throughput you should expect based on the
configuration. Then, do a DD or comparable test to see what kind of
throughput you are actually seeing. If it's not the vendor's number,
it's the vendors problem. If DD matches the vendors advertised
performance, run a tablescan with the bufferpools set to 100 pages and
see what kind of throughput you generate. If it is less than the DD
number, *then* it's time to look at prefetch/extent/etc.

If it's an OLTP system then replace "sequentioal scan" with IOPS. (and
if so, prefetchsize won't make a lick of difference....)

t
Sep 7 '06 #4
DD is a file copy utility in unix. It is more granular than "cp" in
that you can specify input and output block sizes, so you can more
closely emulate db2 pages.

IOPS is I/Os per second.


Raj wrote:
What is DD? IOPS??(index acess??)

tsmit...@gmail.com wrote:
Another track you should consider investigating is the throughput
capability of your I/O subsystem. Take a look at alll the volumes that
comprise your containers. Have your disk admin (or the vendor) tell
you what kind of sequential throughput you should expect based on the
configuration. Then, do a DD or comparable test to see what kind of
throughput you are actually seeing. If it's not the vendor's number,
it's the vendors problem. If DD matches the vendors advertised
performance, run a tablescan with the bufferpools set to 100 pages and
see what kind of throughput you generate. If it is less than the DD
number, *then* it's time to look at prefetch/extent/etc.

If it's an OLTP system then replace "sequentioal scan" with IOPS. (and
if so, prefetchsize won't make a lick of difference....)

t
Sep 7 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: csx | last post by:
Hi everyone! two quick questions relating to arrays. Q1, Is it possible to re-assign array elements? int array = {{2,4}, {4,5}}; array = {2,3}
19
by: regisser | last post by:
I have a quastion for the C++ professionals and members of the C++ standartization commetee. As i know C++ standart requires an allocator to be a templated parameter in every STL container....
4
by: matthurne | last post by:
I am working through exercise 8-2 in Accelerated C++...I am implementing the function equal(b, e, b2) where b is an iterator for the first element in a container, e is an iterator pointing to one...
5
by: deancoo | last post by:
Being fairly new to STL, I'm looking for a little advice on which container to use. Let me set up the scenario for you to consider. Suppose you're trying to model a hotel. The hotel has a fixed...
9
by: nicolas.michel.lava | last post by:
Hi there, I have some trouble using STL containers. I'm working on a multithreaded (pthread) application making heavy usage of STL containers. All accesses to containers are made in locked...
4
by: Michel Esber | last post by:
Hello, LUW V8 FP 11 running Linux RH AS4 Update 3. In regards to performance and IO parallelism, does it matter if I create a tablespace with a single big container, or is it better to create...
90
by: John Salerno | last post by:
I'm a little confused. Why doesn't s evaluate to True in the first part, but it does in the second? Is the first statement something different? False print 'hi' hi Thanks.
3
by: James | last post by:
I am not sure whether users can access data or insert new data into tables who belong to a rebalanced table space after new containers are added? (DB2 version is 8.x) What I know is user can not...
0
by: zhif | last post by:
I tried to test this process on my personal laptop. Could you help me to take a look where is the problem as below? 1. I created a source database, name: db100 <-- db2 create db db100...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.