pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Arbash Meinel <john@arbash-meinel.com>
To: Karim Nassar <Karim.Nassar@acm.org>
To: pgsql-performance@postgresql.org
Subject: Re: What's better: Raid 0 or disk for seperate pg_xlog
Date: Thu, 10 Mar 2005 13:56:03 -0600
Message-ID: <4230A653.4090708@arbash-meinel.com> (raw)
In-Reply-To: <1110484232.9252.211.camel@k2.cet.nau.edu>
References: <1110440684.6368.163.camel@k2.cet.nau.edu>
	<4230673B.3020400@arbash-meinel.com>
	<1110484232.9252.211.camel@k2.cet.nau.edu>

Karim Nassar wrote:

>Thanks to all for the tips.
>  
>
...

>>In general I would recommend RAID1, because that is the safe bet. If 
>>your db is the bottleneck, and your data isn't all that critical, and 
>>you are read heavy, I would probably go with RAID1, if you are write 
>>    
>>
                                                 ^^^^^ -> RAID0

>>heavy I would say 2 independent disks.
>>    
>>
>
>I feel that we have enough data safety such that I want to go for speed.
>Some of the queries are very large joins, and I am going for pure
>throughput at this point - unless someone can find a hole in my backup
>tactic.
>
>Of course, later we will have money to throw at more spindles. But for
>now, I am trying gaze in to the future and maximize my current
>capabilities.
>
>
>Seems to me that the "best" solution would be:
>
>* disk 0 partition 1..n - os mounts
>         partition n+1  - /var/lib/postgres/data/pg_xlog
>
>* disk 1 partition 1    - /var/lib/postgres/data
>
>* Further (safe) performance gains can be had by adding more spindles as
>such: 
> - first disk: RAID1 to disk 1
> - next 2 disks: RAID 0 across the above
>  
>
Sounds decent to me.
I did make the mistake that you might want to consider a RAID0. But the 
performance gains might be small, and you potentially lose everything.
But your update strategy seems dead on.

>Do I grok it?
>
>Thanks again,
>  
>

John
=:->

Attachments:

  signature.asc (application/pgp-signature, 248B) download

view thread (7+ messages)  latest in thread

Message-ID: <4230A653.4090708@arbash-meinel.com>
Permalink:  ../4230A653.4090708@arbash-meinel.com/
Also on:    postgresql.org/message-id/4230A653.4090708@arbash-meinel.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: john@arbash-meinel.com, Karim.Nassar@acm.org
  Subject: Re: What's better: Raid 0 or disk for seperate pg_xlog
  In-Reply-To: <4230A653.4090708@arbash-meinel.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