pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ravi Krishna <srkrishna@outlook.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Best setting for wal_sync_method
Date: Thu, 7 May 2015 12:19:14 -0400
Message-ID: <BAY172-W204C9DEAB4D936F45468A5B9DF0@phx.gbl> (raw)
In-Reply-To: <BAY172-W154F5D41D50559842D5F21B9DF0@phx.gbl>
References: <CAOQWw8S33XhDsEhVQoUskW2WRn00vHY6JQgze=9x4gMGknHiKw@mail.gmail.com>
	<BAY172-W154F5D41D50559842D5F21B9DF0@phx.gbl>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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 		 	   		   		 	   		  =

view thread (3+ messages)  latest in thread

Message-ID: <BAY172-W204C9DEAB4D936F45468A5B9DF0@phx.gbl>
Permalink:  ../BAY172-W204C9DEAB4D936F45468A5B9DF0@phx.gbl/
Also on:    postgresql.org/message-id/BAY172-W204C9DEAB4D936F45468A5B9DF0@phx.gbl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: srkrishna@outlook.com
  Subject: Re: Best setting for wal_sync_method
  In-Reply-To: <BAY172-W204C9DEAB4D936F45468A5B9DF0@phx.gbl>
  References: <CAOQWw8S33XhDsEhVQoUskW2WRn00vHY6JQgze=9x4gMGknHiKw@mail.gmail.com> <BAY172-W154F5D41D50559842D5F21B9DF0@phx.gbl> <BAY172-W204C9DEAB4D936F45468A5B9DF0@phx.gbl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox