pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sachchida Ojha <sojha@secure-elements.com>
To: Michael Glaesemann <grzm@seespotcode.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: Autovacuum is running forever
Date: Tue, 21 Aug 2007 17:37:59 -0400
Message-ID: <E099DB9EF394534CBA0F62ED03CF3BBF05FDBF1F@EXVS01.IceMAIL.com> (raw)
In-Reply-To: <C927A262-C7B0-4003-ABAE-570256F76B16@seespotcode.net>

Total RAM in the system is 2GB 

#-----------------------------------------------------------------------
----
# AUTOVACUUM PARAMETERS
#-----------------------------------------------------------------------
----

vacuum_cost_delay                               = 200
# 0-1000 milliseconds
vacuum_cost_page_hit                    = 1
# 0-10000 credits
vacuum_cost_page_miss                   = 10                    #
0-10000 credits
vacuum_cost_page_dirty                  = 20                    #
0-10000 credits
vacuum_cost_limit                               = 200
# 0-10000 credits
autovacuum                                              = on
autovacuum_naptime                              = 3600
#autovacuum_vacuum_threshold    = 1000
#autovacuum_analyze_threshold   = 500
#autovacuum_vacuum_scale_factor         = 0.4
#autovacuum_analyze_scale_factor = 0.2
#autovacuum_vacuum_cost_delay   = -1
#autovacuum_vacuum_cost_limit   = -1

Some other parameter

max_connections                                 = 350
shared_buffers                          = 400MB                 # set to
16 MB min 16 or max_connections*2, 8KB each
temp_buffers                            = 8MB                   # min
100, 8KB each
max_prepared_transactions       = 5                             # can be
0 or more
work_mem                                        = 4MB
# min 64, size in KB
maintenance_work_mem            = 256MB                 # min 1024, size
in KB
max_stack_depth                         = 2048                  # min
100, size in KB
max_fsm_pages                           = 2000000               # min
max_fsm_relations*16, 6 bytes each
max_fsm_relations                       = 1000                  # min
100, ~70 bytes each
max_files_per_process           = 1000                  # min 25
bgwriter_delay                          = 200                   #
10-10000 milliseconds between rounds
bgwriter_lru_percent            = 1.0                   # 0-100% of LRU
buffers scanned/round
bgwriter_lru_maxpages           = 5                             # 0-1000
buffers max written/round
bgwriter_all_percent            = 0.333                 # 0-100% of all
buffers scanned/round
bgwriter_all_maxpages           = 5                             # 0-1000
buffers max written/round 


Regards
Sachchida


-----Original Message-----
From: Michael Glaesemann [mailto:grzm@seespotcode.net] 
Sent: Tuesday, August 21, 2007 5:36 PM
To: Sachchida Ojha
Cc: pgsql-performance@postgresql.org
Subject: Re: [PERFORM] Autovacuum is running forever


On Aug 21, 2007, at 16:26 , Sachchida Ojha wrote:
> In my OLTP system, we are inserting, updating and deleting the data 
> every second.
>
> Autovacuum started and never finished slowing down the whole system.
There's the possibility that your autovacuum settings aren't aggressive
enough for your system, so it's never able to catch up.  
Without knowing details it's hard to say for certain. What are your
autovacuum settings and other details about the load on your system?

Michael Glaesemann
grzm seespotcode net





view thread (13+ messages)  latest in thread

Message-ID: <E099DB9EF394534CBA0F62ED03CF3BBF05FDBF1F@EXVS01.IceMAIL.com>
Permalink:  ../E099DB9EF394534CBA0F62ED03CF3BBF05FDBF1F@EXVS01.IceMAIL.com/
Also on:    postgresql.org/message-id/E099DB9EF394534CBA0F62ED03CF3BBF05FDBF1F@EXVS01.IceMAIL.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-performance@postgresql.org
  Cc: sojha@secure-elements.com, grzm@seespotcode.net
  Subject: Re: Autovacuum is running forever
  In-Reply-To: <E099DB9EF394534CBA0F62ED03CF3BBF05FDBF1F@EXVS01.IceMAIL.com>
  References: <C927A262-C7B0-4003-ABAE-570256F76B16@seespotcode.net> <E099DB9EF394534CBA0F62ED03CF3BBF05FDBF1F@EXVS01.IceMAIL.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