Re: Recommended value for pg_test_fsync - Mailing list pgsql-performance

From Jeff Janes
Subject Re: Recommended value for pg_test_fsync
Date
Msg-id CAMkU=1weUE+AKHjo3vOPFg55JB5jZLdKdkqGQnxKEq8rWuKfww@mail.gmail.com
Whole thread Raw
In response to Re: Recommended value for pg_test_fsync  (Nikhil Shetty <nikhil.dba04@gmail.com>)
List pgsql-performance
On Tue, Jun 30, 2020 at 1:02 AM Nikhil Shetty <nikhil.dba04@gmail.com> wrote:
Hi Bruce,

Based on pg_test_fsync results, should we choose open_datasync or fdatasync as wal_sync_method? Can we rely on pg_test_fsync for choosing the best wal_sync_method or is there any other way?

Probably the default of fdatasync.  The place where pg_test_fsync would tell me not to use fdatasync is if it were so fast that it was not credible that it was honestly syncing the data.  I don't think pg_test_fsync does a good job of exercising the realistic differences between fdatasync and open_datasync.  So unless it shows that one of them is lying about the durability, it doesn't offer much help.
 
Cheers,

Jeff

pgsql-performance by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Recommended value for pg_test_fsync
Next
From: Nikhil Shetty
Date:
Subject: Re: Recommended value for pg_test_fsync