pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Clemens Eisserer <linuxhippy@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9161: wal_writer_delay is limited to 10s
Date: Tue, 18 Feb 2014 14:20:20 -0500
Message-ID: <9250.1392751220@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFvQSYT65aeC+-KnC7PihZ8GZ6n8OnLLqU1j9weBOV46v-iH3A@mail.gmail.com>
References: <CAFvQSYRvKYNj8FVMztVLtvBdarz=W1wE7-BRyXpaaxJ+dg_Kjg@mail.gmail.com>
	<20140214225026.GB11943@awork2.anarazel.de>
	<CAMkU=1xVA5=Ub5Ktx1DYb+oHn-afo=Oae7o+oMr2HYT9aDPHyQ@mail.gmail.com>
	<20140217215329.GH7161@awork2.anarazel.de>
	<CAMkU=1xhBvCesyen_cUC6AjkP-2PS-n0qS93u9jtyOM92QYzMQ@mail.gmail.com>
	<CAFvQSYT65aeC+-KnC7PihZ8GZ6n8OnLLqU1j9weBOV46v-iH3A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Clemens Eisserer <linuxhippy@gmail.com> writes:
> Thanks a lot for the in-depth information.
> Is the 8KB boundary configureable at compile time?

There is a configure option for XLOG_BLCKSZ, but it won't go beyond 64K
which is probably not enough to fix your problem.  (I'm not sure offhand
if there are technical reasons for 64K in particular as the limit, but
in any case I suspect making it really large would create performance
issues of its own.)

I think what you'd really want is to tweak the walwriter logic so that
it avoids writing individual blocks and instead waits for wal_buffers
to be, say, half full before writing.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (15+ messages)  latest in thread

Message-ID: <9250.1392751220@sss.pgh.pa.us>
Permalink:  ../9250.1392751220@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9250.1392751220@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, linuxhippy@gmail.com
  Subject: Re: BUG #9161: wal_writer_delay is limited to 10s
  In-Reply-To: <9250.1392751220@sss.pgh.pa.us>
  References: <CAFvQSYRvKYNj8FVMztVLtvBdarz=W1wE7-BRyXpaaxJ+dg_Kjg@mail.gmail.com> <20140214225026.GB11943@awork2.anarazel.de> <CAMkU=1xVA5=Ub5Ktx1DYb+oHn-afo=Oae7o+oMr2HYT9aDPHyQ@mail.gmail.com> <20140217215329.GH7161@awork2.anarazel.de> <CAMkU=1xhBvCesyen_cUC6AjkP-2PS-n0qS93u9jtyOM92QYzMQ@mail.gmail.com> <CAFvQSYT65aeC+-KnC7PihZ8GZ6n8OnLLqU1j9weBOV46v-iH3A@mail.gmail.com> <9250.1392751220@sss.pgh.pa.us>

* 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