Re: fsync and battery-backed caches

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Tino Wildenhain <tino(at)wildenhain(dot)de>
Cc: Javier Somoza <jsomoza(at)pandasoftware(dot)es>, pgsql-performance(at)postgresql(dot)org
Subject: Re: fsync and battery-backed caches
Date: 2006-02-28 00:22:23
Message-ID: 20060228002223.GW82012@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, Feb 27, 2006 at 11:12:57AM +0100, Tino Wildenhain wrote:
> Javier Somoza schrieb:
> >
> > Hi all
> >
> > Is it secure to disable fsync havin battery-backed disk cache?
> >
> > Thx
> >
> No. fsync moves the data from OS memory cache to disk-adaptor
> cache which is required to benefit from battery backup.

More importantly, in guarantees that data is committed to non-volatile
storage in such a way that PostgreSQL can recover from a crash without
corruption.

If you have a battery-backed controller and turn on write caching you
shouldn't see much effect from fsync anyway.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Bruce Momjian 2006-02-28 01:06:13 Re: fsync and battery-backed caches
Previous Message Peter Childs 2006-02-27 18:34:12 Re: Large Table With Only a Few Rows