473,396 Members | 1,784 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,396 software developers and data experts.

buffer pool hit ratio

Hi there,

BP hit ratio = 1 - (BP physical reads / BP logical reads).

If all the BP physical reads are asynchronous, it should mean that the pages
are brought up to the bufferpool before the database manager needs them.
But in that case, the BP hit ratio will be 0% (BP physical reads = BP async.
physical reads = BP logical reads).

Could this formula BP hit ratio = 1 - ((BP physical reads - BP async.
physical reads) / BP logical reads) be more accurate or am I missing a point
?

Thanks for your help,

Eric

Nov 12 '05 #1
7 11369
Ian
eric wrote:
Hi there,

BP hit ratio = 1 - (BP physical reads / BP logical reads).

If all the BP physical reads are asynchronous, it should mean that the pages
are brought up to the bufferpool before the database manager needs them.
But in that case, the BP hit ratio will be 0% (BP physical reads = BP async.
physical reads = BP logical reads).


Your formula is not correct, and I think that's what's causing
your confusion. The total number of reads in the database is
the sum of the logical and physical reads. Therefore,

BP hit ratio = 100 * logical / (physical + logical).
As you can see, if BP physical reads = 0, then the hit ratio is
100%.
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! =-----
Nov 12 '05 #2
Thanks Ian,

Your formula sounds more comprehensible to me.
BP hit ratio = 100 * logical / (physical + logical).

However, the formula BP hit ratio = (1 - (BP physical reads / BP logical
reads))*100 was taken from the DB2 UDB HTML documentation.
Can someone explain why this formula and not Ian's one ?

Thanks,

Eric

"Ian" <ia*****@mobileaudio.com> a écrit dans le message de
news:3f**********@corp.newsgroups.com...
eric wrote:
Hi there,

BP hit ratio = 1 - (BP physical reads / BP logical reads).
>
If all the BP physical reads are asynchronous, it should mean that the pages are brought up to the bufferpool before the database manager needs them.
But in that case, the BP hit ratio will be 0% (BP physical reads = BP async. physical reads = BP logical reads).


Your formula is not correct, and I think that's what's causing
your confusion. The total number of reads in the database is
the sum of the logical and physical reads. Therefore,

BP hit ratio = 100 * logical / (physical + logical).
As you can see, if BP physical reads = 0, then the hit ratio is
100%.
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! =-----

Nov 12 '05 #3
(BP physical reads / BP logical reads) is there to measure the relation
between
the physical io's (disk access) vs the logical ones (buffered pages/in
bufferpool).

There are logical and physical io's.
Physical io's can be split into sync (direct) and async io's (prefetch,
etc.).

logical
physical sync
physical async

PM
Nov 12 '05 #4
PM,

If you take the (1 - (BP physical reads / BP logical reads)) * 100 formula
in a DSS context, where let say you have many physical ios and 95% of them
are asynchronous, the formula always leads you to a very weak hit ratio, for
example: 1 - (500 / 600) = 16.7% [ 500*.95=475 async ios]

Now, if you substract the Async IOs:
(1 - (500 - 475)/ 600) * 100, your hit ratio seems better, = 95.8%

Am I right to change the formula ? It seems to me it's adequate in OLTP
environment, not DSS.

Any additional thoughts ?

Thanks,

Eric
"PM-pm3iinc-nospam" <pm*****@sympatico.ca> a écrit dans le message de
news:an******************@news20.bellglobal.com...
(BP physical reads / BP logical reads) is there to measure the relation
between
the physical io's (disk access) vs the logical ones (buffered pages/in
bufferpool).

There are logical and physical io's.
Physical io's can be split into sync (direct) and async io's (prefetch,
etc.).

logical
physical sync
physical async

PM

Nov 12 '05 #5
Eric-

A couple of us were going around about this formula today until we
took a closer look at the 7.1 Performance Tuning Guide (p. 242):

"Buffer Pool Data Logical Reads: Denotes the total number of read
data requests that went through the buffer pool.
Buffer Pool Data Physical Reads: Denotes the number of read requests
performed that required I/O to place data pages in the buffer pool."

So it seems that Logical Reads are the TOTAL requests for data from
the buffer pool, regardless of whether the pages were in the buffer
pool or not, in which case, the IBM formula is correct. I just double
checked the algebra :)

It's a bummer for me, because I have been using the formula Ian posted
for a while now, and my buffer pool hit ratios are now much lower than
I originally thought.

Hope this helps,
Todd

"eric" <no***********@wanadoo.fr> wrote in message news:<bn**********@news-reader1.wanadoo.fr>...
Thanks Ian,

Your formula sounds more comprehensible to me.
BP hit ratio = 100 * logical / (physical + logical).

However, the formula BP hit ratio = (1 - (BP physical reads / BP logical
reads))*100 was taken from the DB2 UDB HTML documentation.
Can someone explain why this formula and not Ian's one ?

Thanks,

Eric

"Ian" <ia*****@mobileaudio.com> a écrit dans le message de
news:3f**********@corp.newsgroups.com...
eric wrote:
Hi there,

BP hit ratio = 1 - (BP physical reads / BP logical reads).
>
If all the BP physical reads are asynchronous, it should mean that the pages are brought up to the bufferpool before the database manager needs them.
But in that case, the BP hit ratio will be 0% (BP physical reads = BP async. physical reads = BP logical reads).


Your formula is not correct, and I think that's what's causing
your confusion. The total number of reads in the database is
the sum of the logical and physical reads. Therefore,

BP hit ratio = 100 * logical / (physical + logical).
As you can see, if BP physical reads = 0, then the hit ratio is
100%.
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! =-----

Nov 12 '05 #6
"Todd McNeill" <to***@bluefiresystems.com> wrote in message
news:d3**************************@posting.google.c om...
Eric-

A couple of us were going around about this formula today until we
took a closer look at the 7.1 Performance Tuning Guide (p. 242):

"Buffer Pool Data Logical Reads: Denotes the total number of read
data requests that went through the buffer pool.
Buffer Pool Data Physical Reads: Denotes the number of read requests
performed that required I/O to place data pages in the buffer pool."

So it seems that Logical Reads are the TOTAL requests for data from
the buffer pool, regardless of whether the pages were in the buffer
pool or not, in which case, the IBM formula is correct. I just double
checked the algebra :)

It's a bummer for me, because I have been using the formula Ian posted
for a while now, and my buffer pool hit ratios are now much lower than
I originally thought.

Hope this helps,
Todd

It only makes sense to measure the hit ratio once the buffer pool has been
primed. The cumulative buffer pool hit ratio from database start to stop can
never be 100%.
Nov 12 '05 #7
Ian
eric wrote:
Thanks Ian,

Your formula sounds more comprehensible to me.
BP hit ratio = 100 * logical / (physical + logical).

However, the formula BP hit ratio = (1 - (BP physical reads / BP logical
reads))*100 was taken from the DB2 UDB HTML documentation.
Can someone explain why this formula and not Ian's one ?


Oops, looks like _I've_ been using the wrong formula for a long
time! So I've been reading the doc... My mistake was thinking
that a read is either logical OR physical, when in reality the
logical read may require a physical read to be satisfied. Remember
that all data access goes through the bufferpool.

Back to your original question, IF you did have a situation
where physical reads = 0 (but the async bp reads was high),
then you would get a hit ratio of 100%. It would just be
indicative of the fact that your prefetching was VERY effective.
Thanks for helping me get a correct understanding of this...
Ian

-----= 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! =-----
Nov 12 '05 #8

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

Similar topics

8
by: Tron Thomas | last post by:
As part of applying for a programming position at a company, I recently I had submitted some code samples to one of the developers for review. This is the feedback I received: One of his...
6
by: Mark | last post by:
I understand the concept of catalog cache (memory allocated from the dbheap to allow catalog lookups without the need to access disk each time). But the DB2 catalog tablespace (SYSCATSPACE) is...
3
by: Mark | last post by:
In a DB2 V8.1 performance tuning document from a 3rd party vendor, I found this statement. Can anyone verify this? "DB2 requires 100 bytes of memory for every buffer pool and extended storage...
2
by: Kush | last post by:
Hi. I am kind of new to DB2 and to this newsgroup so please bear with me.. My question is: IBM installation creates 250 4k bufferpools by default. I want to increase this number to 1000, no...
1
by: Marek Wierzbicki | last post by:
Hi I have trouble with MSSQL2000 SP4 (without any hotfixes). During last two weeks it start works anormally. After last optimalization (about few months ago) it works good (fast, without...
6
by: xeqister | last post by:
Greetings, We are having a situation here whereby one of our staff created a very huge 32K buffer pool in a production database and caused the database to go down. When we try to reconnect to the...
64
by: Philip Potter | last post by:
Hello clc, I have a buffer in a program which I write to. The buffer has write-only, unsigned-char-at-a-time access, and the amount of space required isn't known a priori. Therefore I want the...
6
by: Angel Tsankov | last post by:
Hi, I remember reading in a book (or in an article) that the optmial buffer growth factor is about 1.6. Now I need to find this book but I can't remember its title. Can someone help me with this?
4
by: Patrick Finnegan | last post by:
Is there a DB2 setting that will force a table to be cached in the buffer pool? We have four tables that we want to cache completely in the buffer pool to ensure that all the data is read from...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.