Re: Group Commits Vs WAL Writes - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Group Commits Vs WAL Writes
Date
Msg-id CA+TgmobGoD5igUKpafiizjQyQZXeG2o_wcShzt8QiRjGOQS6Tg@mail.gmail.com
Whole thread Raw
In response to Group Commits Vs WAL Writes  (Atri Sharma <atri.jiit@gmail.com>)
Responses Re: Group Commits Vs WAL Writes  (Atri Sharma <atri.jiit@gmail.com>)
List pgsql-hackers
On Thu, Jun 27, 2013 at 3:56 AM, Atri Sharma <atri.jiit@gmail.com> wrote:
> When we do a commit, WAL buffers are written to the disk. This has a
> disk latency for the required I/O.

Check.

> Now, with group commits, do we see a spike in that disk write latency,
> especially in the cases where the user has set wal_buffers to a high
> value?

Well, it does take longer to fsync a larger byte range to disk than a
smaller byte range, in some cases.  But it's generally more efficient
to write one larger range than many smaller ranges, so you come out
ahead on the whole.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [PATCH] add --progress option to pgbench (submission 3)
Next
From: Robert Haas
Date:
Subject: Re: Documentation/help for materialized and recursive views