473,406 Members | 2,620 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,406 software developers and data experts.

Extent Sizes and Page sizes

Can anybody explain to me the relation between extentsize and pagesize.
When I am creating a new tablespace what do I need to be careful of?
Say pagesize is 8K is keeping extentsize(pages) 64 too large? What
exactly is the relation?

Thanks

Jan 26 '07 #1
3 12104
For a tablespace, you need to define the size 4,8,16,32k) of the page that
will hold the data. Each tablespace of a page size must have access to
bufferpool of same page size and a system temporary tablespace of same page
size.

The extent size determines the number of those pages that db2 will use to
manage the physical allocation of disk space on each container when new data
needs to be written and no empty pace exists to receive the row. Then the
write will force to physically allocate a full extent size of contiguous
pages.

The extent size is also used to determins the size of prefetcblock when DB2
has to retrieve the data. DB2 will determine that prefetching block data is
preferred and will look at the prefetch size defined for that tablespace.
it is dependent on the extent size you must define.

Page size and extent size cannot be changed by ALTER commands or some such.
Once chosen and defined, they're cast in concrete.

If you do not know anything about the data and how it will be manupulated
then you can use a "gross" rule of thumb.
OLTP environment: Small pages (4k,8k) small no. of pages per extent: 4,6,16
pages.
DSS or WareHouse: Larger pages (16k,32k) larger extents (16,32,64,128
pages). Use 256 extent size judiciously. The size of the extent is chosen
on the basis of the size of the table data and its forecasted usage (query
intensive, trans. intensive, mix, ...).

Hope this helps, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Asphalt Blazer" <as***********@gmail.coma écrit dans le message de news:
11**********************@v33g2000cwv.googlegroups. com...
Can anybody explain to me the relation between extentsize and pagesize.
When I am creating a new tablespace what do I need to be careful of?
Say pagesize is 8K is keeping extentsize(pages) 64 too large? What
exactly is the relation?

Thanks
Jan 26 '07 #2
Thanks for your response
>From what I understand, DB2 will create a new extent if there is now
space for the new row that comes in.
As long as this goes on its fine.

But what does people mean by saying for 8 K pagesize 64 extentsize is
too large. say the prefetch is set to automatic and tablespace is
spread over 2 disks. Where is the space wastage coming into picture?
On Jan 26, 4:16 pm, "Pierre Saint-Jacques" <sesc...@invalid.netwrote:
For a tablespace, you need to define the size 4,8,16,32k) of the page that
will hold the data. Each tablespace of a page size must have access to
bufferpool of same page size and a system temporary tablespace of same page
size.

The extent size determines the number of those pages that db2 will use to
manage the physical allocation of disk space on each container when new data
needs to be written and no empty pace exists to receive the row. Then the
write will force to physically allocate a full extent size of contiguous
pages.

The extent size is also used to determins the size of prefetcblock when DB2
has to retrieve the data. DB2 will determine that prefetching block data is
preferred and will look at the prefetch size defined for that tablespace.
it is dependent on the extent size you must define.

Page size and extent size cannot be changed by ALTER commands or some such.
Once chosen and defined, they're cast in concrete.

If you do not know anything about the data and how it will be manupulated
then you can use a "gross" rule of thumb.
OLTP environment: Small pages (4k,8k) small no. of pages per extent: 4,6,16
pages.
DSS or WareHouse: Larger pages (16k,32k) larger extents (16,32,64,128
pages). Use 256 extent size judiciously. The size of the extent is chosen
on the basis of the size of the table data and its forecasted usage (query
intensive, trans. intensive, mix, ...).

Hope this helps, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Asphalt Blazer" <asphaltbla...@gmail.coma écrit dans le message de news:
1169842692.118620.112...@v33g2000cwv.googlegroups. com...
Can anybody explain to me the relation between extentsize and pagesize.
When I am creating a new tablespace what do I need to be careful of?
Say pagesize is 8K is keeping extentsize(pages) 64 too large? What
exactly is the relation?
Thanks
Jan 26 '07 #3
TRhey may mean that if you do a singleton insert and this very infrequently,
the first time DB2 needs new space, it will put the row as row1 of Page1 of
64 allocated and "waste" the space. Imagine that for an employee table with
a hiring freeze !!!!
Now if your issue is that you have to worry about (8k*4096*64=2.1MB) of
wasted space, then ....
Mind you, anytime DB2 decides to prefetch and that extent is chosen, you
write in the bufferpool 63 empty pages.
Whether 8k, 64 pagwes is a good or bad combination is more driven by what
you do with the data and how much of it you have.
HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Asphalt Blazer" <as***********@gmail.coma écrit dans le message de news:
11**********************@m58g2000cwm.googlegroups. com...
Thanks for your response
>From what I understand, DB2 will create a new extent if there is now
space for the new row that comes in.
As long as this goes on its fine.

But what does people mean by saying for 8 K pagesize 64 extentsize is
too large. say the prefetch is set to automatic and tablespace is
spread over 2 disks. Where is the space wastage coming into picture?
On Jan 26, 4:16 pm, "Pierre Saint-Jacques" <sesc...@invalid.netwrote:
For a tablespace, you need to define the size 4,8,16,32k) of the page that
will hold the data. Each tablespace of a page size must have access to
bufferpool of same page size and a system temporary tablespace of same
page
size.

The extent size determines the number of those pages that db2 will use to
manage the physical allocation of disk space on each container when new
data
needs to be written and no empty pace exists to receive the row. Then the
write will force to physically allocate a full extent size of contiguous
pages.

The extent size is also used to determins the size of prefetcblock when
DB2
has to retrieve the data. DB2 will determine that prefetching block data
is
preferred and will look at the prefetch size defined for that tablespace.
it is dependent on the extent size you must define.

Page size and extent size cannot be changed by ALTER commands or some
such.
Once chosen and defined, they're cast in concrete.

If you do not know anything about the data and how it will be manupulated
then you can use a "gross" rule of thumb.
OLTP environment: Small pages (4k,8k) small no. of pages per extent:
4,6,16
pages.
DSS or WareHouse: Larger pages (16k,32k) larger extents (16,32,64,128
pages). Use 256 extent size judiciously. The size of the extent is chosen
on the basis of the size of the table data and its forecasted usage (query
intensive, trans. intensive, mix, ...).

Hope this helps, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Asphalt Blazer" <asphaltbla...@gmail.coma écrit dans le message de
news:
1169842692.118620.112...@v33g2000cwv.googlegroups. com...
Can anybody explain to me the relation between extentsize and pagesize.
When I am creating a new tablespace what do I need to be careful of?
Say pagesize is 8K is keeping extentsize(pages) 64 too large? What
exactly is the relation?
Thanks
Jan 26 '07 #4

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

Similar topics

10
by: Luke Duddridge | last post by:
Hello, I work for a local council and have recently been part of the project for a new website design which went live at the end of september at www.tauntondeane.gov.uk. I set the relative...
38
by: Kai Jaeger | last post by:
I am playing with setting font sizes in CSS using em as unit of measurement. All seems to be fine. Even Netscape Navigator shows the characters very similar to IE, what is not the kind if px is...
0
by: Carlos Kirkconnell | last post by:
Hi guys this is the second time I place my question here, so I spect that at least SOMEBODY takes his time for reading it. Well, my problem is: I have an application that needs to dynamically...
1
by: jcgeorge | last post by:
I would like to perform a redirected restore and was wondering what is the best way to migrate all the data & strucuture but to modify the original extent size of the tablespaces. The tablespaces...
2
by: p175 | last post by:
Hi folks, I've tried reading just about every post I can on raid stiping / extent size etc and I'm just getting myself more confused than ever. Here's my situation. On a Windows Server 2000...
4
by: hgraham | last post by:
I've recently noticed that there seems to be some font size differences (I'm guessing) in pages being viewed in FF 1.5 on my laptop which causes the whole layout to fall apart. You can see this...
60
by: deko | last post by:
As I understand it, most browser manufacturers have agreed on 16px for their default font size. So, this should be an accurate conversion for percentages: px % 16 = 100 14 = 87.5 13 =...
1
by: Edward | last post by:
I created a simple CSS layout (code and example below) for bloggin/writing but ran into five issues that I need help with: 1. How do I get rid of the right-margin red line on the last three...
9
by: Racerx | last post by:
Hi All: Can anyone suggest me how to determine the optimised size for the following: 1.Extends 2.Tablespaces 3.Bufferpools Regards,
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
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,...
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
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...
0
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,...

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.