pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@ymail.com>
To: ac@hsk.hk <ac@hsk.hk>
To: Josh Krupka <jkrupka@gmail.com>
To: Johnny Tan <johnnydtan@gmail.com>
Cc: Alex Kahn <alex@paperlesspost.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: postgresql.conf recommendations
Date: Wed, 6 Feb 2013 04:49:47 -0800 (PST)
Message-ID: <1360154987.89420.YahooMailNeo@web162901.mail.bf1.yahoo.com> (raw)
In-Reply-To: <13A05E96-01A0-4B0A-8EA3-2A3B7FDF6838@hsk.hk>
References: <CABMVzL2y8mRM5C9xxejAyDqe0i1S78RAE3cEATGYNf5Ktz_Zdg@mail.gmail.com>
	<CAB6McgXMFS2XD_inm5LMSmZpYMoXm8mzF6t3JXVyJAqi_-98OA@mail.gmail.com>
	<CABMVzL3mmx8KOBCrVQzff3FciXg_DJGULd4f3an4a417FUb1XQ@mail.gmail.com>
	<CAB6McgUt0tBgZCYjRKgpPt41XPYLXwA8tcXDTp_vLTvwA1m30w@mail.gmail.com>
	<13A05E96-01A0-4B0A-8EA3-2A3B7FDF6838@hsk.hk>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

"ac@hsk.hk" <ac@hsk.hk> wrote:
> Johnny Tan <johnnydtan@gmail.com> wrote:

>>shared_buffers = 48GB# min 128kB

> From the postgresql.conf, I can see that the shared_buffers is
> set to 48GB which is not small,  it would be possible that the
> large buffer cache could be "dirty", when a checkpoint starts, it
> would cause a checkpoint I/O spike.
>
>
> I would like to suggest you about using pgtune to get recommended
> conf for postgresql.

I have seen symptoms like those described which were the result of
too many dirty pages accumulating inside PostgreSQL shared_buffers.
It might be something else entirely in this case, but it would at
least be worth trying a reduced shared_buffers setting combined
with more aggressive bgwriter settings.  I might try something like
the following changes, as an experiment:

shared_buffers = 8GB
bgwriter_lru_maxpages = 1000
bgwriter_lru_multiplier = 4

-Kevin


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



view thread (32+ messages)  latest in thread

Message-ID: <1360154987.89420.YahooMailNeo@web162901.mail.bf1.yahoo.com>
Permalink:  ../1360154987.89420.YahooMailNeo@web162901.mail.bf1.yahoo.com/
Also on:    postgresql.org/message-id/1360154987.89420.YahooMailNeo@web162901.mail.bf1.yahoo.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: kgrittn@ymail.com, ac@hsk.hk, jkrupka@gmail.com, johnnydtan@gmail.com, alex@paperlesspost.com
  Subject: Re: postgresql.conf recommendations
  In-Reply-To: <1360154987.89420.YahooMailNeo@web162901.mail.bf1.yahoo.com>

* 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