pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
Cc: Pgsql-Performance (E-mail) <pgsql-performance@postgresql.org>
Subject: Re: Can anyone explain this pgbench results?
Date: Tue, 7 Mar 2006 13:59:30 -0600
Message-ID: <20060307195930.GB82989@pervasive.com> (raw)
In-Reply-To: <A3D1526C98B7C1409A687E0943EAC410605FC8@obelix.askesis.nl>
References: <A3D1526C98B7C1409A687E0943EAC410605FC8@obelix.askesis.nl>

On Tue, Mar 07, 2006 at 08:49:30PM +0100, Joost Kraaijeveld wrote:
> 
> Jim C. Nasby wrote:
>  
> > Speaking of 'disks', what's your exact layout? Do you have a 5 drive
> > raid5 for the OS and the database, 1 drive for swap and 1 drive for
> > pg_xlog?
> 
> On a Sil SATA 3114 controller:
> /dev/sda OS + Swap
> /dev/sdb /var with pg_xlog
> 
> On the 3Ware 9500S-8, 5 disk array:
> /dev/sdc with the database (and very safe, my MP3 collection ;-))
> 
> As I wrote in one of my posts to Michael, I suspect that the card is not handling the amount of write operations as well as I expected. I wonder if anyone else sees the same characteristics with this kind of card.

Well, the problem is that you're using RAID5, which has a huge write
overhead. You're unlikely to get good performance with it.

Also, it sounds like sda and sdb are not mirrored. If that's the case,
you have no protection from a drive failure taking out your entire
database, because you'd lose pg_xlog.

If you want better performance your best bets are to either setup RAID10
or if you don't care about the data, just go to RAID0.
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



view thread (12+ messages)  latest in thread

Message-ID: <20060307195930.GB82989@pervasive.com>
Permalink:  ../20060307195930.GB82989@pervasive.com/
Also on:    postgresql.org/message-id/20060307195930.GB82989@pervasive.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jnasby@pervasive.com, J.Kraaijeveld@Askesis.nl
  Subject: Re: Can anyone explain this pgbench results?
  In-Reply-To: <20060307195930.GB82989@pervasive.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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