pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Amitabh Kant <amitabhkant@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Optimizing Postgresql server and FreeBSD for heavy read 	and writes
Date: Wed, 03 Feb 2010 16:59:31 -0500
Message-ID: <4B69F1C3.6060302@2ndquadrant.com> (raw)
In-Reply-To: <603c8f071002031243m4e0b3d95n8d810c6f40d274fa@mail.gmail.com>
References: <84b68b3d1002030710x76c31adft58c56624409011fd@mail.gmail.com>
	<603c8f071002031243m4e0b3d95n8d810c6f40d274fa@mail.gmail.com>

Robert Haas wrote:
> On Wed, Feb 3, 2010 at 10:10 AM, Amitabh Kant <amitabhkant@gmail.com> wrote:
>   
>> work_mem = 160MB # pg_generate_conf wizard 2010-02-03
>>     
>
> Overall these settings look sane, but this one looks like an
> exception.  That is an enormous value for that parameter...
>   

Yeah, I think I need to retune the suggestions for that parameter.  The 
idea behind the tuning profile used in the "web" and "OLTP" setups is 
that you're unlikely to have all the available connections doing 
something involving sorting at the same time with those workloads, and 
when it does happen you want it to use the fastest approach possible 
even if that takes more RAM so the client waiting for a response is more 
likely to get one on time.  That's why the work_mem figure in those 
situations is set very aggressively:  total_mem / connections, so on a 
16GB server that comes out to the 160MB seen here.  I'm going to adjust 
that so that it's capped a little below (total_mem - shared_buffers) / 
connections instead.

pgtune just got a major bit of refactoring recently from Matt Harrison 
to make it more Python-esque, and I'll be pushing toward an official 1.0 
with all the major loose ends cleaned up and an adjusted tuning model 
that will be available before 9.0 ships.  I'm seeing enough people 
interested in it now to justify putting another block of work into 
improving it.

-- 
Greg Smith  2ndQuadrant US  Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com   www.2ndQuadrant.us

view thread (14+ messages)  latest in thread

Message-ID: <4B69F1C3.6060302@2ndquadrant.com>
Permalink:  ../4B69F1C3.6060302@2ndquadrant.com/
Also on:    postgresql.org/message-id/4B69F1C3.6060302@2ndquadrant.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: greg@2ndquadrant.com, robertmhaas@gmail.com, amitabhkant@gmail.com
  Subject: Re: Optimizing Postgresql server and FreeBSD for heavy read 	and writes
  In-Reply-To: <4B69F1C3.6060302@2ndquadrant.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