pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: Shane|SkinnyCorp <shanew@skinnycorp.com>
Subject: Re: PLEASE GOD HELP US!
Date: Fri, 01 Oct 2004 21:13:55 +0200
Message-ID: <415DAC73.6040404@bigfoot.com> (raw)
In-Reply-To: <002801c4a7d0$66797ad0$3402a8c0@shanepc>
References: <002801c4a7d0$66797ad0$3402a8c0@shanepc>

Shane | SkinnyCorp wrote:
 >  # PGSQL Version 7.4.2

Upgrade to 7.4.5


 > #---------------------------------------------------------------------------
 >  # RESOURCE USAGE (except WAL)
 >
 > #---------------------------------------------------------------------------
 >  # - Memory -
 >  shared_buffers = 8192
 >  sort_mem = 8192
 >  vacuum_mem = 127072


Here vacuum_mem is too high, memory wasted, if you do
regular vacuum or you use the autovacuum daemon then
usualy 32MB are enough


 >  # - Free Space Map -
 >  max_fsm_pages = 50000           # min max_fsm_relations*16, 6 bytes each
 >  max_fsm_relations = 1000        # min 100, ~50 bytes each

you didn't show us the result of

vacuum full verbose


so I can not tell you if they are enough or not.


 >  enable_seqscan = false

enable_seqscan = true

Do you think that an index scan is always worst then a seqscan ?


 >  random_page_cost = 4            # units are one sequential page fetch cost

decrease this value to 2.5

 >  # - Query/Index Statistics Collector -
 >
 >  stats_start_collector = false
 >  stats_command_string = false
 >  stats_block_level = false
 >  stats_row_level = false
 >  stats_reset_on_server_start = false

I suggest you to start the collectors

stats_start_collector = true
stats_command_string = true
stats_block_level = true
stats_row_level = true
stats_reset_on_server_start = false



Regards
Gaetano Mendola
















view thread (33+ messages)  latest in thread

Message-ID: <415DAC73.6040404@bigfoot.com>
Permalink:  ../415DAC73.6040404@bigfoot.com/
Also on:    postgresql.org/message-id/415DAC73.6040404@bigfoot.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 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-admin@postgresql.org
  Cc: mendola@bigfoot.com, shanew@skinnycorp.com
  Subject: Re: PLEASE GOD HELP US!
  In-Reply-To: <415DAC73.6040404@bigfoot.com>
  References: <002801c4a7d0$66797ad0$3402a8c0@shanepc> <415DAC73.6040404@bigfoot.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