Re: freebsd/softupdates for data dir - Mailing list pgsql-performance

From Jim Nasby
Subject Re: freebsd/softupdates for data dir
Date
Msg-id A3A08921-7B37-448A-8F34-A921FECC8BC8@pervasive.com
Whole thread Raw
In response to Re: freebsd/softupdates for data dir  (Vivek Khera <vivek@khera.org>)
Responses Re: freebsd/softupdates for data dir  (Vivek Khera <vivek@khera.org>)
List pgsql-performance
On Apr 4, 2006, at 10:41 AM, Vivek Khera wrote:
> On Apr 3, 2006, at 10:10 PM, Mark Kirkwood wrote:
>
>> I've always left them on, and never had any issues...(even after
>> unscheduled power loss - which happened here yesterday). As I
>> understand it, the softupdate code reorders *metadata* operations,
>> and does not alter data operations - so the effect of fysnc(2) on
>> a preexisting file is not changed by softupdates being on or off.
>
> This is also my understanding, and I also leave softupdates on for
> the data partition.  Even if it doesn't improve performance, it
> will not reduce it, and otherwise does no harm with respect to
> postgres' disk usage.

More importantly, it allows the system to come up and do fsck in the
background. If you've got a large database that's a pretty big benefit.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Sun Fire T2000 and PostgreSQL 8.1.3
Next
From: Scott Marlowe
Date:
Subject: Re: Sun Fire T2000 and PostgreSQL 8.1.3