473,805 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

calculate package cache hit ratio

the formula for package cache hit ratio is

1 - (package cache inserts/package cache lookups), what the result
would be a effective ratio? currently we have cache inserts=25, cache
lookups=35, so i get ratio =0.28, is this a good number?
Nov 12 '05 #1
4 7633
No it is not.
The formula can be used as: (1 -Inserts/Lookups) * 100
In your case, you get 28.57%. You aim is to get => 80%

Be careful. If the cache is empty, you'll obviously get a low ratio.
You should snapshot when the db has been activated, users have logged on
and have started using their application.

Normally a low ratio is an indication of a Package Cache too small.

HTH, Pierre
xixi wrote:
the formula for package cache hit ratio is

1 - (package cache inserts/package cache lookups), what the result
would be a effective ratio? currently we have cache inserts=25, cache
lookups=35, so i get ratio =0.28, is this a good number?


--
Pierre Saint-Jacques - Reply to: sesconsjunk at attglobaljunk dot com
Reconstruct address: Remove the two junk and replace at and dot by
their symbols.
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.

Nov 12 '05 #2
No it is not.
The formula can be used as: (1 -Inserts/Lookups) * 100
In your case, you get 28.57%. You aim is to get => 80%

Be careful. If the cache is empty, you'll obviously get a low ratio.
You should snapshot when the db has been activated, users have logged on
and have started using their application.

Normally a low ratio is an indication of a Package Cache too small.

HTH, Pierre
xixi wrote:
the formula for package cache hit ratio is

1 - (package cache inserts/package cache lookups), what the result
would be a effective ratio? currently we have cache inserts=25, cache
lookups=35, so i get ratio =0.28, is this a good number?


--
Pierre Saint-Jacques - Reply to: sesconsjunk at attglobaljunk dot com
Reconstruct address: Remove the two junk and replace at and dot by
their symbols.
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.

Nov 12 '05 #3
Not really - but on the other hand your sample is so small that it's
not particularly meaningful. I have these values:

Package cache lookups = 6368651
Package cache inserts = 396292

which comes out to around .94. I'd suggest you hammer your database
for a while before taking the snapshot so you get a better feel for
what's going on under load. The packages are cached (inserted) the
first time they're used, and the next time they're needed they will be
retrieved from the cache if they're still there (lookup).

/T

da****@yahoo.co m (xixi) wrote in message news:<c0******* *************** ****@posting.go ogle.com>...
the formula for package cache hit ratio is

1 - (package cache inserts/package cache lookups), what the result
would be a effective ratio? currently we have cache inserts=25, cache
lookups=35, so i get ratio =0.28, is this a good number?

Nov 12 '05 #4
Not really - but on the other hand your sample is so small that it's
not particularly meaningful. I have these values:

Package cache lookups = 6368651
Package cache inserts = 396292

which comes out to around .94. I'd suggest you hammer your database
for a while before taking the snapshot so you get a better feel for
what's going on under load. The packages are cached (inserted) the
first time they're used, and the next time they're needed they will be
retrieved from the cache if they're still there (lookup).

/T

da****@yahoo.co m (xixi) wrote in message news:<c0******* *************** ****@posting.go ogle.com>...
the formula for package cache hit ratio is

1 - (package cache inserts/package cache lookups), what the result
would be a effective ratio? currently we have cache inserts=25, cache
lookups=35, so i get ratio =0.28, is this a good number?

Nov 12 '05 #5

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

Similar topics

9
8847
by: Matt | last post by:
Hello I am tring to figure out why our SQL server is a bit sluggish from time to time. It is running a dual XEON, with 2.5 GB RAM, and a fast SCSI I/O sub system setup as follows. OS, mirrored 2 drives SQL DATA 16 HDD RAID 10
0
389
by: xixi | last post by:
the formula for package cache hit ratio is 1 - (package cache inserts/package cache lookups), what the result would be a effective ratio? currently we have cache inserts=25, cache lookups=35, so i get ratio =0.28, is this a good number?
10
4858
by: datapro01 | last post by:
Running DB2 8.1.6A on AIX 5.1 We are experience package cache overflows. The high water mark for package cache is showing as 16,108,513 bytes, or approximately 3933 4K pages. The package cache size is set at Maxapples * 8 Maxapples is at 500.
0
1931
by: shterke | last post by:
Good day, I've been monitoring a DB2 system and noticed a low package cache hit ratio, I calculated it based on the formula in the db2 information center: (1-(db.pkg_cache_inserts/db.pkg_cache_lookups))*100 as you can see below the average (most of the time) of the package cache hit ratio is 30%
1
2861
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 blocks). Its buffer cache hit ratio was about 99.7-99.8. Last day it starts work slow, there was many blocks and dedlocks. There are no any queries, jobs and applications was added. Now buffer cache hit ratio oscilate about 95-98. I try update statistics...
7
43952
by: carterweb | last post by:
This is how I do it now. 1. Determine the dimensions of the rectangle. 2. Set a my font size to a fixed maximum size. 3. Apply the font my string and measure the string using the graphics object. 4. If string size is less than the size of the rectangle, we are done.
0
2431
by: Hypnotik | last post by:
My program is to simulate cache memory. I read in the info from 2 external files, 1) access 2) data in memory. When I read the information in I display the info...and it is all correct. However when I attempt to display the info in main anywhere the info is incorrect. I thought it might be a problem while I was reading the data in, but it wouldn't be correct the first time if that were the case. Below is the code. At the end of main where...
1
3064
by: Ramchandra | last post by:
Hi , i am facing problem in package cache hit ratio its between 47-45% which is very less:- here are my configuration related to package cache:- Catalog cache size (4KB) (CATALOGCACHE_SZ) = 2500
17
2211
by: MNNovice | last post by:
Calculate net amount based on conditions ________________________________________ I need to calculate a net amount that is based on FedRatio. Normally the FedRatio is set to be 80% but there are a few instances where it varies depending on a GrantNo and ProjectNo. To convert APAmount to NetAmount, I will need to incorporate these criteria. If I have 2 invoices for the APAmount $100 and $200 and these belong to two projects with two...
0
9716
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, 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...
0
9596
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
10356
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...
0
10103
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
9179
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
7644
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
5676
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4316
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
3
3006
bsmnconsultancy
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...

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.