Skip site navigation (1) Skip section navigation (2)

Re: questions about disk configurations

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: <depesz(at)depesz(dot)pl>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: questions about disk configurations
Date: 2002-12-09 23:00:32
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
On Mon, 9 Dec 2002, Josh Berkus wrote:

> Depesz,
> > i have a question about best harddisk configuration for postgresql
> > performance.
> > of course i know that:
> > - scsi is better than ide
> > - 2 disks are better than 1
> > - 3 disks are better than 2
> > 
> > i know that with 3 disks one should move xlog to one drive, index files
> > to second and tables to third.
> > that's clear.
> Er, no, it's not.  In fact, for a 3-disk config, I reccommend:
> Disk 1: OS, swap, system logs
> Disk 2: Data + Indexes
> Disk 3: Transaction Log

Actually, first I'd try one big RAID 5 and see how it runs.  THEN I'd 
spend time mucking around with different configs if that wasn't fast 
enough.  If you need x performance and get 10x with a RAID 5 then move on 
to more interesting problems.

> > but:
> > will making software raid on this discs provide performance increase or
> > decrease?
> Hardware RAID can improve *read* performance, particilarly RAIDs 1, 01, and 
> 10.  For writing, the best you can do is having it not inhibit performance.   
> The general testament is that *software* RAID does not improve things at all; 
> actually, the best that can be said for Linux Software RAID 1 is that it does 
> not harm performance much.

Not in my experience.  I'd estimate my test box with dual 18 Gig UW scsis 
runs about 1.5 to 1.8 times faster with the two drives in a RAID1 as if 
a single one is used.  Bonnie confirms this.  single drive can read about 
25 Megs a second, a pair in a RAID1 reads at about 48 Megs a second.

But as you pointed out in your reply, it's more important to look at how 
he's gonna drive the database.  If it has to input hundreds of short 
queries a second, that's a whole different problem than a data warehouse 
with 500 people throwing 8 way joins at the data all day.

In response to


pgsql-performance by date

Next:From: Josh BerkusDate: 2002-12-09 23:26:36
Subject: Re: questions about disk configurations
Previous:From: eric soroosDate: 2002-12-09 22:44:31
Subject: Re: questions about disk configurations

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group