473,406 Members | 2,377 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.

RAID 5 is Killing Performance?

We replaced an aging system with a newer (faster 4-way) and presumably
better system. Perfomance for most queries has improved as one would
expect. However, we're getting slaughtered on performance for
summary-style queries. What took 2 minutes now takes 2-3 hours to
complete.

We backed up DB and restored it on a borrowed (somewhat inferior class)
box to see if we could do some diagnostics to determine why we had such
horrid performance. Much to our surprise, there was no performance
problem there. The main difference (other than slightly slower CPUs) is
the disk configuration. Our badly performing system uses RAID 5 on 9
disks. The borrowed machine is fully mirrored on 4 disks. Both machines
are running 7.2 FP12 on AIX 5.

Further investigation showed that when breaking the query down,
commenting out a join to a code lookup table restored performance. The
optimizer plan looked good with or without the code table join so it
wouldn't seem to impact it that much. Is there some wisdom that is
specific to tablespaces and RAID 5 (especially with regard to small
code lookup tables) that we need to take into account here? Are there
other db or dbm cfg parameters that we can look at?

Thanks,
Evan

Nov 12 '05 #1
4 4656
"esmith2112" <es********@hotmail.com> wrote in message
news:11********************@f14g2000cwb.googlegrou ps.com...
We replaced an aging system with a newer (faster 4-way) and presumably
better system. Perfomance for most queries has improved as one would
expect. However, we're getting slaughtered on performance for
summary-style queries. What took 2 minutes now takes 2-3 hours to
complete.

We backed up DB and restored it on a borrowed (somewhat inferior class)
box to see if we could do some diagnostics to determine why we had such
horrid performance. Much to our surprise, there was no performance
problem there. The main difference (other than slightly slower CPUs) is
the disk configuration. Our badly performing system uses RAID 5 on 9
disks. The borrowed machine is fully mirrored on 4 disks. Both machines
are running 7.2 FP12 on AIX 5.

Further investigation showed that when breaking the query down,
commenting out a join to a code lookup table restored performance. The
optimizer plan looked good with or without the code table join so it
wouldn't seem to impact it that much. Is there some wisdom that is
specific to tablespaces and RAID 5 (especially with regard to small
code lookup tables) that we need to take into account here? Are there
other db or dbm cfg parameters that we can look at?

Thanks,
Evan

You should have only one container per tablespace for each or each disk
array. Since all your disks are stripped in an array, you should have only
one container.

Make sure that stripped containers registry parm is set to on. If it is not,
you will have to recreate the tablespaces. See that Administration:
Performance Guide for details.

But I suspect that there is something else going on to account for the
difference between 2 minutes and 2 hours.
Nov 12 '05 #2
Did you remember to enable proper RAID 5 usage in DB2 (see "Optimizing table
space performance when data is on RAID devices" in the online
documentation)? Summary:

Define a single container for the table space (using the RAID device).
Make the EXTENTSIZE of the table space equal to, or a multiple of, the RAID
stripe size.
Ensure that the PREFETCHSIZE of the table space is:
- the RAID stripe size multiplied by the number of RAID parallel devices (or
a whole multiple of this product), and
- a multiple of the EXTENTSIZE.
Use the DB2_PARALLEL_IO registry variable to enable parallel I/O for the
table space.

---

Is your SCSI RAID controller up to the task (you didn't say what your RAID
hardware was using)? Most of the cheaper devices give awful performance. We
upgraded the card in one problem system to one with a battery backed write
cache after which reorg ran 7 times faster.

"esmith2112" <es********@hotmail.com> wrote in message
news:11********************@f14g2000cwb.googlegrou ps.com...
We replaced an aging system with a newer (faster 4-way) and presumably
better system. Perfomance for most queries has improved as one would
expect. However, we're getting slaughtered on performance for
summary-style queries. What took 2 minutes now takes 2-3 hours to
complete.

We backed up DB and restored it on a borrowed (somewhat inferior class)
box to see if we could do some diagnostics to determine why we had such
horrid performance. Much to our surprise, there was no performance
problem there. The main difference (other than slightly slower CPUs) is
the disk configuration. Our badly performing system uses RAID 5 on 9
disks. The borrowed machine is fully mirrored on 4 disks. Both machines
are running 7.2 FP12 on AIX 5.

Further investigation showed that when breaking the query down,
commenting out a join to a code lookup table restored performance. The
optimizer plan looked good with or without the code table join so it
wouldn't seem to impact it that much. Is there some wisdom that is
specific to tablespaces and RAID 5 (especially with regard to small
code lookup tables) that we need to take into account here? Are there
other db or dbm cfg parameters that we can look at?

Thanks,
Evan

Nov 12 '05 #3
NO RAID5!! NO RAID5!! NO RAID5!! NO RAID5!! NO RAID5!! NO RAID5!!

Your experiences do not surprise me.

My personal feeling is that RAID5 and relational databases should never
interact. Please see postings by me and several other more well known
pundits on the subject at the BAARF (Battle Against Any RAID
Five/Four/Free) web site: www.baarf.com

Performance compared to RAID10 is poor, recovery is slow, data
security/safety is nearly non-existent. Read and learn.

Art S. Kagel
"esmith2112" <es********@hotmail.com> wrote in message
news:11********************@f14g2000cwb.googlegrou ps.com...
We replaced an aging system with a newer (faster 4-way) and presumably
better system. Perfomance for most queries has improved as one would
expect. However, we're getting slaughtered on performance for
summary-style queries. What took 2 minutes now takes 2-3 hours to
complete.

We backed up DB and restored it on a borrowed (somewhat inferior class)
box to see if we could do some diagnostics to determine why we had such
horrid performance. Much to our surprise, there was no performance
problem there. The main difference (other than slightly slower CPUs) is
the disk configuration. Our badly performing system uses RAID 5 on 9
disks. The borrowed machine is fully mirrored on 4 disks. Both machines
are running 7.2 FP12 on AIX 5.

Further investigation showed that when breaking the query down,
commenting out a join to a code lookup table restored performance. The
optimizer plan looked good with or without the code table join so it
wouldn't seem to impact it that much. Is there some wisdom that is
specific to tablespaces and RAID 5 (especially with regard to small
code lookup tables) that we need to take into account here? Are there
other db or dbm cfg parameters that we can look at?

Thanks,
Evan


Nov 12 '05 #4
My experience (battery backing on controller) was with simple RAID-1 (i.e.
every disk is 2 disks), not RAID-5. RAID-5 adds its own complications (c.f.
baarf).

However, the OP wasn't asking "should I use RAID-5 or some other RAID
level?" but was concerned with a massive performance degradation that was
well in excess of the expected slow-down.

"Art S. Kagel" <ka***@bloomberg.net> wrote in message
news:41**************@bloomberg.net...
NO RAID5!! NO RAID5!! NO RAID5!! NO RAID5!! NO RAID5!! NO RAID5!!

Your experiences do not surprise me.

My personal feeling is that RAID5 and relational databases should never
interact. Please see postings by me and several other more well known
pundits on the subject at the BAARF (Battle Against Any RAID
Five/Four/Free) web site: www.baarf.com

Performance compared to RAID10 is poor, recovery is slow, data
security/safety is nearly non-existent. Read and learn.

Nov 12 '05 #5

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

Similar topics

5
by: Mark Kirkwood | last post by:
Dear all, Here is the first installment concerning ATA disks and RAID controller use in a database server. I happened to have a Solaris system to myself this week, so took the opportunity to use...
8
by: Joseph | last post by:
I've been thinking about the benefits or lack thereof of deploying DMS tablespaces for RAID, say RAID 5. The point of DMS is to get reasonable size extents of contiguous disk space so that minimal...
0
by: esmith2112 | last post by:
We replaced an aging system with a newer (faster 4-way) and presumably better system. Perfomance for most queries has improved as one would expect. However, we're getting slaughtered on performance...
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...
13
by: Dave | last post by:
RAID 5 beats RAID 10 Can I get some feedback on these results? We were having some serious IO issues according to PerfMon so I really pushed for RAID 10. The results are not what I expected. ...
1
by: serge | last post by:
I have a database that is around 2 to 4 GB. If I were to estimate some numbers like 4x growth or even 10x, the database size could reach 40GB. The new server will be running SQL Server 2005. I...
17
by: boa | last post by:
I'm currently planning disk layouts and use for a new version of our database. The current version has all data and indexes in the default filegroup, placed on one big raid-5 array(6 drives) along...
110
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
6
by: aj | last post by:
DB2 LUW v8.2 FP 14 RHAS 2.1 Not trying to start a flame war or anything, but does anyone have an opinion regarding whether to use Raid 5 or Raid 10 w/ DB2? We have an EMC SAN (a Clariion...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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...

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.