473,804 Members | 3,067 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bufferpool Hit Ratio

Hi All,
I am using DB2 UDB v 8.2 , OS: RHEL . Now, How to get the Bufferpool
Hit Ratio?

Aug 22 '06 #1
5 2481
select distinct BP_NAME,
NPAGES,
PAGESIZE,
decimal((bigint (npages)*bigint (pagesize)/(1024*1024))),

decimal(1-((decimal(pool_ data_p_reads)+d ecimal(pool_ind ex_p_reads))/

(1+decimal(pool _data_l_reads)+ decimal(pool_in dex_l_reads))), 20,5)*100
as "BP Hit Ratio"
from table( snapshot_bp( '<DBNAME>', -1 ))
as snapshot_databa se inner join syscat.bufferpo ols bp
on bp.BPNAME = snapshot_databa se.BP_NAME

Make sure you update "<DBNAME>" with your database's name.


satish mullapudi wrote:
Hi All,
I am using DB2 UDB v 8.2 , OS: RHEL . Now, How to get the Bufferpool
Hit Ratio?
Aug 22 '06 #2
On Tue, 22 Aug 2006 05:09:06 -0700, tsmithnj wrote:
select distinct BP_NAME,
NPAGES,
PAGESIZE,
decimal((bigint (npages)*bigint (pagesize)/(1024*1024))),

decimal(1-((decimal(pool_ data_p_reads)+d ecimal(pool_ind ex_p_reads))/

(1+decimal(pool _data_l_reads)+ decimal(pool_in dex_l_reads))), 20,5)*100
as "BP Hit Ratio"
from table( snapshot_bp( '<DBNAME>', -1 ))
as snapshot_databa se inner join syscat.bufferpo ols bp
on bp.BPNAME = snapshot_databa se.BP_NAME

Make sure you update "<DBNAME>" with your database's name.
[from a db2 newbie] Thank you for the post!
Question. What is column '4'? In my case they are all 0.
nat
Aug 22 '06 #3
It is the hit ratio. You probably need to turn on your monitor
switches.
natG wrote:
On Tue, 22 Aug 2006 05:09:06 -0700, tsmithnj wrote:
select distinct BP_NAME,
NPAGES,
PAGESIZE,
decimal((bigint (npages)*bigint (pagesize)/(1024*1024))),

decimal(1-((decimal(pool_ data_p_reads)+d ecimal(pool_ind ex_p_reads))/

(1+decimal(pool _data_l_reads)+ decimal(pool_in dex_l_reads))), 20,5)*100
as "BP Hit Ratio"
from table( snapshot_bp( '<DBNAME>', -1 ))
as snapshot_databa se inner join syscat.bufferpo ols bp
on bp.BPNAME = snapshot_databa se.BP_NAME

Make sure you update "<DBNAME>" with your database's name.
[from a db2 newbie] Thank you for the post!
Question. What is column '4'? In my case they are all 0.
nat
Aug 23 '06 #4
On Wed, 23 Aug 2006 05:25:37 -0700, tsmithnj wrote:
It is the hit ratio. You probably need to turn on your monitor switches.
No. That's column 5. I have that. (Wadda ya think I was excited about?<g>)
But column 4 in my case is 0.

nat

Aug 23 '06 #5
That's the size of the BP in GB. Change "1024*1024" to "1024" and
you'll have MB


natG wrote:
On Wed, 23 Aug 2006 05:25:37 -0700, tsmithnj wrote:
It is the hit ratio. You probably need to turn on your monitor switches.
No. That's column 5. I have that. (Wadda ya think I was excited about?<g>)
But column 4 in my case is 0.

nat
Aug 23 '06 #6

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

Similar topics

5
2396
by: Paul | last post by:
Hi, is there any way to know the content of the bufferpool : - space usage not present in snapshot - tables actually cached in and number of pages, same for index ... thx
1
6550
by: Christian Berg | last post by:
Hi, I have got a problem with resizing the bufferpool of a DB2 v.8.2 instance. The DB2 runs on an AIX 5.x platform. Problem is that an "ALTER BUFFERPOOL ..." command is not persistent if the database is stopped with the db2stop and restarted with the db2start command.
0
1326
by: DB2 News Group | last post by:
Using the new snapshot function in version 8 I have come across something interesting. When computing the bufferpool hit ratio and tablespace buffer pool hit ratio, both of these show up as very low (< 2%) for a large table (MDC) (400+ million rows) upon which full table scans are performed. When running a query against the table which performs a full table scan (get a count of all MDC cells by partition), I see that the bp hit ratio...
5
3469
by: Hemant Shah | last post by:
Folks, I am not sure what I am doing wrong, but We have an transaction that does some serious calculation on small chink of data over and over again. It selects few rows from the table several times and does different calculations. It was taking about 45 seconds to run. I thought that moving the file to its own tablespace and giving it large bufferpool would improve the performance. I experienced exactly opposite, the
20
8134
by: Hemant Shah | last post by:
Folks, I am using DB2 UDB 8.2 on AIX 5.1. How large of a bufferpool can you create? I tried to create a 4GB bufferpool db2 complained that is cannot allocate enogth memory. I have 16GB on this system. # db2 create bufferpool cfgbuffpool immediate size 1048576 pagesize 4096 SQL20189W The buffer pool operation (CREATE/ALTER) will not take effect until
3
6242
by: dotyet | last post by:
Hi Everyone, I am in a very strange situation, and am looking for suggestions to tackle it. I have a 10 gig database on 64-bit windows 2003 running platform. The database has about 5 gigs of bufferpool. It's a DB2 UDB 8.2 FP9a database. I am trying to restore an online backup image of this database on a
1
5538
by: Raja Shekar | last post by:
HI Every body , I would like to know whether is it mandatory to give Tablespace page size and Bufferpool page size equal..? i also heard like while creating tablespace if pages size of tablespace and bufferpool , the statement itself will fail ...why i'm asking is if we chose a different page size ( ofcourse less than bufferpool page size ) only it shoud affect the performance of db2 .. Thanks in Advance Raja Shekar
5
2681
by: db2admin | last post by:
hello, admin guide says that pool_data_p_reads - pool_async_data_reads will give me number of physical reads that were performed synchronously (that is, physical data page reads that were performed by database manager agents). I assume then pool_data_p_reads should give total value of all reads ( synchronous + asynchronous ) i see values for pool_async_data_reads more than pool_data_p_reads in
3
7933
by: dunleav1 | last post by:
In 9.1 and 9.5 (Linux 64 bit) when a buffer pool is set to self- tuning, how are blocks configured in respect to blocked vs non-blocked when self-tuning is set to on? (ie) I have one bufferpool that is 16k that the IBMDEFAULTBP is shared between all tablespaces. The data tablespace has prefetch automatic set to on.
0
9579
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,...
0
10332
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 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...
1
10321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9152
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7620
isladogs
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...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4300
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
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.