pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: pgsql-performance@postgresql.org
Subject: Re: Background writer configuration
Date: Wed, 15 Mar 2006 11:54:33 -0800
Message-ID: <200603151154.33504.jd@commandprompt.com> (raw)
In-Reply-To: <44181A11.EE98.0025.0@wicourts.gov>
References: <44181A11.EE98.0025.0@wicourts.gov>


> I then did some calculations, based on the sustained write speed of our
> drive array (as measured by copying big files to it), and we tried
> this:
>
> bgwriter_lru_percent = 20.0
> bgwriter_lru_maxpages = 200
> bgwriter_all_percent = 10.0
> bgwriter_all_maxpages = 600
>
> This almost totally eliminated the clusters of timeouts, and caused the
> transaction application rate to increase by a factor of eight over the
> already-improved speed.  (That is, we were running 30 to 35 times as
> many transactions per minute into the database, compared to the default
> background writer configuration.)  I'm going to let these settings
> settle in for a week or two before we try adjusting them further (to see
> if we can eliminate those last few timeouts of this type).


Can you tell us what type of array you have?

Joshua D. Drake

>
> I guess my point is that people shouldn't be shy about boosting these
> numbers by a couple orders of magnitude from the default values.  It may
> also be worth considering whether the defaults should be something more
> aggressive.
>
> -Kevin
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that your
>        message can get through to the mailing list cleanly

-- 
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: PLphp, PLperl - http://www.commandprompt.com/



view thread (14+ messages)  latest in thread

Message-ID: <200603151154.33504.jd@commandprompt.com>
Permalink:  ../200603151154.33504.jd@commandprompt.com/
Also on:    postgresql.org/message-id/200603151154.33504.jd@commandprompt.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: jd@commandprompt.com
  Subject: Re: Background writer configuration
  In-Reply-To: <200603151154.33504.jd@commandprompt.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