Hi,
I have a question here regarding setting the prefetch size. So far we took
the rule that for OLTP, prefetchsize = extent size and for DSS prefetchsize
= extent size * number.
However, especially due to the "Skip Scans" for indexes I started to
question this. It looks to me that for reading a index DB2 will or do a
synchronous read or he will have to scan the whole index and thus prefetch
the data correct? If this is so, then it seems to me that it would be better
for tablespaces which contain only indexes to set the prefetchsize higher
then the extent size.
Then for tablespaces just containing tables, again here it seems to me that
setting the prefetchsize higher might be better since the optimizer (again,
if I'm correct here) will limit the number of pages to be prefetched (as
seen in explain plan, MAXPAGES setting) and will not do asynchronous IO if
only a few pages need to be retrieved anyway.
I can understand that for OLTP you might not want to set your prefetchsize
as high as for DSS tablespaces, but if using multiple containers and each
container on a RAID (and PARALLEL_IO is also set) then I'm starting to get
the feeling that even for OLTP databases (in which some DSS type of activity
happens) setting the prefetchsize higher might indeed help performance.
What do other people think, experiences, ...?? 1 6255
"Erik Hendrix" <he**********@h otmail.com> wrote in message
news:6f******** *************** *******@news.te ranews.com... Hi,
I have a question here regarding setting the prefetch size. So far we took the rule that for OLTP, prefetchsize = extent size and for DSS
prefetchsize = extent size * number.
However, especially due to the "Skip Scans" for indexes I started to question this. It looks to me that for reading a index DB2 will or do a synchronous read or he will have to scan the whole index and thus prefetch the data correct? If this is so, then it seems to me that it would be
better for tablespaces which contain only indexes to set the prefetchsize higher then the extent size.
I don't believe that there is any evidence that DB2 does skip-scans, but I
would prefer not to discuss that subject in this thread since it has
recently been beat to death.
Usually, the prefetch size should be the extent size times the number of
containers in the tablespace (or some higher multiple of that result).
Containers should be placed on different physical disks for optimum results.
So if the extent size is 8 pages and you have 2 containers, the optimal
prefetch sizes are 16, 32, 64 etc pages.
DB2 does sometimes do scans of the entire index where prefetch is important.
But most indexes are smaller than tables, so I am not sure that one would
use a larger prefetch for indexes than the table. Of course, if you had an
OLTP system and did not want to fill up buffer pools with tablespace scans
for the table, then that might be a different consideration.
Then for tablespaces just containing tables, again here it seems to me
that setting the prefetchsize higher might be better since the optimizer
(again, if I'm correct here) will limit the number of pages to be prefetched (as seen in explain plan, MAXPAGES setting) and will not do asynchronous IO if only a few pages need to be retrieved anyway. I can understand that for OLTP you might not want to set your prefetchsize as high as for DSS tablespaces, but if using multiple containers and each container on a RAID (and PARALLEL_IO is also set) then I'm starting to get the feeling that even for OLTP databases (in which some DSS type of
activity happens) setting the prefetchsize higher might indeed help performance.
What do other people think, experiences, ...??
Prefetch will help if you have tablespaces scans of the entire table, or
start reading large continuous sections of a table where prefetch may kick
in.
If you use RAID-5, then you want one container per array, with the extent
size equal to the stripe size or some multiple of that.
Often it is good in OLTP systems to use the
OPTIMIZE FOR integer ROWS
clause. This may prevent prefetch in cases when the number of rows to be
fetched in a cursor is less than DB2 thinks. This clause does not limit the
number of rows that may be fetched, but does control the optimizer in terms
of whether prefetch may be used by DB2. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: fleemo17 |
last post by:
My organization is developing a set of "standards" for websites built
inhouse. The first question that comes to mind is what would be a good
standard default size for <p> text? 12 point? Which begs the
question, what unit of measurement should we use for specifying font
sizes, points or ems?
Thanks.
-Fleemo
|
by: Li Kao |
last post by:
After incrementally increasing SORTHEAP (and the commensurate increase
in SHEAPTHRES) and *slightly* reducing the bufferpool size, I find
that my query is no longer taking advantage of async IO for reads. I
discovered this message in the db2diag.log:
====================================
PID:80850(db2agntp (LIKAO) 0) Appid:*LOCAL.db2inst1.031121211302
sort/list_services sqlsOptimizeNumMergeRuns Probe:10
Database:LIKAO
|
by: Erik Hendrix |
last post by:
Hi,
I have a quick question, when one sets the prefetch size = extent size, then
when doing a backup we will have 1 agent (db2bm) doing the reads. If we have
prefetch size a multiple of extent size AND we have multiple containers
and/or PARALLEL_IO set then not db2bm but the db2 prefetchers will read the
data.
Now no matter which one reads the data, it will still be read in 1 extent
size. Wouldn't it thus be much more efficient to...
|
by: Jean-Marc Blaise |
last post by:
Dear all,
If you do a SELECT * FROM TAB WHERE DATE=?, the explain plan might pick up a
TBSCAN and you'll see in db2exfmt PREFETCH=SEQUENTIAL.
Now, TAB is a MDC, and DATE is a dimension. The explain plan will pick up
the block index and db2exfmt indicates PREFETCH=NONE. However, monitoring
bufferpools shows async IO is done.
Would it make sense to have db2exfmt indicate in that case
|
by: Roger Withnell |
last post by:
How to I find out what size text the browser is set to?
Thanks in anticipation.
| |
by: rdudejr |
last post by:
Hi all,
Ive got a database approx 350 GB in which Im getting very high Time
waited for prefetch. This is directly out of the snapshot for the db
(these are for the entire database I assume as I pulled it out of get
snapshot for all on {dbname})
Total buffer pool read time (milliseconds) = 45660639
Total buffer pool write time (milliseconds)= 42128058
Total elapsed asynchronous read time = 33856320
|
by: laredotornado |
last post by:
Hi,
I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed
using Apache's apxs and the php library was installed to
/usr/local/php. However, when I set my "error_reporting" setting to be
"E_ALL", notices are still not getting reported. The perms on my file
are 664, with owner root and group root. The php.ini file is located
at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem
to be having an effect? ...
|
by: =?Utf-8?B?Sm9ubnk=?= |
last post by:
Hi.
I an pulling my hair out with this one and hope somebody can help me.I
started getting a message on startuo saying windows/prefetch/explorer.exe
-082F38A9.pf is corrupt.Since then every time i turn on computer the start
and icons only stay on the screen for a few seconds then dissapear.The last
day or so sometimes i just get the home edition screen shwing with nothing
else.The only way i can get online is by alt ctrl and del to get up...
|
by: Andrus |
last post by:
..NET 2 Winforms application.
How to create new setting and set it default value in userSettings section
of app.config file or overwrite existing setting value ?
I found code below in this list which modifies Application setting section
but how to add new item to userSettings ?
Andrus.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |