Re: WAL Re-Writes - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: WAL Re-Writes
Date
Msg-id CAA4eK1+A+0RMEynvhTRbLfeRem64FMcSM=8zq+_pWjN0P7gW5g@mail.gmail.com
Whole thread Raw
In response to Re: WAL Re-Writes  (james <james@mansionfamily.plus.com>)
List pgsql-hackers
On Thu, Jan 28, 2016 at 1:34 AM, james <james@mansionfamily.plus.com> wrote:
On 27/01/2016 13:30, Amit Kapila wrote:

Thoughts?

Are the decreases observed with SSD as well as spinning rust?


The test is done with WAL on SSD and data on spinning rust, but I
think the results should be similar if we would have done it
otherwise as well.  Having said that, I think still it is worth-while to
test it that way and I will do it.
 
I might imagine that decreasing the wear would be advantageous,

Yes.
 
especially if the performance decrease is less with low read latency.


Let me clarify again here that with 4096 bytes chunk size, there is
no performance decrease observed and rather there is a performance
increase though relatively-small (1~5%) and there is a reduction of ~35%
disk writes.  Only if we do exact writes or write with smaller chunk size
like (512 or 1024 bytes, basically lesser than OS block size), then we can
see performance decrease mainly for wal_level < ARCHIVE, but then
writes are much more smaller.  I would also like to mention that what we
call reduction in disk writes, this is the 7th column in stat file [1]
(write sectors - number of sectors written, for details you can refer
documentation of stat file [1]).

pgsql-hackers by date:

Previous
From: Corey Huinker
Date:
Subject: Re: [POC] FETCH limited by bytes.
Next
From: Noah Misch
Date:
Subject: Re: Fwd: Core dump with nested CREATE TEMP TABLE