473,756 Members | 2,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question about tablespace and container design

Hello,

LUW V8 FP 11 running Linux RH AS4 Update 3.

In regards to performance and IO parallelism, does it matter if I
create a tablespace with a single big container, or is it better to
create it with several smaller containers ?

Any ideas and links to the proper documentation is greatly appreciated.

Thanks in advance.

Jul 25 '06 #1
4 1794
Ian
Michel Esber wrote:
Hello,

LUW V8 FP 11 running Linux RH AS4 Update 3.

In regards to performance and IO parallelism, does it matter if I
create a tablespace with a single big container, or is it better to
create it with several smaller containers ?

Any ideas and links to the proper documentation is greatly appreciated.
There isn't a lot of generic documentation on this - most
recommendations are specific to the type of storage your system is
using.

However: I generally prefer to have 1 container per physical storage
device (individual disk or RAID array), using DB2_PARALLEL_IO when
appropriate.

With large RAID arrays and SAN storage, you do have to be careful
because you may have multiple LUNs that reside on the same RAID array.
Putting 1 container/LUN when you have multiple LUNs from a single
RAID array can create I/O contention issues.
Jul 25 '06 #2
From a performance and parallelism viewpoint, multiple containers can
be of benefit if each container is located on a separate disk drive.
This allows parallel I/O when doing scans.

If you place two containers on a single disk drive, then, as data is
read from each container, a seek operation will be needed. Seeks are a
relatively slow operation and should be avoided as much as possible when
doing scans. When containers are located on separate disks, we expect to
read data from each disk drive in turn. If the system has the capacity
to do this concurrently from multiple drives, then the overall transfer
rate can be significantly improved.

Large raid5 disk subsystems, while using multiple disk drives, appear to
the operating system as a single disk. Placing multiple containers on
these doesn't provide the same benefits as separate disk drives will.
Raid5 can, with judicious matching of prefetch parameters to the
physical characteristics of the raid array, provide scan performance
enhancements similar to using multiple containers on different physical
disk drives.

Suggested reading:
Administration Guide: Planning - Chapter 5
Phil Sherman

Michel Esber wrote:
Hello,

LUW V8 FP 11 running Linux RH AS4 Update 3.

In regards to performance and IO parallelism, does it matter if I
create a tablespace with a single big container, or is it better to
create it with several smaller containers ?

Any ideas and links to the proper documentation is greatly appreciated.

Thanks in advance.
Jul 25 '06 #3
aj
<laughing>
It was about time for Art's annual RAID 5 rant, wasn't it?

Hi Art - hope things are going well. :)

cheers

Allen W. Jantzen (formerly of c.d.i)
Art S. Kagel wrote:
Phil Sherman wrote:
<SNIP>
>Large raid5 disk subsystems, while using multiple disk drives, appear
to the operating system as a single disk. Placing multiple containers
on these doesn't provide the same benefits as separate disk drives
will. Raid5 can, with judicious matching of prefetch parameters to the
physical characteristics of the raid array, provide scan performance
enhancements similar to using multiple containers on different
physical disk drives.

NO RAID5!!! NO RAID5!!! NO RAID5!!! NO RAID5!!! NO RAID5!!! NO
RAID5!!!

Raid5 and Relational Database Systems should never be used together!

Phil, your points are all well taken when applied to any striped RAID
format including RAID0, RAID01, RAID10, RAID3, and RAID4 (yes and RAID5
too). However, the inherent lack of data safety and performance of RAID5
make it unacceptable for RDBMSes like DB2, Informix, Oracle, etc. I
recognize that this was not your point Phil, so please don't flame me,
but I haven't had an opportunity to spread the word about the evils of
RAID5 in a while. Your posting was the opening I needed.

For details see my posting and those of others on the Anti-RAID5 web site:

www.baarf.com

Be sure to look at the members' page to review the brief mentions of the
actual problems DBAs and SAs have experienced using RAID5.

Art S. Kagel
Jul 26 '06 #4
This is really strange - the copy of the forum I follow from my ISP
doesn't have Art's reply to my post.

I was just a bit too lazy to go into all of the downsides of RAID5. I've
been caught by some of the effects and don't make it a practice to
recommend it:
1. A production system powered down for two days waiting for a
replacement drive in a RAID5 array. After power up, no activity allowed
until the drive was rebuilt. (I could have done a full recovery faster
than this!) Please - don't ask for details.
2. Abysmal write performance. This occurred on a system where, during
the planning process, nobody involved in the project understood the
consequences of RAID5, especially write performance issues. This problem
was compounded by neglecting to purchase a write cache.
The biggest issue I've run into is the storage appliance that provides a
"large quantity of disk space with minimal overhead using RAID5
technology" that is shared between multiple systems and is the only
place with enough disk space to support the database. It's often a
tremendous shock to the system owner when explaining that the brand new,
multi thousand (or tens of thousand) dollar storage appliance is not a
good place to locate a database.

I can only hope that someday IBM will provide additional information
about the potential downsides of RAID5 in the Planning Guide manual.
Hopefully, this will be alongside the details to tune DB2 for better
performance on that type of storage.

Thanks again to Art for his "annual rant".

Phil Sherman

aj wrote:
<laughing>
It was about time for Art's annual RAID 5 rant, wasn't it?

Hi Art - hope things are going well. :)

cheers

Allen W. Jantzen (formerly of c.d.i)
Art S. Kagel wrote:
>Phil Sherman wrote:
<SNIP>
>>Large raid5 disk subsystems, while using multiple disk drives, appear
to the operating system as a single disk. Placing multiple containers
on these doesn't provide the same benefits as separate disk drives
will. Raid5 can, with judicious matching of prefetch parameters to
the physical characteristics of the raid array, provide scan
performance enhancements similar to using multiple containers on
different physical disk drives.


NO RAID5!!! NO RAID5!!! NO RAID5!!! NO RAID5!!! NO RAID5!!! NO
RAID5!!!

Raid5 and Relational Database Systems should never be used together!

Phil, your points are all well taken when applied to any striped RAID
format including RAID0, RAID01, RAID10, RAID3, and RAID4 (yes and
RAID5 too). However, the inherent lack of data safety and performance
of RAID5 make it unacceptable for RDBMSes like DB2, Informix, Oracle,
etc. I recognize that this was not your point Phil, so please don't
flame me, but I haven't had an opportunity to spread the word about
the evils of RAID5 in a while. Your posting was the opening I needed.

For details see my posting and those of others on the Anti-RAID5 web
site:

www.baarf.com

Be sure to look at the members' page to review the brief mentions of
the actual problems DBAs and SAs have experienced using RAID5.

Art S. Kagel
Jul 27 '06 #5

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

Similar topics

2
2082
by: maricel | last post by:
Which one is better in terms of producing optimum performance: a) Single tablespace that contain multiple containers, say 5 containers of 100MB each container or b)Single tablespace that that contain single container, say 1 container of 500MB - same tablespace size as in (a). Is there any trade-off?
8
12779
by: Amy DBA | last post by:
OK, I'm stumped now. I need help restoring a tablespace that has been marked offline. Here's a little background on the problem: 1) There was a hardware failure that caused the tablespace to become marked offline: State = 0x4000; Detailed explanation: Offline 2) I tried switching it back online and got this error: DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor...
4
3559
by: duoduo | last post by:
I want to know one thing, what is best design for tablespace containers, of course, it is DB2 EE 7.2 on AIX 4.3.3. For example, I have RAID 0+1 storage (8 disks) on EMC Symmetrix. Now I need to create a 64GB tablespace on this EMC RAID. Which of the following is the best way from performance perspective? (1) 1 64GB container (2) 4 * 16GB containers
4
14397
by: mairhtin o'feannag | last post by:
Hello, I have a tablespace striped across three drives, call them 1,2,3, just to be clever. :) I allocated a lot more space (DMS) than I should have, since I didn't know a way to estimate the space required (long story, but the original space was in one huge tablespace for all tables ((35 million row tables)) and I needed to segregate them out into separate tablespaces for backup and restore purposes. So I allocated, like 4 million...
1
279
by: jane | last post by:
HI, I have one performance questions... is # of tables in one tablespaces matter for performance point of view? why?
2
1614
by: causacn | last post by:
Hi, the column "picture" in table emp_photo from sample db is defined as blob(102400) As a Blob type, the actual data should be stored separately from the base table. However, when i look at the table structure of emp_photo, the all data are stored in same default "USERSPACE1" What is the normal way to design a table with blob column?
0
1488
by: Lan W via DBMonster.com | last post by:
I tried to restore DB2 UDB two databases into two different instances on AIX server. the raw devices size of rShortSpace0 and rShortSpace1 on the two instances are the same. # lsvg -l datavg datavg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT db2templv jfs 52 52 1 open/syncd /db2temp loglv00 jfslog 1 1 1 open/syncd N/A RegSpace0 jfs ...
0
4102
by: zhif | last post by:
I tried to test this process on my personal laptop. Could you help me to take a look where is the problem as below? 1. I created a source database, name: db100 <-- db2 create db db100 2. Collect the source database tablespace containers’ information <-- db2 list tablespace containers for 0 show detail Then I got as below Tablespace Containers for Tablespace 0 Container ID = 0 Name ...
3
2956
by: Michel Esber | last post by:
Hi all, Db2 v8 FP15 LUW . create table T (ID varchar (24), ABC timestamp) There is an index for (ID, ABC), allowing reverse Scans. My application needs to determine MIN and MAX(ABC) for a given ID. We are currently using a simple statement:
0
9456
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
9275
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
10034
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9872
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
9713
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...
1
7248
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
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3358
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.