472,811 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

bufferpool content

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
Nov 12 '05 #1
5 2326
While this is an interesting question more interesting ones are:
What's the value of this information?
Why are you interested in it?

Bufferpool contents change rapidly with changing access to data. If your
database is larger than the buffer pool, then eventually (almost) all of
the pool will contain data. Relational systems do this to make as much
data as possible available without resorting to disk access. Assuming
you could measure the items you requested; the values you obtain may
change dramatically within a few seconds.
Phil Sherman

Paul wrote:
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


Nov 12 '05 #2
Hi
It's only for information and can be useful when tuning SQL statements
I can determine if a table is everytime in the bufferpool so i can create a
new bufferpool for this one
I know i can find this by other commands but it's more difficult

Also i can tell quickly if the bufferpool is too large if we can know this
information
i know i can use snapshot to view logical vs physical reads but it don't
tell me
how much space i can reduce from the bufferpool .
A 10Go database may only need 100 MB bufferpool but at first we may size the
bufferpool at 1GB
Instead if we know the % used of the bufferpool by simple order, we can size
the bufferpool more quickly by
capturing the values every hour and during typical workload

Paul
Nov 12 '05 #3
Your response indicates that you are attempting to micro-manage the
buffer pools. This is a very time consuming, expensive, and frequently
futile tuning effort. Unless your buffer pool setup is a disaster; I'd
be surprised if you could make a 10% improvement in performance.
Application SQL statement design is usually a much larger factor in
overall performance. Bad design (both application SQL and supporting
database architecture) will also distort buffer pool usage.

See additional comments below.

Phil Sherman
Paul wrote:can improve performance by orders of mangitude
Hi
It's only for information and can be useful when tuning SQL statements
I can determine if a table is everytime in the bufferpool so i can create a
new bufferpool for this one
Today the table may be in the buffer pool but tomorrow's workload may
change this.
I know i can find this by other commands but it's more difficult

Also i can tell quickly if the bufferpool is too large if we can know this
information
Buffer pools have to be gigantic to be too large. Most reasonably sized
systems use a dedicated database server where all available memory is
available so support database needs.
i know i can use snapshot to view logical vs physical reads but it don't
tell me
how much space i can reduce from the bufferpool .
There is no tool that will tell you when you have "properly" minimized
the buffer pool. A DBA with a number of years of tuning experience and
some knowledge of how your applications work and your performance
objectives should know how to size a buffer pool. Performance tuning
classes and books make an excellent starting point.
A 10Go database may only need 100 MB bufferpool but at first we may size the
bufferpool at 1GB
Instead if we know the % used of the bufferpool by simple order, we can size
the bufferpool more quickly by
capturing the values every hour and during typical workload
This statement implies that you may be attempting to use separate buffer
pools for each table. There are valid performance reasons to do this -
where there is a real benefit - but I doubt it would apply to "a simple
order's" tables.
Paul


Nov 12 '05 #4
Thx for your time even i already know this
maybe you consider me begginer but i'm not (without modesty)
i like to have control over things and maybe you consider this futile for
bufferpool, i don't think so
i certainly agree that it's can be time consuming whereas optimised sql if
much better but at my work
we have server with more than 10 databases (price reduction you know and
without the possibily of sql rewritintg) and it's not easy to deal with
memory
for me it's just another way i can explore to provide better performances
for db but maybe it's too low level if ibm don't provide any api to do this
....

Nov 12 '05 #5
Ian
Paul wrote:
Thx for your time even i already know this
maybe you consider me begginer but i'm not (without modesty)
i like to have control over things and maybe you consider this futile for
bufferpool, i don't think so
i certainly agree that it's can be time consuming whereas optimised sql if
much better but at my work
we have server with more than 10 databases (price reduction you know and
without the possibily of sql rewritintg) and it's not easy to deal with
memory
for me it's just another way i can explore to provide better performances
for db but maybe it's too low level if ibm don't provide any api to do this
...


It is possible to tune the bufferpools without knowing what is in them,
although it's generally somewhat of an "informed" trial an error
approach, i.e. keep an eye on bufferpool performance (don't consider
hit ratio only!) as you change (either increase or decrease bufferpool
size), and you'll find the "optimal" bufferpool size.

-----= 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

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

Similar topics

1
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...
1
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...
5
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...
20
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...
3
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...
1
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...
0
by: Ian | last post by:
dcruncher4@aim.com wrote: The issue here is that you're hitting bufferpool 4097. This is the "hidden" 8k bufferpools that will be used if your system does not have enough memory to support...
3
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...
0
by: dot.yet | last post by:
Hi Everyone, environment: DB2 9.5 WSE with FP 2a Solaris 10 u5 - 64-bit SMP - 2 Quad CPUS - total 8 cores 16 GB RAM SAMPLE database Solaris Containers
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.