Re: Best setting for wal_sync_method - Mailing list pgsql-admin

From Ravi Krishna
Subject Re: Best setting for wal_sync_method
Date
Msg-id BAY172-W204C9DEAB4D936F45468A5B9DF0@phx.gbl
Whole thread Raw
In response to Best setting for wal_sync_method  (Ravi Krishna <srkrishna@outlook.com>)
Responses Re: Best setting for wal_sync_method
List pgsql-admin

Speaking to the sys admins we found that the file system where the WAL was written to did not have direct_io and hence all writes were getting buffered. So we enabled direct_io on that FS and now writes are order of magnitude slower (5x times). 

It seems PG already uses O_DIRECT for WAL. So is the enabling of direct_io in the mount options of the FS totally redundant. It definitely has a serious performance impact.

Thanks


From: srkrishna@outlook.com
To: pgsql-admin@postgresql.org
Subject: [ADMIN] Best setting for wal_sync_method
Date: Thu, 7 May 2015 09:36:36 -0400

On RHEL 6.4 which is the best setting for wal_sync_method for write intensive operations. Is the default fdatasync good for all conditions, including reliability. 

Thanks

pgsql-admin by date:

Previous
From: Matheus de Oliveira
Date:
Subject: Re: where table privileges are stored
Next
From: Zoltan Szecsei
Date:
Subject: connect postgresql to a different cluster