pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Peter Kovacs <maxottovonstirlitz@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Carlos Moreno <moreno_pg@mochima.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Two hard drives --- what to do with them?
Date: Mon, 26 Feb 2007 13:51:06 -0800
Message-ID: <1172526666.10824.315.camel@dogma.v10.wvs> (raw)
In-Reply-To: <b6e8f2e80702251411q5a27eb53re9c2a299b8e3880a@mail.gmail.com>
References: <45DF3B15.1070609@3times25.net>
	<200702231330.57014.josh@agliodbs.com>
	<45DF5DA9.90002@commandprompt.com>
	<45DF6154.5090205@3times25.net>
	<1d4e0c10702231425ke37a732y36e241902fe0aa55@mail.gmail.com>
	<45DF94BF.6050904@3times25.net>
	<45E0A500.1010707@commandprompt.com>
	<45E104DD.3080600@mochima.com>
	<2055.1172375931@sss.pgh.pa.us>
	<b6e8f2e80702251411q5a27eb53re9c2a299b8e3880a@mail.gmail.com>

On Sun, 2007-02-25 at 23:11 +0100, Peter Kovacs wrote:
> A related question:
> Is it sufficient to disable write cache only on the disk where pg_xlog
> is located? Or should write cache be disabled on both disks?
> 

When PostgreSQL does a checkpoint, it thinks the data pages before the
checkpoint have successfully made it to disk. 

If the write cache holds those data pages, and then loses them, there's
no way for PostgreSQL to recover. So use a battery backed cache or turn
off the write cache.

Regards,
	Jeff Davis




view thread (16+ messages)  latest in thread

Message-ID: <1172526666.10824.315.camel@dogma.v10.wvs>
Permalink:  ../1172526666.10824.315.camel@dogma.v10.wvs/
Also on:    postgresql.org/message-id/1172526666.10824.315.camel@dogma.v10.wvs

 · 

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: pgsql@j-davis.com, maxottovonstirlitz@gmail.com, tgl@sss.pgh.pa.us, moreno_pg@mochima.com
  Subject: Re: Two hard drives --- what to do with them?
  In-Reply-To: <1172526666.10824.315.camel@dogma.v10.wvs>
  References: <45DF3B15.1070609@3times25.net> <200702231330.57014.josh@agliodbs.com> <45DF5DA9.90002@commandprompt.com> <45DF6154.5090205@3times25.net> <1d4e0c10702231425ke37a732y36e241902fe0aa55@mail.gmail.com> <45DF94BF.6050904@3times25.net> <45E0A500.1010707@commandprompt.com> <45E104DD.3080600@mochima.com> <2055.1172375931@sss.pgh.pa.us> <b6e8f2e80702251411q5a27eb53re9c2a299b8e3880a@mail.gmail.com> <1172526666.10824.315.camel@dogma.v10.wvs>

* 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