Re: Moving pg_xlog - Mailing list pgsql-general

From Jeff Janes
Subject Re: Moving pg_xlog
Date
Msg-id CAMkU=1y1OhSh9gPDbpUMHU0t5yYy4E5WWFGYPvNUUMjkqKgdCw@mail.gmail.com
Whole thread Raw
In response to Re: Moving pg_xlog  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-general
On Thu, Dec 1, 2016 at 6:17 PM, Michael Paquier <michael.paquier@gmail.com> wrote:
On Thu, Dec 01, 2016 at 05:48:51PM +0200, Achilleas Mantzios wrote:
>
> Performance is the reason. You would benefit from moving pg_xlog to a
> different controller with its own write cache or to a different SSD with a
> write cache which is capacitor-backed. So in enterprise/server-class setups
> the above would boost the performance. Using the same SSD with a different
> partition won't give you much.

For performance, on-disk write pattern of data in pg_xlog is sequential
writes, while there will be likely random writes on the main data folder.

This is only the case if you have a write cache, or are doing bulk loads.  With small transactions and without a write cache, the need for constant syncs totally destroys the benefits of sequential writes.

Cheers,

Jeff

pgsql-general by date:

Previous
From: Fabricio Pedroso Jorge
Date:
Subject: Re: Create DB ends with error "FATAL: Ident authentication failed for user "postgres""
Next
From: Fabricio Pedroso Jorge
Date:
Subject: Re: Create DB ends with error "FATAL: Ident authentication failed for user "postgres""