From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | Andres Freund <andres(at)2ndquadrant(dot)com> |
Cc: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Peter Geoghegan <pg(at)heroku(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Remove fsync ON/OFF as a visible option? |
Date: | 2015-03-22 19:54:37 |
Message-ID: | 550F1DFD.5020906@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 03/22/2015 06:45 AM, Andres Freund wrote:
> On 2015-03-21 13:53:47 -0700, Josh Berkus wrote:
>> Coincidentally, I am just at this moment performance testing "running
>> with scissors mode" for PostgreSQL on AWS. When intentional, this mode
>> is useful for spinning up lots of read-only replicas which are intended
>> mainly as cache support, something I've done at various dot-coms.
>
> Which is where fsync=off barely has any effect?
Well, I'll admit that I'm not testing each setting independantly. I
have enough tests to run already.
>> So, -1 on removing the setting; it is useful to some users.
>
> Agreed on that.
>
>> Further, full_page_writes=off is supposedly safe on any copy-on-write
>> filesystem, such as ZFS.
>
> FWIW, I think that's a myth. One I heard various versions of by now. As
> long as the OSs page size (4kb nearly everywhere) is different from
> postgres' (8kb) you can have torn pages. Even if individual filesystem
> page writes are atomic.
ZFS's block size is larger than Linux's memory page size. That is, ZFS
on Linux uses a 8kB to 128kB block size depending on which blocks you're
looking at and how you have it configured. Does that make a difference
at all, given that Linux's memory page size is still 4kB?
FYI, the BTRFS folks are also claiming to be torn-page-proof, so it
would be really nice to settle this. Not sure how to force the issue
through testing though.
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas Vondra | 2015-03-22 19:59:18 | Re: PATCH: numeric timestamp in log_line_prefix |
Previous Message | Tomas Vondra | 2015-03-22 19:50:47 | Re: PATCH: numeric timestamp in log_line_prefix |