From: Rodrigo Moreno <rodrigo.miguel@terra.com.br>
To: pgsql-performance@postgresql.org
Subject: How to improve postgres performace
Date: Mon, 18 Apr 2005 11:36:01 -0300
Message-ID: <20050418143603.EE9F613001B@cuenca.terra.com.br> (raw)
Hi all,
Some months ago i post a similar problem here i it was solved by running
vaccumdb time by time.
So, when i started using the postgres, i never been used the vacuumdb, and
after 2 months i started using once a week, after few weeks, i tried once a
day and now twice a day.
At this weekend i have started to use pg_autovacuum with default settings.
I really worried about that, because it's no enough anymore, and users claim
about performace. But running the vacuumdb full, everthing starts to run
better again, so i think the problem is not related to a specific query.
What I can do to check what I have change to get more performance ?
Could I use vacuum verbose to check what is going on ? So, how ?
Most all the time, even user querying the server the machine is 96%-100%
idle. The discs are SCSI, FreeBSD 5.3, the size of database is 1.1Gb, max 30
connections and 10 concurrent conections. My server have 512Mb Ram and 256Mb
has changed to SHMAX. There is max 1000 inserted/excluded/Updated row by
day.
These are my kernel params:
--------------------------
options SHMMAXPGS=65536
options SEMMNI=40
options SEMMNS=240
options SEMUME=40
options SEMMNU=120
Postgresql.conf non-default settings
------------------------------------
tcpip_socket = true
max_connections = 30
shared_buffers = 1024
sort_mem = 2048
vacuum_mem = 16384
wal_buffers = 16
checkpoint_segments = 5
effective_cache_size = 16384
random_page_cost = 2
stats_start_collector = true
stats_row_level = true
I follow the most of all discussions in this group and tried myself change
the parameters, but now, I don't know more what to do to get better
performance.
Thanks a Lot
Rodrigo Moreno
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: rodrigo.miguel@terra.com.br
Subject: Re: How to improve postgres performace
In-Reply-To: <20050418143603.EE9F613001B@cuenca.terra.com.br>
* 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