pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vivek Khera <vivek@khera.org>
To: Pgsql-Performance ((((E-mail)))) <pgsql-performance@postgresql.org>
Subject: Re: Configuration settings for 32GB RAM server
Date: Mon, 4 Dec 2006 13:44:59 -0500
Message-ID: <320E1EF2-FC6F-428E-88CB-DB0455CE2134@khera.org> (raw)
In-Reply-To: <673ECBB77DA91F47AD4902A5FD73BCE4D5ED15@mail3>
References: <673ECBB77DA91F47AD4902A5FD73BCE4D5ED15@mail3>


On Dec 4, 2006, at 12:10 PM, Mark Lonsdale wrote:


> - 4 physical CPUs (hyperthreaded to 8)

i'd tend to disable hyperthreading on Xeons...
> shared_buffers – 50,000     -  >From what Id read, increasing this  
> number higher than this wont have any advantages ?
>
>
if you can, increase it until your performance no longer increases.   
i run with about 70k on a server with 8Gb of RAM.

> effective_cache_size = 524288  -  My logic was I thought Id give  
> the DB 16GB of the 32, and based this number on 25% of that number,  
> sound okay?
>
>

this number is advisory to Pg.  it doesn't allocate resources, rather  
it tells Pg how much disk cache your OS will provide.
> work_mem – 32768  - I only have up to 30 connections in parallel,  
> and more likely less than ½ that number.   My sql is relatively  
> simple, so figured even if there was 5 sorts per query and 30  
> queries in parallel, 32768 would use up 4GB of memory..   Does this  
> number sound too high?
you need to evaluate how much memory you need for your queries and  
then decide if increasing this will help.  benchmarking your own use  
patterns is the only way to do this.

> Maintenance_work_mem = 1048576 – Figured Id allocate 1GB for this.
>
>
I usually do this, too.

> fsm_relations = 2000  - I have about 200 tables plus maybe 4 or 5  
> indexes on each, and didn’t want to have to worry about this number  
> in future so doubled it.

i usually never need to go more than the default.
> fsm_pages = 200,000 – Based this on some statistics about the  
> number of pages freed from a vacuum on older server.   Not sure if  
> its fair to calculate this based on vacuum stats of 7.3.4 server?
On my big DB server, this sits at 1.2 million pages.   You have to  
check the output of vacuum verbose from time to time to ensure it is  
not getting out of bounds; if so, you need to either vacuum more  
often or you need to pack your tables, or increase this parameter.

> Do these numbers look reasonable given the machine above?   Any  
> other settings that I should be paying particular consideration too?
They're a good starting point.

Attachments:

  smime.p7s (application/pkcs7-signature, 2.5K) download

view thread (8+ messages)  latest in thread

Message-ID: <320E1EF2-FC6F-428E-88CB-DB0455CE2134@khera.org>
Permalink:  ../320E1EF2-FC6F-428E-88CB-DB0455CE2134@khera.org/
Also on:    postgresql.org/message-id/320E1EF2-FC6F-428E-88CB-DB0455CE2134@khera.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 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: vivek@khera.org
  Subject: Re: Configuration settings for 32GB RAM server
  In-Reply-To: <320E1EF2-FC6F-428E-88CB-DB0455CE2134@khera.org>
  References: <673ECBB77DA91F47AD4902A5FD73BCE4D5ED15@mail3> <320E1EF2-FC6F-428E-88CB-DB0455CE2134@khera.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