pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Foster <martin@ethereal-realms.org>
To: Gaetano Mendola <mendola@bigfoot.com>
To: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: Performance Bottleneck
Date: Fri, 06 Aug 2004 18:58:31 -0400
Message-ID: <41140D17.7070101@ethereal-realms.org> (raw)
In-Reply-To: <4110FFF6.1030001@bigfoot.com>
References: <ktQPc.23297$yT2.16983@clgrps13>
	<410FDC53.5080509@bigfoot.com>
	<X0ZPc.23543$yT2.23053@clgrps13>
	<4110FFF6.1030001@bigfoot.com>

Gaetano Mendola wrote:
> 
> 
> Let start from your postgres configuration:
> 
> shared_buffers = 8192    <==== This is really too small for your 
> configuration
> sort_mem = 2048
> 
> wal_buffers = 128    <==== This is really too small for your configuration
> 
> effective_cache_size = 16000
> 
> change this values in:
> 
> shared_buffers = 50000
> sort_mem = 16084
> 
> wal_buffers = 1500
> 
> effective_cache_size = 32000
> 
> 
> to bump up the shm usage you have to configure your OS in order to be
> allowed to use that ammount of SHM.
> 
> This are the numbers that I feel good for your HW, the second step now is
> analyze your queries
> 

These changes have yielded some visible improvements, with load averages 
rarely going over the anything noticeable.   However, I do have a 
question on the matter, why do these values seem to be far higher then 
what a frequently pointed to document would indicate as necessary?

http://www.varlena.com/GeneralBits/Tidbits/perf.html

I am simply curious, as this clearly shows that my understanding of 
PostgreSQL is clearly lacking when it comes to tweaking for the hardware.

	Martin Foster
	Creator/Designer Ethereal Realms
	martin@ethereal-realms.org





view thread (38+ messages)  latest in thread

Message-ID: <41140D17.7070101@ethereal-realms.org>
Permalink:  ../41140D17.7070101@ethereal-realms.org/
Also on:    postgresql.org/message-id/41140D17.7070101@ethereal-realms.org

 · 

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: martin@ethereal-realms.org, mendola@bigfoot.com
  Subject: Re: Performance Bottleneck
  In-Reply-To: <41140D17.7070101@ethereal-realms.org>

* 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