pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedH/W RAID 5 on slower disks versus no raid on faster HDDs
33+ messages / 21 participants
[nested] [flat]
* H/W RAID 5 on slower disks versus no raid on faster HDDs
@ 2002-11-21 16:45 Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 17:06 ` Re: H/W RAID 5 on slower disks versus no raid on faster Charles H. Woloszynski <chw@clearmetrix.com>
2002-11-21 17:19 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Chris Ruprecht <chris@ruprecht.org>
2002-11-21 17:32 ` Re: H/W RAID 5 on slower disks versus no raid on faster scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
2002-11-27 18:16 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Merlin Moncure <merlin@rcsonline.com>
0 siblings, 5 replies; 33+ messages in thread
From: Rajesh Kumar Mallah. @ 2002-11-21 16:45 UTC (permalink / raw)
To: pgsql-performance@postgresql.org; pgsql-admin
Hi folks,
I have two options:
3*18 GB 10,000 RPM Ultra160 Dual Channel SCSI controller + H/W Raid 5
and
2*36 GB 15,000 RPM Ultra320 Dual Channel SCSI and no RAID
Does anyone opinions *performance wise* the pros and cons of above
two options.
please take in consideration in latter case its higher RPM and better
SCSI interface.
Regds
Mallah.
--
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)
Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
@ 2002-11-21 17:06 ` Charles H. Woloszynski <chw@clearmetrix.com>
4 siblings, 0 replies; 33+ messages in thread
From: Charles H. Woloszynski @ 2002-11-21 17:06 UTC (permalink / raw)
To: Rajesh Kumar Mallah. <mallah@trade-india.com>; pgsql-performance <pgsql-performance@postgresql.org>
How are you going to make use of the three faster drives under
postgresql? Were you intending to put the WAL, system/swap, and the
actual data files on separate drives/partitions? Unless you do
something like that (or s/w RAID to distribute the processing across the
disks), you really have ONE SCSI 15K Ultra320 drive against 3 slower
drives with the RAID overhead (and spreading of performance because of
the multiple heads).
I don't have specifics here, but I'd expect that the RAID5 on slower
drives would work better for apps with lots of selects or lots of
concurrent users. I suspect that the Ultra320 would be better for batch
jobs and mostly transactions with less selects.
Charlie
Rajesh Kumar Mallah. wrote:
>Hi folks,
>
>I have two options:
>3*18 GB 10,000 RPM Ultra160 Dual Channel SCSI controller + H/W Raid 5
>and
>2*36 GB 15,000 RPM Ultra320 Dual Channel SCSI and no RAID
>
>Does anyone opinions *performance wise* the pros and cons of above
>two options.
>
>please take in consideration in latter case its higher RPM and better
>SCSI interface.
>
>
>
>Regds
>Mallah.
>
>
>
>
>
>
--
Charles H. Woloszynski
ClearMetrix, Inc.
115 Research Drive
Bethlehem, PA 18015
tel: 610-419-2210 x400
fax: 240-371-3256
web: www.clearmetrix.com
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
@ 2002-11-21 17:19 ` Chris Ruprecht <chris@ruprecht.org>
4 siblings, 0 replies; 33+ messages in thread
From: Chris Ruprecht @ 2002-11-21 17:19 UTC (permalink / raw)
To: Rajesh Kumar Mallah. <mallah@trade-india.com>; +Cc: pgsql-admin
raid 0 (striping) spreads the load over multiple spindels, the same way raid 5
does. but raid 5 always needs to calculate parity and write that to it's
parity drive.
RPM isn't that critical, a lot depends on the machine, the processor and the
memory (and the spped with which the processor can get to the memory). I have
recently tested a lot of systems with some database benchmarks we wrote here
at work. We're not running Postgres here at work, sorry, these benchmarks are
of no use to Postgres ...
We we found is that a lot depends on motherboard design, not so much on drive
speed. We got to stages where we allocated 1.8 GB of RAM to shared memory for
the database server process, resulting in the entire database being sucked
into memory. When doing reads, 100% of the data is coming out the that
menory, and drive speed becomes irrelevant.
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
@ 2002-11-21 17:32 ` scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 17:46 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 17:58 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
4 siblings, 2 replies; 33+ messages in thread
From: scott.marlowe @ 2002-11-21 17:32 UTC (permalink / raw)
To: Rajesh Kumar Mallah. <mallah@trade-india.com>; +Cc: pgsql-performance@postgresql.org
On Thu, 21 Nov 2002, Rajesh Kumar Mallah. wrote:
>
> Hi folks,
>
> I have two options:
> 3*18 GB 10,000 RPM Ultra160 Dual Channel SCSI controller + H/W Raid 5
> and
> 2*36 GB 15,000 RPM Ultra320 Dual Channel SCSI and no RAID
>
> Does anyone opinions *performance wise* the pros and cons of above
> two options.
>
> please take in consideration in latter case its higher RPM and better
> SCSI interface.
Does the OS you're running on support software RAID? If so the dual 36
gigs in a RAID0 software would be fastest, and in a RAID1 would still be
pretty fast plus they would be redundant.
Depending on your queries, there may not be a lot of difference between
running the 3*18 hw RAID or the 2*36 setup, especially if most of your
data can fit into memory on the server.
Generally, the 2*36 should be faster for writing, and the 3*18 should be
about even for reads, maybe a little faster.
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 17:32 ` Re: H/W RAID 5 on slower disks versus no raid on faster scott.marlowe <scott.marlowe@ihs.com>
@ 2002-11-21 17:46 ` Rajesh Kumar Mallah. <mallah@trade-india.com>
1 sibling, 0 replies; 33+ messages in thread
From: Rajesh Kumar Mallah. @ 2002-11-21 17:46 UTC (permalink / raw)
To: scott.marlowe <scott.marlowe@ihs.com>; +Cc: pgsql-performance@postgresql.org
Oh i did not mention,
its linux, it does.
RAM: 2.0 GB
CPU: Dual 2.0 Ghz Intel Xeon DP Processors.
On Thursday 21 November 2002 23:02, scott.marlowe wrote:
> On Thu, 21 Nov 2002, Rajesh Kumar Mallah. wrote:
> > Hi folks,
> >
> > I have two options:
> > 3*18 GB 10,000 RPM Ultra160 Dual Channel SCSI controller + H/W Raid 5
> > and
> > 2*36 GB 15,000 RPM Ultra320 Dual Channel SCSI and no RAID
> >
> > Does anyone opinions *performance wise* the pros and cons of above
> > two options.
> >
> > please take in consideration in latter case its higher RPM and better
> > SCSI interface.
>
> Does the OS you're running on support software RAID? If so the dual 36
> gigs in a RAID0 software would be fastest, and in a RAID1 would still be
> pretty fast plus they would be redundant.
>
> Depending on your queries, there may not be a lot of difference between
> running the 3*18 hw RAID or the 2*36 setup, especially if most of your
> data can fit into memory on the server.
> Generally, the 2*36 should be faster for writing, and the 3*18 should be
> about even for reads, maybe a little faster.
Since i got lots of RAM and my Data Size (on disk ) is 2 GB i feel frequent reads
can happen from the memory.
I have heard putting pg_xlog in a drive of its own helps in boosting updates to
DB server.
in that case shud i forget abt the h/w and use one disk exclusively for the WAL?
Regds
mallah.
--
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)
Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 17:32 ` Re: H/W RAID 5 on slower disks versus no raid on faster scott.marlowe <scott.marlowe@ihs.com>
@ 2002-11-21 17:58 ` Rajesh Kumar Mallah. <mallah@trade-india.com>
1 sibling, 0 replies; 33+ messages in thread
From: Rajesh Kumar Mallah. @ 2002-11-21 17:58 UTC (permalink / raw)
To: scott.marlowe <scott.marlowe@ihs.com>; +Cc: pgsql-performance@postgresql.org
OK now i am reading Momjian's "PostgreSQL Hardware Performance Tuning"
once again ;-)
mallah.
On Thursday 21 November 2002 23:02, scott.marlowe wrote:
> On Thu, 21 Nov 2002, Rajesh Kumar Mallah. wrote:
> > Hi folks,
> >
> > I have two options:
> > 3*18 GB 10,000 RPM Ultra160 Dual Channel SCSI controller + H/W Raid 5
> > and
> > 2*36 GB 15,000 RPM Ultra320 Dual Channel SCSI and no RAID
> >
> > Does anyone opinions *performance wise* the pros and cons of above
> > two options.
> >
> > please take in consideration in latter case its higher RPM and better
> > SCSI interface.
>
> Does the OS you're running on support software RAID? If so the dual 36
> gigs in a RAID0 software would be fastest, and in a RAID1 would still be
> pretty fast plus they would be redundant.
>
> Depending on your queries, there may not be a lot of difference between
> running the 3*18 hw RAID or the 2*36 setup, especially if most of your
> data can fit into memory on the server.
>
> Generally, the 2*36 should be faster for writing, and the 3*18 should be
> about even for reads, maybe a little faster.
--
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)
Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
@ 2002-11-21 18:56 ` Steve Crawford <scrawford@pinpointresearch.com>
2002-11-21 19:08 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 19:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Bjoern Metzdorf <bm@turtle-entertainment.de>
4 siblings, 2 replies; 33+ messages in thread
From: Steve Crawford @ 2002-11-21 18:56 UTC (permalink / raw)
To: Rajesh Kumar Mallah. <mallah@trade-india.com>; pgsql-performance@postgresql.org
I had long labored under the impression that RAID 5 should give me better
performance but I have since encountered many reports that this is not the
case. Do some searching on Google and you will probably find numerous
articles.
Note 3x18 w/RAID5 will give 36GB usable while 2x36 w/o RAID is 72GB.
You could use mirroring on the 2x36 and have the same usable space.
A mirrored 2x36 setup will probably yield a marginal hit on writes (vs a
single disk) and an improvement on reads due to having two drives to read
from and will (based on the Scientific Wild Ass Guess method and knowing
nothing about your overall system) probably be faster than the RAID5
configuration while giving you identical usable space and data safety.
You also may see improvements due to the 15,000RPM drives (of course RPM is
sort of an arbitrary measure - you really want to know about track access
times, latency, transfer rate, etc. and RPM is just one influencing factor
for the above).
The quality of your RAID cards will also be important (how fast do they
perform their calculations, how much buffer do they have) as will the overall
specs of you system. If you have a bottleneck somewhere other than your raw
disk I/O then you can throw all the money you want at faster drives and see
no improvement.
Cheers,
Steve
On Thursday 21 November 2002 8:45 am, you wrote:
> Hi folks,
>
> I have two options:
> 3*18 GB 10,000 RPM Ultra160 Dual Channel SCSI controller + H/W Raid 5
> and
> 2*36 GB 15,000 RPM Ultra320 Dual Channel SCSI and no RAID
>
> Does anyone opinions *performance wise* the pros and cons of above
> two options.
>
> please take in consideration in latter case its higher RPM and better
> SCSI interface.
>
>
>
> Regds
> Mallah.
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
@ 2002-11-21 19:08 ` Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 19:39 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
1 sibling, 1 reply; 33+ messages in thread
From: Rajesh Kumar Mallah. @ 2002-11-21 19:08 UTC (permalink / raw)
To: Steve Crawford <scrawford@pinpointresearch.com>; pgsql-performance@postgresql.org
Thanks Steve,
recently i have come to know that i can only get 3*18 GB ultra160 10K
hraddrives,
my OS is lunux , other parameters are
RAM:2GB , CPU:2*2Ghz Xeon,
i feel i will do away with raid use one disk for the OS
and pg_dumps
, one for tables and last one for WAL , does this sound good?
regds
mallah.
On Friday 22 November 2002 00:26, Steve Crawford wrote:
> I had long labored under the impression that RAID 5 should give me better
> performance but I have since encountered many reports that this is not the
> case. Do some searching on Google and you will probably find numerous
> articles.
>
> Note 3x18 w/RAID5 will give 36GB usable while 2x36 w/o RAID is 72GB.
> You could use mirroring on the 2x36 and have the same usable space.
>
> A mirrored 2x36 setup will probably yield a marginal hit on writes (vs a
> single disk) and an improvement on reads due to having two drives to read
> from and will (based on the Scientific Wild Ass Guess method and knowing
> nothing about your overall system) probably be faster than the RAID5
> configuration while giving you identical usable space and data safety.
>
> You also may see improvements due to the 15,000RPM drives (of course RPM is
> sort of an arbitrary measure - you really want to know about track access
> times, latency, transfer rate, etc. and RPM is just one influencing factor
> for the above).
>
> The quality of your RAID cards will also be important (how fast do they
> perform their calculations, how much buffer do they have) as will the
> overall specs of you system. If you have a bottleneck somewhere other than
> your raw disk I/O then you can throw all the money you want at faster
> drives and see no improvement.
>
> Cheers,
> Steve
>
> On Thursday 21 November 2002 8:45 am, you wrote:
> > Hi folks,
> >
> > I have two options:
> > 3*18 GB 10,000 RPM Ultra160 Dual Channel SCSI controller + H/W Raid 5
> > and
> > 2*36 GB 15,000 RPM Ultra320 Dual Channel SCSI and no RAID
> >
> > Does anyone opinions *performance wise* the pros and cons of above
> > two options.
> >
> > please take in consideration in latter case its higher RPM and better
> > SCSI interface.
> >
> >
> >
> > Regds
> > Mallah.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
--
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)
Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
2002-11-21 19:08 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
@ 2002-11-21 19:39 ` scott.marlowe <scott.marlowe@ihs.com>
0 siblings, 0 replies; 33+ messages in thread
From: scott.marlowe @ 2002-11-21 19:39 UTC (permalink / raw)
To: Rajesh Kumar Mallah. <mallah@trade-india.com>; +Cc: Steve Crawford <scrawford@pinpointresearch.com>; pgsql-performance@postgresql.org
On Fri, 22 Nov 2002, Rajesh Kumar Mallah. wrote:
>
>
> Thanks Steve,
>
> recently i have come to know that i can only get 3*18 GB ultra160 10K
> hraddrives,
>
> my OS is lunux , other parameters are
> RAM:2GB , CPU:2*2Ghz Xeon,
>
> i feel i will do away with raid use one disk for the OS
> and pg_dumps
>
> , one for tables and last one for WAL , does this sound good?
That depends. Are you going to be mostly reading, mostly updating, or an
even mix of both?
If you are going to be 95% reading, then don't bother moving WAL to
another drive, install the OS on the first 2 or 3 gigs of each drive, then
make a RAID5 out of what's left over and put everything on that.
If you're going to be mostly updating, then yes, your setup is a pretty
good choice.
If it will be mostly mixed, look at using a software RAID1.
More important will be tuning your database once it's up, i.e. increasing
shared buffers, setting random page costs to reflect what percentage of
your dataset is likely to be cached (the closer you come to caching your
whole dataset, the closer random page cost approaches 1)
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
@ 2002-11-21 19:24 ` Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 19:30 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs eric soroos <eric-psql@soroos.net>
2002-11-21 20:03 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Mike Nielsen <miken@bigpond.net.au>
2002-11-21 20:17 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
1 sibling, 3 replies; 33+ messages in thread
From: Bjoern Metzdorf @ 2002-11-21 19:24 UTC (permalink / raw)
To: pgsql-performance@postgresql.org
> A mirrored 2x36 setup will probably yield a marginal hit on writes (vs a
> single disk) and an improvement on reads due to having two drives to read
> from and will (based on the Scientific Wild Ass Guess method and knowing
slightly offtopic:
Does anyone one if linux software raid 1 supports this method (reading from
both disks, thus doubling performance)?
Regards,
Bjoern
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
2002-11-21 19:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Bjoern Metzdorf <bm@turtle-entertainment.de>
@ 2002-11-21 19:30 ` eric soroos <eric-psql@soroos.net>
2 siblings, 0 replies; 33+ messages in thread
From: eric soroos @ 2002-11-21 19:30 UTC (permalink / raw)
To: pgsql-performance@postgresql.org
> Does anyone one if linux software raid 1 supports this method (reading from
> both disks, thus doubling performance)?
>
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
2002-11-21 19:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Bjoern Metzdorf <bm@turtle-entertainment.de>
@ 2002-11-21 20:03 ` Mike Nielsen <miken@bigpond.net.au>
2 siblings, 0 replies; 33+ messages in thread
From: Mike Nielsen @ 2002-11-21 20:03 UTC (permalink / raw)
To: Bjoern Metzdorf <bm@turtle-entertainment.de>; +Cc: Postgresql performance <pgsql-performance@postgresql.org>
Bjoern,
You may find that hoping for a doubling of performance by using RAID 1
is a little on the optimistic side.
Except on very long sequential reads, media transfer rates are unlikely
to be the limiting factor in disk throughput. Seek and rotational
latencies are the cost factor in random I/O, and with RAID 1, the
performance gain comes from reducing the mean latency -- on a single
request, one disk will be closer to the data than the other. If the
software that's handling the RAID 1 will schedule concurrent requests,
you lose the advantage of reducing mean latency in this fashion, but you
can get some improvement in throughput by overlapping some latency
periods.
While not wanting to argue against intelligent I/O design, memory is
cheap these days, and usually gives big bang-for-buck in improving
response times.
As to the specifics of how one level or another of Linux implements RAID
1, I'm afraid I can't shed much light at the moment.
Regards,
Mike
On Fri, 2002-11-22 at 06:24, Bjoern Metzdorf wrote:
> > A mirrored 2x36 setup will probably yield a marginal hit on writes (vs a
> > single disk) and an improvement on reads due to having two drives to read
> > from and will (based on the Scientific Wild Ass Guess method and knowing
>
> slightly offtopic:
>
> Does anyone one if linux software raid 1 supports this method (reading from
> both disks, thus doubling performance)?
>
> Regards,
> Bjoern
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
Michael Nielsen
ph: 0411-097-023 email: miken@bigpond.net.au
Mike Nielsen
________________________________________________________________________
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
2002-11-21 19:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Bjoern Metzdorf <bm@turtle-entertainment.de>
@ 2002-11-21 20:17 ` scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 20:53 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Bjoern Metzdorf <bm@turtle-entertainment.de>
2 siblings, 1 reply; 33+ messages in thread
From: scott.marlowe @ 2002-11-21 20:17 UTC (permalink / raw)
To: Bjoern Metzdorf <bm@turtle-entertainment.de>; +Cc: pgsql-performance@postgresql.org
On Thu, 21 Nov 2002, Bjoern Metzdorf wrote:
> > A mirrored 2x36 setup will probably yield a marginal hit on writes (vs a
> > single disk) and an improvement on reads due to having two drives to read
> > from and will (based on the Scientific Wild Ass Guess method and knowing
>
> slightly offtopic:
>
> Does anyone one if linux software raid 1 supports this method (reading from
> both disks, thus doubling performance)?
Yes, it does. Generally speaking, it increases raw throughput by a factor
of 2 if you're grabbing enough data to justify reading it from both
drives. But for most database apps, you don't read enough at a time to
get a gain from this. I.e. if your stripe size is 8k and you're reading
1k at a time, no gain.
However, under parallel load, the extra drives really help.
In fact, the linux kernel supports >2 drives in a mirror. Useful for a
mostly read database that needs to handle lots of concurrent users.
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
2002-11-21 19:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 20:17 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
@ 2002-11-21 20:53 ` Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 21:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
2002-11-22 07:31 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Mario Weilguni <mweilguni@sime.com>
0 siblings, 2 replies; 33+ messages in thread
From: Bjoern Metzdorf @ 2002-11-21 20:53 UTC (permalink / raw)
To: scott.marlowe <scott.marlowe@ihs.com>; +Cc: pgsql-performance@postgresql.org
> In fact, the linux kernel supports >2 drives in a mirror. Useful for a
> mostly read database that needs to handle lots of concurrent users.
Good to know.
What do you think is faster: 3 drives in raid 1 or 3 drives in raid 5?
Regards,
Bjoern
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
2002-11-21 19:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 20:17 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 20:53 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Bjoern Metzdorf <bm@turtle-entertainment.de>
@ 2002-11-21 21:24 ` scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 21:57 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Bjoern Metzdorf <bm@turtle-entertainment.de>
1 sibling, 1 reply; 33+ messages in thread
From: scott.marlowe @ 2002-11-21 21:24 UTC (permalink / raw)
To: Bjoern Metzdorf <bm@turtle-entertainment.de>; +Cc: pgsql-performance@postgresql.org
On Thu, 21 Nov 2002, Bjoern Metzdorf wrote:
> > In fact, the linux kernel supports >2 drives in a mirror. Useful for a
> > mostly read database that needs to handle lots of concurrent users.
>
> Good to know.
>
> What do you think is faster: 3 drives in raid 1 or 3 drives in raid 5?
Generally RAID 5. RAID 1 is only faster if you are doing a lot of
parellel reads. I.e. you have something like 10 agents reading at the
same time. RAID 5 also works better under parallel load than a single
drive.
The fastest of course, is multidrive RAID0. But there's no redundancy.
Oddly, my testing doesn't show any appreciable performance increase in
linux by layering RAID5 or 1 over RAID0 or vice versa, something that
is usually faster under most setups.
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
2002-11-21 19:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 20:17 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 20:53 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 21:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
@ 2002-11-21 21:57 ` Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 22:37 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
0 siblings, 1 reply; 33+ messages in thread
From: Bjoern Metzdorf @ 2002-11-21 21:57 UTC (permalink / raw)
To: scott.marlowe <scott.marlowe@ihs.com>; +Cc: pgsql-performance@postgresql.org
> Generally RAID 5. RAID 1 is only faster if you are doing a lot of
> parellel reads. I.e. you have something like 10 agents reading at the
> same time. RAID 5 also works better under parallel load than a single
> drive.
yep, but write performance sucks.
> The fastest of course, is multidrive RAID0. But there's no redundancy.
With 4 drives I'd always go for raid 10, fast and secure
> Oddly, my testing doesn't show any appreciable performance increase in
> linux by layering RAID5 or 1 over RAID0 or vice versa, something that
> is usually faster under most setups.
Is this with linux software raid? raid10 is not significantly faster? cant
believe that...
Regards,
Bjoern
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
2002-11-21 19:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 20:17 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 20:53 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 21:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 21:57 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Bjoern Metzdorf <bm@turtle-entertainment.de>
@ 2002-11-21 22:37 ` scott.marlowe <scott.marlowe@ihs.com>
0 siblings, 0 replies; 33+ messages in thread
From: scott.marlowe @ 2002-11-21 22:37 UTC (permalink / raw)
To: Bjoern Metzdorf <bm@turtle-entertainment.de>; +Cc: pgsql-performance@postgresql.org
On Thu, 21 Nov 2002, Bjoern Metzdorf wrote:
> > Generally RAID 5. RAID 1 is only faster if you are doing a lot of
> > parellel reads. I.e. you have something like 10 agents reading at the
> > same time. RAID 5 also works better under parallel load than a single
> > drive.
>
> yep, but write performance sucks.
Well, it's not all that bad. After all, you only have to read the parity
stripe and data stripe (two reads) update the data stripe, xor the new
data stripe against the old parity stripe, and write both. In RAID 1 you
have to read the old data stripe, update it, and then write it to two
drives. So, generally speaking, it's not that much more work on RAID 5
than 1. My experience has been that RAID5 is only about 10 to 20% percent
slower than RAID1 in writing, if that.
> > The fastest of course, is multidrive RAID0. But there's no redundancy.
>
> With 4 drives I'd always go for raid 10, fast and secure
>
> > Oddly, my testing doesn't show any appreciable performance increase in
> > linux by layering RAID5 or 1 over RAID0 or vice versa, something that
> > is usually faster under most setups.
>
> Is this with linux software raid? raid10 is not significantly faster? cant
> believe that...
Yep, Linux software raid. It seems like it doesn't parallelize well.
That's with several different setups. I've tested it on a machine a dual
Ultra 40/80 controller and 6 Ultra wide 10krpm SCSI drives, and no matter
how I arrange the drives, 50, 10, 01, 05, the old 1 or 5 setups are just
about as fast.
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
2002-11-21 19:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 20:17 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 20:53 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Bjoern Metzdorf <bm@turtle-entertainment.de>
@ 2002-11-22 07:31 ` Mario Weilguni <mweilguni@sime.com>
2002-11-22 13:52 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 1 reply; 33+ messages in thread
From: Mario Weilguni @ 2002-11-22 07:31 UTC (permalink / raw)
To: Bjoern Metzdorf <bm@turtle-entertainment.de>; scott.marlowe <scott.marlowe@ihs.com>; +Cc: pgsql-performance@postgresql.org
Am Donnerstag, 21. November 2002 21:53 schrieb Bjoern Metzdorf:
> > In fact, the linux kernel supports >2 drives in a mirror. Useful for a
> > mostly read database that needs to handle lots of concurrent users.
>
> Good to know.
>
> What do you think is faster: 3 drives in raid 1 or 3 drives in raid 5?
>
> Regards,
> Bjoern
>
If 4 drives are an option, I suggest 2 x RAID1, one for data, and one for WAL and temporary DB space (pg_temp).
Regards,
Mario Weilguni
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
2002-11-21 19:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 20:17 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 20:53 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-22 07:31 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Mario Weilguni <mweilguni@sime.com>
@ 2002-11-22 13:52 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-11-22 14:17 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on philip johnson <philip.johnson@atempo.com>
2002-11-22 15:01 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Andrew Sullivan <andrew@libertyrms.info>
0 siblings, 2 replies; 33+ messages in thread
From: Tom Lane @ 2002-11-22 13:52 UTC (permalink / raw)
To: Mario Weilguni <mweilguni@sime.com>; +Cc: Bjoern Metzdorf <bm@turtle-entertainment.de>; scott.marlowe <scott.marlowe@ihs.com>; pgsql-performance@postgresql.org
Mario Weilguni <mweilguni@sime.com> writes:
> If 4 drives are an option, I suggest 2 x RAID1, one for data, and one for WAL and temporary DB space (pg_temp).
Ideally there should be *nothing* on the WAL drive except WAL; you don't
ever want that disk head seeking away from the WAL. Put the temp files
on the data disk.
regards, tom lane
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
2002-11-21 19:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 20:17 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 20:53 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-22 07:31 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Mario Weilguni <mweilguni@sime.com>
2002-11-22 13:52 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Tom Lane <tgl@sss.pgh.pa.us>
@ 2002-11-22 14:17 ` philip johnson <philip.johnson@atempo.com>
1 sibling, 0 replies; 33+ messages in thread
From: philip johnson @ 2002-11-22 14:17 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-performance@postgresql.org
pgsql-performance-owner@postgresql.org wrote:
> Objet : Re: [PERFORM] [ADMIN] H/W RAID 5 on slower disks versus no
> raid on
>
>
> Mario Weilguni <mweilguni@sime.com> writes:
>> If 4 drives are an option, I suggest 2 x RAID1, one for data, and
>> one for WAL and temporary DB space (pg_temp).
>
> Ideally there should be *nothing* on the WAL drive except WAL; you
> don't ever want that disk head seeking away from the WAL. Put the
> temp files on the data disk.
>
> regards, tom lane
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 4: Don't 'kill -9' the
> postmaster
which temp files ?
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Steve Crawford <scrawford@pinpointresearch.com>
2002-11-21 19:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster HDDs Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 20:17 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 20:53 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-22 07:31 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Mario Weilguni <mweilguni@sime.com>
2002-11-22 13:52 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Tom Lane <tgl@sss.pgh.pa.us>
@ 2002-11-22 15:01 ` Andrew Sullivan <andrew@libertyrms.info>
1 sibling, 0 replies; 33+ messages in thread
From: Andrew Sullivan @ 2002-11-22 15:01 UTC (permalink / raw)
To: pgsql-performance@postgresql.org
On Fri, Nov 22, 2002 at 08:52:48AM -0500, Tom Lane wrote:
> Mario Weilguni <mweilguni@sime.com> writes:
> > If 4 drives are an option, I suggest 2 x RAID1, one for data, and one for WAL and temporary DB space (pg_temp).
>
> Ideally there should be *nothing* on the WAL drive except WAL; you don't
> ever want that disk head seeking away from the WAL. Put the temp files
> on the data disk.
Unless the interface and disks are so fast that it makes no
difference.
Try as I might, I can't make WAL go any faster on its own controller
and disks than if I leave it on the same filesystem as everything
else, on our production arrays. We use Sun A5200s, and I have tried
it set up with the WAL on separate disks on the box, and on separate
disks in the array, and even on separate disks on a separate
controller in the array (I've never tried it with two arrays, but I
don't have infinite money, either). I have never managed to
demonstrate a throughput difference outside the margin of error of my
tests. One arrangement -- putting the WAL on a separate pair of UFS
disks using RAID 1, but not on the fibre channel -- was demonstrably
slower than leaving the WAL in the data area.
Nothing is proved by this, of course, except that if you're going to
use high-performance hardware, you have to tune and test over and
over again. I was truly surprised that a separate pair of VxFS
RAID-1 disks in the array were no faster, but I guess it makes sense:
the array is just as busy in either case, and the disks are really
fast. I still don't really believe it, though.
A
--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew@libertyrms.info> M2P 2A8
+1 416 646 3304 x110
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
@ 2002-11-27 18:16 ` Merlin Moncure <merlin@rcsonline.com>
2002-11-29 02:58 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs David Jericho <david.jericho@bytecomm.com.au>
4 siblings, 1 reply; 33+ messages in thread
From: Merlin Moncure @ 2002-11-27 18:16 UTC (permalink / raw)
To: pgsql-admin
On Mon, 2002-11-25 at 23:03, David Gilbert wrote:
>
> I'm on a bit of a mission to stamp out this misconception. In my
> testing, all but the most expensive hardware raid controllers are
> actually slower than FreeBSD's software RAID. I've done my tests with
> a variety of controllers with the same data load and the same disks.
>
I agree 100%: hardware raid sucks.
We had a raid 5 Postgres server on midgrade hardware with 5 60gig 7200rpm
IDE disks (240 gig total) and the thouroughput was just as high (maybe 10%
less) than a single disk. Same for the seek times. CPU around 1Ghz never
hit more than 10% for the raid service. Since very few databases are CPU
limited, this is a small price to pay.
We confirmed the performance results with heavy testing. There is virtually
no disadvatage to software raid, just spend 10$ and get a 10% faster cpu.
The linux software raid drivers (and others I assume) are very optimized.
Not to sure about m$ but win2k comes with raid services, its pretty
reasonalbe to believe they work ok.
You can double the performance of a raid system by going 0+x or x+0 (eg 05
or 50). just by adding drives. This really doubles it, and an optmized
software driver improves the seek times too by placing the idle heads it
different places on the disks.
p.s. scsi is a huge waste of money and is no faster than IDE. IMHO, scsi's
only advantage is longer cables. Both interfaces will soon be obsolete with
the coming serial ATA. High rpm disks are very expensive and add latent
heat to your system. Western digitial's IDE disks outperform even top end
scsi disks at a fraction of a cost. You can install a 4 drive 10 raid setup
for the cost of a single 15k rpm scsi disk that will absolutely blow it away
in terms of performance (reliability too).
Just remember, don't add more than one IDE disk on a raid system to a single
IDE channel! Also, do not attempt to buy IDE cables longer than 18"..they
will not be reliable.
Merlin
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-27 18:16 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Merlin Moncure <merlin@rcsonline.com>
@ 2002-11-29 02:58 ` David Jericho <david.jericho@bytecomm.com.au>
0 siblings, 0 replies; 33+ messages in thread
From: David Jericho @ 2002-11-29 02:58 UTC (permalink / raw)
To: pgsql-admin
On Wed, Nov 27, 2002 at 01:16:35PM -0500, Merlin Moncure wrote:
> I agree 100%: hardware raid sucks.
I've been mostly ignoring this thread, but I'm going to jump in at
this point.
> We confirmed the performance results with heavy testing. There is virtually
> no disadvatage to software raid, just spend 10$ and get a 10% faster cpu.
Define heavy testing.
I can do sequential selects on a low end PC with one client and have it
perform as well as an E10K. I could also fire up 600 clients doing
seemingly random queries and updates and reduce the same low end PC to
a smoldering pile of rubble.
It'd be easy to fudge the results of the "heavy testing" to match what I
wanted to believe.
> The linux software raid drivers (and others I assume) are very optimized.
As are the Solaris drivers, and many others. But there is more to a
RAID array than drivers. There's the stability of the controller
chipsets and the latency involved in getting data to and from the
devices.
Would you feel comfortable if you knew the state data for the aircraft
you're travelling on was stored on IDE software RAID?
Part of the point of hardware raid is that it does do a small set
of operations, and therefore far easier to specify and validate the
correct operation of the software and hardware.
> p.s. scsi is a huge waste of money and is no faster than IDE. IMHO, scsi's
> only advantage is longer cables. Both interfaces will soon be obsolete with
> the coming serial ATA.
Don't get me wrong, I'm a huge fan of IDE RAID in the right locations,
but comments like this reflect a total lack of understanding what
makes SCSI a better protocol over IDE.
Disconnected operation is one _HUGE_ benefit of SCSI, simply being the
ability for the CPU and controller to send a command, and then both head
off to do another task while waiting for data to be returned from the
device. Most (that is most, not all) IDE controllers are incapable of
this. Another is command reordering (which I believe SATA does have),
being the reordering of requests to better utilise each head sweep.
This feature comes into play far more obviously when you have many
clients performing operations across a large dataset where the
elements have no immediate relationship to each other.
It is amplified when your database of such a size, and used in a way
that you have multiple controllers with multiple spools.
SCSI is not about speed to and from the device, although this does end
up being a side effect of the design. It's about latency, and removal of
contention from the shared bus.
Ultra/320 devices in reality are no faster than Ultra/160 devices.
What is faster, is that you can now have 4 devices instead of 2 on the
same bus, with lower request latency and no reduction in
throughput performance.
SCSI also allows some more advanced features too. Remote storage
over fibre, iSCSI, shared spools just to name a few.
> High rpm disks are very expensive and add latent heat to your system.
If you have a real justification for SCSI in your database server, you
probably do have both the cooling and the budget to accomodate it.
> Western digitial's IDE disks outperform even top end scsi disks at a
> fraction of a cost.
Complete and utter rubbish. That's like saying your 1.1 litre small
city commuter hatch can outperform a 600hp Mack truck.
Yes, in the general case it's quite probable. Once you start
shuffling real loads IDE will grind the machine to a halt. Real
database iron does not use normal IDE.
> You can install a 4 drive 10 raid setup for the cost of a single 15k
> rpm scsi disk that will absolutely blow it away in terms of performance
See above. Raw disk speed does not equal performance. Database spool
performance is a combination of a large number of factors, one being
seek time, and another being bus contention.
> (reliability too).
Now you're smoking crack. Having run some rather large server farms
for some very large companies, I can tell you with both anecdotal, and
recorded historical evidence that the failure rate for IDE was at
least double, if not four times that of the SCSI hardware.
And the IDE hardware was under much lower loads than the SCSI
hardware.
> Just remember, don't add more than one IDE disk on a raid system to a single
> IDE channel! Also, do not attempt to buy IDE cables longer than 18"..they
> will not be reliable.
So now you're pointing out that you share PCI bus interrupts over a large
number of devices, introducing another layer of contention and that
you'll have to cable your 20 spool machine with 20 cables each no longer
than 45cm. Throw in some very high transaction rates, and a large
data set that won't fit in your many GB of ram.
I believe the game show sound effect would be similar to "Bzzzt".
IDE for the general case is acceptable. SCSI is for everything else.
--
David Jericho
Senior Systems Administrator, Bytecomm Pty Ltd
--
Scanned and found clear of viruses by ENTIREScan. http://www.entirescan.com/
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
@ 2002-11-25 03:41 Nikolaus Dilger <nikolaus@dilger.cc>
2002-11-25 10:43 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Sander Steffann <sander@steffann.nl>
2002-11-25 12:03 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs David Gilbert <dgilbert@velocet.ca>
0 siblings, 2 replies; 33+ messages in thread
From: Nikolaus Dilger @ 2002-11-25 03:41 UTC (permalink / raw)
To: chris@ruprecht.org; +Cc: mallah@trade-india.com; pgsql-admin
Mallah,
I agree with Chris. The fastest is to have an in
memory database.
Raid 0 (striping) will speed up both reading and
writing since you have more available disk I/O
bandwidth.
SCSI320 in theory is twice as fast as SCSI160. But the
bottleneck will be the throughput of the individual
disks. 15,000 rpm of course will be faster than 10,000
rpm. More interesting then the rpm numbers itself are
seek time and transfer rate.
In a production environment I would always favor some
kind of error protection. Either RAID 5 or RAID 1
(mirroring). A hardware RAID controller is faster than
software RAID.
For pure speed raw devices would be faster then file
systems. However, PostgeSQL currently does not support
them.
Given your 2 choices b) should be faster.
a) 3*18 GB 10,000 RPM Ultra160 Dual Channel SCSI
controller + H/W Raid 5
b) 2*36 GB 15,000 RPM Ultra320 Dual Channel SCSI and no
RAID
Option b) can be improved by using striping. Save your
money on the SCSI Ultra320 since the disk can’t
transfer enough data anyway and buy more memory instead.
And finally good application design has a greater
impact on performance than a little faster hardware.
Regards,
Nikolaus Dilger
On Thu, 21 Nov 2002, Chris Ruprecht wrote:
>
> raid 0 (striping) spreads the load over multiple
> spindels, the same way raid 5
> does. but raid 5 always needs to calculate parity and
> write that to it's
> parity drive.
>
> RPM isn't that critical, a lot depends on the machine,
> the processor and the
> memory (and the spped with which the processor can get
> to the memory). I have
> recently tested a lot of systems with some database
> benchmarks we wrote here
> at work. We're not running Postgres here at work,
> sorry, these benchmarks are
> of no use to Postgres ...
> We we found is that a lot depends on motherboard
> design, not so much on drive
> speed. We got to stages where we allocated 1.8 GB of
> RAM to shared memory for
> the database server process, resulting in the entire
> database being sucked
> into memory. When doing reads, 100% of the data is
> coming out the that
> menory, and drive speed becomes irrelevant.
>
> From tests I did with Postgres on my boxes at home, I
> can say: The more shared
> memory you can throw at the server process, the
better.
> Under MacOS X I
> wasn't able to allocate more than 3 MB, Under Linux, I
> can allocate anything
> I want to, so I usually start up the server with 256
> MB. The difference? A
> process which takes 4 minutes under Linux, takes 6
> hours under MacOS - same
> hardware, same drives, different memory settings.
>
> Best regards,
> Chris
>
> On Thursday 21 November 2002 12:02, you wrote:
> > Thanks Chris,
> >
> > does raid0 enhances both read/write both?
> >
> > does rpms not matter that much?
> >
> > regds
> > mallah.
> >
> > On Thursday 21 November 2002 22:27, you wrote:
> > > RAID 5 gives you pretty bad performance, a
slowdown
> of about 50%. For
> > > pure performance, I'd use the 3 18 GB drives with
> RAID 0.
> > >
> > > If you need fault tolerance, you could use RAID
0+1
> or 1+0 but you'd need
> > > an even number of drives for that, of which half
> would become 'usable
> > > space'.
> > >
> > > Best regards,
> > > Chris
> > >
> > > On Thursday 21 November 2002 11:45, you wrote:
> > > > Hi folks,
> > > >
> > > > I have two options:
> > > > 3*18 GB 10,000 RPM Ultra160 Dual Channel SCSI
> controller + H/W Raid 5
> > > > and
> > > > 2*36 GB 15,000 RPM Ultra320 Dual Channel SCSI
and
> no RAID
> > > >
> > > > Does anyone opinions *performance wise* the
pros
> and cons of above
> > > > two options.
> > > >
> > > > please take in consideration in latter case its
> higher RPM and better
> > > > SCSI interface.
> > > >
> > > >
> > > >
> > > > Regds
> > > > Mallah.
>
> --
> Network Grunt and Bit Pusher extraordinaire
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> <a
href="http://mail.dilger.cc/jump/http://www.postgresql.org/users-lounge/docs/faq.html">http://www.p...;
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-25 03:41 Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Nikolaus Dilger <nikolaus@dilger.cc>
@ 2002-11-25 10:43 ` Sander Steffann <sander@steffann.nl>
2002-11-26 14:28 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs SZALAI Karoly <czw@debian.hu>
2002-11-26 16:07 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Chris Ruprecht <chris@ruprecht.org>
2002-11-26 18:10 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Tim Lynch <admin+pgsqladmin@thirdage.com>
1 sibling, 3 replies; 33+ messages in thread
From: Sander Steffann @ 2002-11-25 10:43 UTC (permalink / raw)
To: chris@ruprecht.org; Nikolaus Dilger <nikolaus@dilger.cc>; +Cc: mallah@trade-india.com; pgsql-admin
Hi,
> In a production environment I would always favor some
> kind of error protection. Either RAID 5 or RAID 1
> (mirroring). A hardware RAID controller is faster than
> software RAID.
Considering the speed of CPU's and busses these days, software RAID can be a
lot faster than hardware RAID in many cases. I prefer hardware RAID myself
because of the simplicity (the OS doesn't need to know about the RAID
configuration), but I hear good results from people running on software
RAID.
Hope this helps you.
Sander.
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-25 03:41 Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Nikolaus Dilger <nikolaus@dilger.cc>
2002-11-25 10:43 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Sander Steffann <sander@steffann.nl>
@ 2002-11-26 14:28 ` SZALAI Karoly <czw@debian.hu>
2 siblings, 0 replies; 33+ messages in thread
From: SZALAI Karoly @ 2002-11-26 14:28 UTC (permalink / raw)
To: pgsql-admin
On Mon, Nov 25, 2002 at 11:43:56AM +0100, Sander Steffann wrote:
> > (mirroring). A hardware RAID controller is faster than
> > software RAID.
> lot faster than hardware RAID in many cases. I prefer hardware RAID myself
> because of the simplicity (the OS doesn't need to know about the RAID
> configuration), but I hear good results from people running on software
> RAID.
yes, hw raid is simply, but it's slow.
i've tested it many brand machine. ibm serveraid card w/ raid5 is
about HALF speed than sw raid. according to bonnie++, debian,
2.4.19+grsec kernel.
the machine ibm xseries 255, 2 xeon mp cpus, 4x18G 10k rpm disk.
the bonnie tested with 6G files, 1.5G physical ram and 1G swap.
if somebody needs those results, i can send it.
--
CZW
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-25 03:41 Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Nikolaus Dilger <nikolaus@dilger.cc>
2002-11-25 10:43 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Sander Steffann <sander@steffann.nl>
@ 2002-11-26 16:07 ` Chris Ruprecht <chris@ruprecht.org>
2 siblings, 0 replies; 33+ messages in thread
From: Chris Ruprecht @ 2002-11-26 16:07 UTC (permalink / raw)
To: pgsql-admin
Hi all,
On Monday 25 November 2002 05:43, Sander Steffann wrote:
> Hi,
>
> > In a production environment I would always favor some
> > kind of error protection. Either RAID 5 or RAID 1
> > (mirroring). A hardware RAID controller is faster than
> > software RAID.
>
> Considering the speed of CPU's and busses these days, software RAID can be
> a lot faster than hardware RAID in many cases. I prefer hardware RAID
> myself because of the simplicity (the OS doesn't need to know about the
> RAID configuration), but I hear good results from people running on
> software RAID.
Stability is an issue here. While the OS might get a code corruption in the
kernel by who-knows-what, this is less likely to happen in the on-board
memory (RAM/ROM) of the RAID controller.
If the system crashes for whatever reason, who knows what gets written back to
the disks. Most likely nothing, since the OS already died. Your RAID
controller will most likely still flush it's buffers back to disk and leave
everything as good as it gets.
just my 2c.
Best regards,
Chris
--
Network Grunt and Bit Pusher extraordinaire
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-25 03:41 Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Nikolaus Dilger <nikolaus@dilger.cc>
2002-11-25 10:43 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Sander Steffann <sander@steffann.nl>
@ 2002-11-26 18:10 ` Tim Lynch <admin+pgsqladmin@thirdage.com>
2 siblings, 0 replies; 33+ messages in thread
From: Tim Lynch @ 2002-11-26 18:10 UTC (permalink / raw)
To: pgsql-admin
operationally, disk subsystems trump software raid for primary dataset
storage:
battery backed cache - safety first.
portability - plug it into any other host, or more than one host on the scsi
bus (fc-al loop).
raid on a pci card or raid on the motherboard need not apply less they sport
battery and most don't. worst of both worlds imho, no protection of software
and the higher cost of hardware.
often software raid is used to mirror the boot disks for transparent boot
disk failover, while the primary dataset is on a hardware raid on a scsi bus
with two hosts for transparent host failover.
but the question, if i can restate it, was ``which is faster?''
-high algorithm overhead and slower devices
-low algorithm overhead and faster devices
did i miss some nuance of the original question? it seems obvious that lower
overhead and faster devices will be faster.
but it doesn't matter which one is faster. operationally, as long as the
performance is adequate, real disk subsystems are always preferred for
primary dataset storage.
----- Original Message -----
From: "Sander Steffann" <sander@steffann.nl>
To: <chris@ruprecht.org>; "Nikolaus Dilger" <nikolaus@dilger.cc>
Cc: <mallah@trade-india.com>; <pgsql-admin@postgresql.org>
Sent: Monday, November 25, 2002 2:43 AM
Subject: Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on faster
HDDs
: Hi,
:
: > In a production environment I would always favor some
: > kind of error protection. Either RAID 5 or RAID 1
: > (mirroring). A hardware RAID controller is faster than
: > software RAID.
:
: Considering the speed of CPU's and busses these days, software RAID can be
a
: lot faster than hardware RAID in many cases. I prefer hardware RAID myself
: because of the simplicity (the OS doesn't need to know about the RAID
: configuration), but I hear good results from people running on software
: RAID.
:
: Hope this helps you.
: Sander.
:
:
: ---------------------------(end of broadcast)---------------------------
: TIP 6: Have you searched our list archives?
:
: http://archives.postgresql.org
:
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-25 03:41 Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Nikolaus Dilger <nikolaus@dilger.cc>
@ 2002-11-25 12:03 ` David Gilbert <dgilbert@velocet.ca>
2002-11-25 23:43 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Hossein S. Zadeh <hossein@bf.rmit.edu.au>
1 sibling, 1 reply; 33+ messages in thread
From: David Gilbert @ 2002-11-25 12:03 UTC (permalink / raw)
To: Nikolaus Dilger <nikolaus@dilger.cc>; +Cc: chris@ruprecht.org; mallah@trade-india.com; pgsql-admin
>>>>> "Nikolaus" == Nikolaus Dilger <nikolaus@dilger.cc> writes:
Nikolaus> SCSI320 in theory is twice as fast as SCSI160. But the
Nikolaus> bottleneck will be the throughput of the individual disks.
Nikolaus> 15,000 rpm of course will be faster than 10,000 rpm. More
Nikolaus> interesting then the rpm numbers itself are seek time and
Nikolaus> transfer rate.
More to the point, with current disks, SCSI160 needs 3 to 4 disks to
be saturated. Don't buy 320 unless you have more than 4 disks.
Nikolaus> In a production environment I would always favor some kind
Nikolaus> of error protection. Either RAID 5 or RAID 1 (mirroring). A
Nikolaus> hardware RAID controller is faster than software RAID.
I'm on a bit of a mission to stamp out this misconception. In my
testing, all but the most expensive hardware raid controllers are
actually slower than FreeBSD's software RAID. I've done my tests with
a variety of controllers with the same data load and the same disks.
As with any test, I have a theory: that the 2Ghz+ main processors of
modern machines so outstrip most raid controllers that it is faster to
perform the RAID on the main processor. It is also lower latency
... and latency is what matters for advanced filesystems.
Nikolaus> For pure speed raw devices would be faster then file
Nikolaus> systems. However, PostgeSQL currently does not support
Nikolaus> them.
This used to be true on machines with less processor power than disk
bandwidth. It is likely no longer true. To be more exact: yes,
filesystems have overhead, but the overhead is processor overhead
... of which (compared to disk bandwidth) you have lots. OSs have
also become more efficient.
Dave.
--
============================================================================
|David Gilbert, Velocet Communications. | Two things can only be |
|Mail: dgilbert@velocet.net | equal if and only if they |
|http://daveg.ca | are precisely opposite. |
=========================================================GLO================
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-25 03:41 Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Nikolaus Dilger <nikolaus@dilger.cc>
2002-11-25 12:03 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs David Gilbert <dgilbert@velocet.ca>
@ 2002-11-25 23:43 ` Hossein S. Zadeh <hossein@bf.rmit.edu.au>
2002-11-26 02:36 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs David Gilbert <dgilbert@velocet.ca>
0 siblings, 1 reply; 33+ messages in thread
From: Hossein S. Zadeh @ 2002-11-25 23:43 UTC (permalink / raw)
To: pgsql-admin
On Mon, 2002-11-25 at 23:03, David Gilbert wrote:
>
> I'm on a bit of a mission to stamp out this misconception. In my
> testing, all but the most expensive hardware raid controllers are
> actually slower than FreeBSD's software RAID. I've done my tests with
> a variety of controllers with the same data load and the same disks.
>
Hi there,
Interesting observation. But I am just curious; is this still valid when
you have a DB server with, say, 95+% CPU utilisation??!! (I guess we all
know that if one don't get high CPU utilisation on a DB server, either
the owner has had too much money, or the DBA has some fine tuning to
do).
Hossein
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-25 03:41 Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Nikolaus Dilger <nikolaus@dilger.cc>
2002-11-25 12:03 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs David Gilbert <dgilbert@velocet.ca>
2002-11-25 23:43 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Hossein S. Zadeh <hossein@bf.rmit.edu.au>
@ 2002-11-26 02:36 ` David Gilbert <dgilbert@velocet.ca>
0 siblings, 0 replies; 33+ messages in thread
From: David Gilbert @ 2002-11-26 02:36 UTC (permalink / raw)
To: Hossein S. Zadeh <hossein@bf.rmit.edu.au>; +Cc: pgsql-admin
>>>>> "Hossein" == Hossein S Zadeh <hossein@bf.rmit.edu.au> writes:
Hossein> On Mon, 2002-11-25 at 23:03, David Gilbert wrote:
>> I'm on a bit of a mission to stamp out this misconception. In my
>> testing, all but the most expensive hardware raid controllers are
>> actually slower than FreeBSD's software RAID. I've done my tests
>> with a variety of controllers with the same data load and the same
>> disks.
Hossein> Hi there, Interesting observation. But I am just curious; is
Hossein> this still valid when you have a DB server with, say, 95+%
Hossein> CPU utilisation??!! (I guess we all know that if one don't
Hossein> get high CPU utilisation on a DB server, either the owner has
Hossein> had too much money, or the DBA has some fine tuning to do).
Typically, the limit on the speed of disk transactions in a modern
system is latency. The amount of CPU required to perform a RAID 5
calculation is trivial and RAID 1 scheduling (done efficinetly) is
even less demanding on a CPU.
... the latency is the time between when we decide to do the action
and when it is able to be done (in this case). In the software RAID-5
case, we need to schedule two reads, perform a caluclation when they
return and then schedule two writes. This all happens within the OS's
decision to write a block and the block actually being written (and
it's why RAID 5 is very slow at writing).
RAID-1 writing is simpler ... the Os needs to schedule two writes
instead of one.
In the hardware case, the OS schedules a write, then it's transferred
to the RAID card ... where the RAID card must then schedule the reads
and writes.
... which is fine if the RAID card has sufficient buffer... but when
things approach saturation of the disk you start to get a number of
effects.
- if a read doesn't occur before the write must be flushed to disk,
nothing is saved by not committing it immediately.
- The OS has a good handle on what the data represents and is likely
flushing it fairly optimally.
Think: your primary CPU is 2Ghz (or more) and your main memory is 1G
(or more). Your moderately expensive RAID card is a 100Mhz RISC chip
with 64M of memory. How much is this helping? Not much.
Remember: hardware RAID is simply RAID software running on another
processor.
Dave.
--
============================================================================
|David Gilbert, Velocet Communications. | Two things can only be |
|Mail: dgilbert@velocet.net | equal if and only if they |
|http://daveg.ca | are precisely opposite. |
=========================================================GLO================
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
@ 2002-11-26 01:08 nikolaus@dilger.cc
2002-11-26 02:42 ` Re: H/W RAID 5 on slower disks versus no raid on faster HDDs David Gilbert <dgilbert@velocet.ca>
0 siblings, 1 reply; 33+ messages in thread
From: nikolaus@dilger.cc @ 2002-11-26 01:08 UTC (permalink / raw)
To: dgilbert@velocet.ca; +Cc: chris@ruprecht.org; mallah@trade-india.com; pgsql-admin
David,
The answer is always: It depends.
Of course can software RAID be faster than hardware
RAID. But then you are not comparing the best
offerings of each category. Software RAID is usually
cheaper than hardware. But again you may be able to
construct a product pairing where it is reverse.
However, my main point was to use RAID in a production
environment to protect against hardware failures.
raw versus file system is an old battle. raw is faster
because it does not have the filesystem overhead.
However, raw is a little harder to administer.
Question is how much faster raw is and if it is worth
the trouble. Numbers usually quoted are 10-20%. And
here things may be changing as operating systems and
chaching algorithems get better to mask the file system
overhead. As I mentioned the question is mute for
PostgeSQL because raw is currently not supported.
Regards,
Nikolaus Dilger
From http://linas.org/linux/raid.html
If the RAID disk controller has a modern, high-speed
DSP/controller on board, and a sufficient amount of
cache memory, it can outperform software RAID,
especially on a heavily loaded system. However, using
and old controller on a modern, fast 2-way or 4-way SMP
machine may easily prove to be a performance
bottle-neck as compared to a pure software-RAID
solution. Some of the performance figures below provide
additional insight into this claim.
From
http://www.uni-mainz.de/~neuffer/scsi/what_is_raid.html
Hardware vs. Software RAID
Just like any other application, software-based arrays
occupy host system memory, consume CPU cycles and are
operating system dependent. By contending with other
applications that are running concurrently for host CPU
cycles and memory, software-based arrays degrade
overall server performance. Also, unlike hardware-based
arrays, the performance of a software-based array is
directly dependent on server CPU performance and load.
On Sun, 24 Nov 2002, David Gilbert wrote:
>
> >>>>> "Nikolaus" == Nikolaus Dilger
> <nikolaus@dilger.cc> writes:
>
> Nikolaus> SCSI320 in theory is twice as fast as
> SCSI160. But the
> Nikolaus> bottleneck will be the throughput of the
> individual disks.
> Nikolaus> 15,000 rpm of course will be faster than
> 10,000 rpm. More
> Nikolaus> interesting then the rpm numbers itself are
> seek time and
> Nikolaus> transfer rate.
>
> More to the point, with current disks, SCSI160 needs 3
> to 4 disks to
> be saturated. Don't buy 320 unless you have more than
> 4 disks.
>
> Nikolaus> In a production environment I would always
> favor some kind
> Nikolaus> of error protection. Either RAID 5 or RAID 1
> (mirroring). A
> Nikolaus> hardware RAID controller is faster than
> software RAID.
>
> I'm on a bit of a mission to stamp out this
> misconception. In my
> testing, all but the most expensive hardware raid
> controllers are
> actually slower than FreeBSD's software RAID. I've
> done my tests with
> a variety of controllers with the same data load and
> the same disks.
>
> As with any test, I have a theory: that the 2Ghz+ main
> processors of
> modern machines so outstrip most raid controllers that
> it is faster to
> perform the RAID on the main processor. It is also
> lower latency
> ... and latency is what matters for advanced
> filesystems.
>
> Nikolaus> For pure speed raw devices would be faster
> then file
> Nikolaus> systems. However, PostgeSQL currently does
> not support
> Nikolaus> them.
>
> This used to be true on machines with less processor
> power than disk
> bandwidth. It is likely no longer true. To be more
> exact: yes,
> filesystems have overhead, but the overhead is
> processor overhead
> ... of which (compared to disk bandwidth) you have
> lots. OSs have
> also become more efficient.
>
> Dave.
>
> --
>
============================================================================
> |David Gilbert, Velocet Communications. | Two
> things can only be |
> |Mail: dgilbert@velocet.net | equal
> if and only if they |
> |<a
href="http://mail.dilger.cc/jump/http://daveg.ca">http://daveg.ca</a; | are
> precisely opposite. |
>
=========================================================GLO================
^ permalink raw reply [nested|flat] 33+ messages in thread
* Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
2002-11-26 01:08 Re: H/W RAID 5 on slower disks versus no raid on faster HDDs nikolaus@dilger.cc
@ 2002-11-26 02:42 ` David Gilbert <dgilbert@velocet.ca>
0 siblings, 0 replies; 33+ messages in thread
From: David Gilbert @ 2002-11-26 02:42 UTC (permalink / raw)
To: nikolaus@dilger.cc; +Cc: dgilbert@velocet.ca; chris@ruprecht.org; mallah@trade-india.com; pgsql-admin
>>>>> "nikolaus" == nikolaus <nikolaus@dilger.cc> writes:
nikolaus> Of course can software RAID be faster than hardware RAID.
nikolaus> But then you are not comparing the best offerings of each
nikolaus> category. Software RAID is usually cheaper than hardware.
nikolaus> But again you may be able to construct a product pairing
nikolaus> where it is reverse.
No... I admit... if you're willing to spend huge $$'s, there exist
hardware solutions that outpace software. It usually means that you
have hardware that is more powerful than your main system, though.
Often more costly, too.
nikolaus> raw versus file system is an old battle. raw is faster
nikolaus> because it does not have the filesystem overhead. However,
nikolaus> raw is a little harder to administer. Question is how much
nikolaus> faster raw is and if it is worth the trouble. Numbers
nikolaus> usually quoted are 10-20%. And here things may be changing
nikolaus> as operating systems and chaching algorithems get better to
nikolaus> mask the file system overhead. As I mentioned the question
nikolaus> is mute for PostgeSQL because raw is currently not
nikolaus> supported.
Well... I don't think your raw write performance (in, say, FreeBSD)
would be any more than 5% better than filesystem writing. Old
filesystem overhead consisted of the in-order writes that were
required to update filesystem metadata... which (consequently) was
about 20% in-order (vs. un-ordered) writes.
Softupdates (FreeBSD) only requires 1%-ish (or less) in-order writes
(or to put it another way: 1% of writes chosen before they would
otherwise happen).
DAve.
--
============================================================================
|David Gilbert, Velocet Communications. | Two things can only be |
|Mail: dgilbert@velocet.net | equal if and only if they |
|http://daveg.ca | are precisely opposite. |
=========================================================GLO================
^ permalink raw reply [nested|flat] 33+ messages in thread
end of thread, other threads:[~2002-11-29 02:58 UTC | newest]
Thread overview: 33+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-11-21 16:45 H/W RAID 5 on slower disks versus no raid on faster HDDs Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 17:06 ` Re: H/W RAID 5 on slower disks versus no raid on faster Charles H. Woloszynski <chw@clearmetrix.com>
2002-11-21 17:19 ` Chris Ruprecht <chris@ruprecht.org>
2002-11-21 17:32 ` Re: H/W RAID 5 on slower disks versus no raid on faster scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 17:46 ` Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 17:58 ` Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 18:56 ` Steve Crawford <scrawford@pinpointresearch.com>
2002-11-21 19:08 ` Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-11-21 19:39 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 19:24 ` Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 19:30 ` eric soroos <eric-psql@soroos.net>
2002-11-21 20:03 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Mike Nielsen <miken@bigpond.net.au>
2002-11-21 20:17 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 20:53 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 21:24 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
2002-11-21 21:57 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Bjoern Metzdorf <bm@turtle-entertainment.de>
2002-11-21 22:37 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on scott.marlowe <scott.marlowe@ihs.com>
2002-11-22 07:31 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Mario Weilguni <mweilguni@sime.com>
2002-11-22 13:52 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Tom Lane <tgl@sss.pgh.pa.us>
2002-11-22 14:17 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on philip johnson <philip.johnson@atempo.com>
2002-11-22 15:01 ` Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Andrew Sullivan <andrew@libertyrms.info>
2002-11-27 18:16 ` Merlin Moncure <merlin@rcsonline.com>
2002-11-29 02:58 ` David Jericho <david.jericho@bytecomm.com.au>
2002-11-25 03:41 Re: H/W RAID 5 on slower disks versus no raid on faster HDDs Nikolaus Dilger <nikolaus@dilger.cc>
2002-11-25 10:43 ` Sander Steffann <sander@steffann.nl>
2002-11-26 14:28 ` SZALAI Karoly <czw@debian.hu>
2002-11-26 16:07 ` Chris Ruprecht <chris@ruprecht.org>
2002-11-26 18:10 ` Tim Lynch <admin+pgsqladmin@thirdage.com>
2002-11-25 12:03 ` David Gilbert <dgilbert@velocet.ca>
2002-11-25 23:43 ` Hossein S. Zadeh <hossein@bf.rmit.edu.au>
2002-11-26 02:36 ` David Gilbert <dgilbert@velocet.ca>
2002-11-26 01:08 Re: H/W RAID 5 on slower disks versus no raid on faster HDDs nikolaus@dilger.cc
2002-11-26 02:42 ` David Gilbert <dgilbert@velocet.ca>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox