pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Domenico Sgarbossa <domenico@xtecnica.com>
To: pgsql-performance@postgresql.org
Subject: Re: [BULK] Problems with vacuum!
Date: Fri, 18 Jun 2004 15:54:20 +0200
Message-ID: <011101c4553b$c1967130$70c8007e@xtecnica.it> (raw)
References: <003c01c44fbd$c84a6af0$2500fa0a@CardServices.TCI.com>
	<004c01c44fc3$d7cdeaf0$70c8007e@xtecnica.it>
	<87pt8616i3.fsf@asmodeus.mcnaught.org>
	<1087226647.1775.14.camel@kaos>

The problems still remains...
I've tried to change shmax to 128 mb (i've got 2 GB of ram),
then the others parameter are set as follow:

shared_buffers = 8096        # 2*max_connections, min 16
max_fsm_relations = 500    # min 10, fsm is free space map
max_fsm_pages = 15000      # min 1000, fsm is free space map
max_locks_per_transaction = 64 # min 10
wal_buffers = 8            # min 4

#
#       Non-shared Memory Sizes
#
sort_mem = 1024          # min 32
vacuum_mem = 16384          # min 1024

I've scheduled 2 tasks nightly:

vacuumdb --analyze dbname
pg_dump -x -f dbname.dmp dbname

so when the users go home, i've got something like 15/20000kb free ram, the
rest is cached and 0kb of swap...
It seems that when pg_dump starts the cached memory isn't released so the
system begin to swap, then the system
does the same with vacuum..... even if there 1.8 gb of cached ram (that
is'nt released anymore....) very strange!

anyone could explain mw why this happend?


Distinti Saluti

Sgarbossa Domenico
X Tecnica S.R.L.
www.xtecnica.com
Tel: 049/9409154 - 049/5970297
Fax: 049/9400288







view thread (11+ messages)  latest in thread

Message-ID: <011101c4553b$c1967130$70c8007e@xtecnica.it>
Permalink:  ../011101c4553b$c1967130$70c8007e@xtecnica.it/
Also on:    postgresql.org/message-id/011101c4553b$c1967130$70c8007e@xtecnica.it

 · 

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: domenico@xtecnica.com
  Subject: Re: [BULK] Problems with vacuum!
  In-Reply-To: <011101c4553b$c1967130$70c8007e@xtecnica.it>

* 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