Re: Hardware suggestions for high performance 8.3

From: Greg Smith <gsmith(at)gregsmith(dot)com>
To: Henrik <henke(at)mac(dot)se>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Hardware suggestions for high performance 8.3
Date: 2008-06-25 15:45:43
Message-ID: Pine.GSO.4.64.0806251127470.29204@westnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, 25 Jun 2008, Henrik wrote:

> Would you turn off fsync if you had a controller with BBU? =)

Turning off fsync has some potential to introduce problems even in that
environment, so better not to do that. The issue is that you might have,
say, 1GB of OS-level cache but 256MB of BBU cache, and if you turn fsync
off it won't force the OS cache out to the controller when it's supposed
to and that can cause corruption.

Also, if you've got a controller with BBU, the overhead of fsync for
regular writes is low enough that you don't really need to turn it off.
If writes are cached the fsync is almost free.

--
* Greg Smith gsmith(at)gregsmith(dot)com http://www.gregsmith.com Baltimore, MD

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2008-06-25 15:53:18 Re: Hardware vs Software RAID
Previous Message Matthew Wakeling 2008-06-25 15:35:37 Re: Hardware vs Software RAID