pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Carey <scott@richrelevance.com>
To: Karl Denninger <karl@denninger.net>
Cc: Justin Graf <justin@magwerks.com>
Cc: Grzegorz Jaśkiewicz <gryzman@gmail.com>
Cc: postgres performance list <pgsql-performance@postgresql.org>
Subject: Re: raid10 write performance
Date: Tue, 22 Jun 2010 10:19:19 -0700
Message-ID: <D3D01921-FBEB-4F10-9B2F-61FDBCE87034@richrelevance.com> (raw)
In-Reply-To: <4C20C8E1.7060306@denninger.net>
References: <AANLkTinbKXufTYhNuhNaOW2kWM-simIL3dg0uFX7Ij6g@mail.gmail.com>
	<4C20BD33.1040908@magwerks.com>
	<4C20C8E1.7060306@denninger.net>


On Jun 22, 2010, at 7:29 AM, Karl Denninger wrote:

> Justin Graf wrote:
>> 
>> On 6/22/2010 4:31 AM, Grzegorz Jaśkiewicz wrote:
>>   
>>> Would moving WAL dir to separate disk help potentially ?
>>>    
>>>     
>> 
>> Yes it can have a big impact.
> WAL on a separate spindle will make a HUGE difference in performance.  TPS rates frequently double OR BETTER with WAL on a dedicated spindle.
> 
> Strongly recommended.
> 

Most of the performance increase on Linux, if your RAID card has a data-safe write-back cache (battery or solid state cache persistence in case of power failure), is a separate file system, not separate spindle.   Especially if ext3 is used with the default "ordered" journal, it is absolutely caustic to performance to have WAL and data on the same file system.  

The whole 'separate spindle' thing is important if you don't have a good caching raid card, otherwise it doesn't matter that much.


> Be aware that you must pay CLOSE ATTENTION to your backup strategy if WAL is on a different physical disk.  Snapshotting the data disk where WAL is on a separate spindle and backing it up **WILL NOT WORK** and **WILL** result in an non-restoreable backup.
> 
> The manual discusses this but it's easy to miss.... don't or you'll get a NASTY surprise if something goes wrong.....
> 
> -- Karl
> <karl.vcf><ATT00001..txt>



view thread (12+ messages)  latest in thread

Message-ID: <D3D01921-FBEB-4F10-9B2F-61FDBCE87034@richrelevance.com>
Permalink:  ../D3D01921-FBEB-4F10-9B2F-61FDBCE87034@richrelevance.com/
Also on:    postgresql.org/message-id/D3D01921-FBEB-4F10-9B2F-61FDBCE87034@richrelevance.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: scott@richrelevance.com, karl@denninger.net, justin@magwerks.com, gryzman@gmail.com
  Subject: Re: raid10 write performance
  In-Reply-To: <D3D01921-FBEB-4F10-9B2F-61FDBCE87034@richrelevance.com>
  References: <AANLkTinbKXufTYhNuhNaOW2kWM-simIL3dg0uFX7Ij6g@mail.gmail.com> <4C20BD33.1040908@magwerks.com> <4C20C8E1.7060306@denninger.net> <D3D01921-FBEB-4F10-9B2F-61FDBCE87034@richrelevance.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