pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedWhat to do with 6 disks?
5+ messages / 5 participants
[nested] [flat]
* What to do with 6 disks?
@ 2005-04-20 01:00 Jeff Frost <jeff@frostconsultingllc.com>
2005-04-20 01:55 ` Re: What to do with 6 disks? Jim C. Nasby <decibel@decibel.org>
2005-04-20 03:06 ` Re: What to do with 6 disks? William Yu <wyu@talisys.com>
2005-04-20 03:07 ` Re: What to do with 6 disks? Josh Berkus <josh@agliodbs.com>
0 siblings, 3 replies; 5+ messages in thread
From: Jeff Frost @ 2005-04-20 01:00 UTC (permalink / raw)
To: pgsql-performance
Now that we've hashed out which drives are quicker and more money equals
faster...
Let's say you had a server with 6 separate 15k RPM SCSI disks, what raid
option would you use for a standalone postgres server?
a) 3xRAID1 - 1 for data, 1 for xlog, 1 for os?
b) 1xRAID1 for OS/xlog, 1xRAID5 for data
c) 1xRAID10 for OS/xlong/data
d) 1xRAID1 for OS, 1xRAID10 for data
e) .....
I was initially leaning towards b, but after talking to Josh a bit, I suspect
that with only 4 disks the raid5 might be a performance detriment vs 3 raid 1s
or some sort of split raid10 setup.
--
Jeff Frost, Owner <jeff@frostconsultingllc.com>
Frost Consulting, LLC http://www.frostconsultingllc.com/
Phone: 650-780-7908 FAX: 650-649-1954
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: What to do with 6 disks?
2005-04-20 01:00 What to do with 6 disks? Jeff Frost <jeff@frostconsultingllc.com>
@ 2005-04-20 01:55 ` Jim C. Nasby <decibel@decibel.org>
2 siblings, 0 replies; 5+ messages in thread
From: Jim C. Nasby @ 2005-04-20 01:55 UTC (permalink / raw)
To: Jeff Frost <jeff@frostconsultingllc.com>; +Cc: pgsql-performance
http://stats.distributed.net is setup with the OS, WAL, and temp on a
RAID1 and the database on a RAID10. The drives are 200G SATA with a
3ware raid card. I don't think the controller has battery-backed cache,
but I'm not sure. In any case, it's almost never disk-bound on the
mirror; when it's disk-bound it's usually the RAID10. But this is a
read-mostly database. If it was write-heavy, that might not be the case.
Also, in general, I see very little disk activity from the OS itself, so
I don't think there's a large disadvantage to having it on the same
drives as part of your database. I would recommend different filesystems
for each, though. (ie: not one giant / partition)
On Tue, Apr 19, 2005 at 06:00:42PM -0700, Jeff Frost wrote:
> Now that we've hashed out which drives are quicker and more money equals
> faster...
>
> Let's say you had a server with 6 separate 15k RPM SCSI disks, what raid
> option would you use for a standalone postgres server?
>
> a) 3xRAID1 - 1 for data, 1 for xlog, 1 for os?
> b) 1xRAID1 for OS/xlog, 1xRAID5 for data
> c) 1xRAID10 for OS/xlong/data
> d) 1xRAID1 for OS, 1xRAID10 for data
> e) .....
>
> I was initially leaning towards b, but after talking to Josh a bit, I
> suspect that with only 4 disks the raid5 might be a performance detriment
> vs 3 raid 1s or some sort of split raid10 setup.
>
> --
> Jeff Frost, Owner <jeff@frostconsultingllc.com>
> Frost Consulting, LLC http://www.frostconsultingllc.com/
> Phone: 650-780-7908 FAX: 650-649-1954
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>
--
Jim C. Nasby, Database Consultant decibel@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: What to do with 6 disks?
2005-04-20 01:00 What to do with 6 disks? Jeff Frost <jeff@frostconsultingllc.com>
@ 2005-04-20 03:06 ` William Yu <wyu@talisys.com>
2 siblings, 0 replies; 5+ messages in thread
From: William Yu @ 2005-04-20 03:06 UTC (permalink / raw)
To: pgsql-performance
My experience:
1xRAID10 for postgres
1xRAID1 for OS + WAL
Jeff Frost wrote:
> Now that we've hashed out which drives are quicker and more money equals
> faster...
>
> Let's say you had a server with 6 separate 15k RPM SCSI disks, what raid
> option would you use for a standalone postgres server?
>
> a) 3xRAID1 - 1 for data, 1 for xlog, 1 for os?
> b) 1xRAID1 for OS/xlog, 1xRAID5 for data
> c) 1xRAID10 for OS/xlong/data
> d) 1xRAID1 for OS, 1xRAID10 for data
> e) .....
>
> I was initially leaning towards b, but after talking to Josh a bit, I
> suspect that with only 4 disks the raid5 might be a performance
> detriment vs 3 raid 1s or some sort of split raid10 setup.
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: What to do with 6 disks?
2005-04-20 01:00 What to do with 6 disks? Jeff Frost <jeff@frostconsultingllc.com>
@ 2005-04-20 03:07 ` Josh Berkus <josh@agliodbs.com>
2005-04-20 15:36 ` Re: What to do with 6 disks? Vivek Khera <vivek@khera.org>
2 siblings, 1 reply; 5+ messages in thread
From: Josh Berkus @ 2005-04-20 03:07 UTC (permalink / raw)
To: Jeff Frost <jeff@frostconsultingllc.com>; +Cc: pgsql-performance
Jeff,
> Let's say you had a server with 6 separate 15k RPM SCSI disks, what raid
> option would you use for a standalone postgres server?
>
> a) 3xRAID1 - 1 for data, 1 for xlog, 1 for os?
> b) 1xRAID1 for OS/xlog, 1xRAID5 for data
> c) 1xRAID10 for OS/xlong/data
> d) 1xRAID1 for OS, 1xRAID10 for data
> e) .....
>
> I was initially leaning towards b, but after talking to Josh a bit, I
> suspect that with only 4 disks the raid5 might be a performance detriment
> vs 3 raid 1s or some sort of split raid10 setup.
Knowing that your installation is read-heavy, I'd recommend (d), with the WAL
on the same disk as the OS, i.e.
RAID1 2 disks OS, pg_xlog
RAID 1+0 4 disks pgdata
--
--Josh
Josh Berkus
Aglio Database Solutions
San Francisco
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: What to do with 6 disks?
2005-04-20 01:00 What to do with 6 disks? Jeff Frost <jeff@frostconsultingllc.com>
2005-04-20 03:07 ` Re: What to do with 6 disks? Josh Berkus <josh@agliodbs.com>
@ 2005-04-20 15:36 ` Vivek Khera <vivek@khera.org>
0 siblings, 0 replies; 5+ messages in thread
From: Vivek Khera @ 2005-04-20 15:36 UTC (permalink / raw)
To: pgsql-performance
On Apr 19, 2005, at 11:07 PM, Josh Berkus wrote:
> RAID1 2 disks OS, pg_xlog
> RAID 1+0 4 disks pgdata
>
This is my preferred setup, but I do it with 6 disks on RAID10 for
data, and since I have craploads of disk space I set checkpoint
segments to 256 (and checkpoint timeout to 5 minutes)
Vivek Khera, Ph.D.
+1-301-869-4449 x806
Attachments:
smime.p7s (application/pkcs7-signature, 2.4K) download
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2005-04-20 15:36 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-04-20 01:00 What to do with 6 disks? Jeff Frost <jeff@frostconsultingllc.com>
2005-04-20 01:55 ` Jim C. Nasby <decibel@decibel.org>
2005-04-20 03:06 ` William Yu <wyu@talisys.com>
2005-04-20 03:07 ` Josh Berkus <josh@agliodbs.com>
2005-04-20 15:36 ` Vivek Khera <vivek@khera.org>
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