pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: hannu@krosing.net
Cc: alvherre@commandprompt.com
Cc: aidan@highrise.ca
Cc: jesper@krogh.cc
Cc: pgsql-performance@postgresql.org
Subject: Re: moving pg_xlog -- yeah, it's worth it!
Date: Fri, 12 Feb 2010 07:21:55 -0600
Message-ID: <4B750193020000250002F22D@gw.wicourts.gov> (raw)

Hannu Krosing  wrote:
 
> Can it be, that each request does at least 1 write op (update
> session or log something) ?
 
Well, the web application connects through a login which only has
SELECT rights; but, in discussing a previous issue we've pretty well
established that it's not unusual for a read to force a dirty buffer
to write to the OS.  Perhaps this is the issue here again.  Nothing
is logged on the database server for every request.
 
> If you can, set
>
> synchronous_commit = off;
>
> and see if it further increases performance.
 
I wonder if it might also pay to make the background writer even more
aggressive than we have, so that SELECT-only queries don't spend so
much time writing pages.  Anyway, given that these are replication
targets, and aren't the "database of origin" for any data of their
own, I guess there's no reason not to try asynchronous commit. 
Thanks for the suggestion.
 
-Kevin





view thread (19+ messages)  latest in thread

Message-ID: <4B750193020000250002F22D@gw.wicourts.gov>
Permalink:  ../4B750193020000250002F22D@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4B750193020000250002F22D@gw.wicourts.gov

 · 

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-performance@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, hannu@krosing.net, alvherre@commandprompt.com, aidan@highrise.ca, jesper@krogh.cc
  Subject: Re: moving pg_xlog -- yeah, it's worth it!
  In-Reply-To: <4B750193020000250002F22D@gw.wicourts.gov>
  References: <4B750193020000250002F22D@gw.wicourts.gov>

* 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