From: Josh Trutwin <josh@trutwins.homeip.net>
To: pgsql-performance@postgresql.org
Subject: Tuning Help - What did I do wrong?
Date: Thu, 4 Oct 2007 10:28:04 -0500
Message-ID: <20071004102804.3418912e@joplin.trutwins.homeip.net> (raw)
We have a pretty busy linux server running postgres 8.1.4, waiting to
upgrade until 8.3 to avoid dump/restoring twice.
# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 3704217600 3592069120 112148480 0 39460864 2316271616
Swap: 2516918272 270336 2516647936
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.00GHz
stepping : 3
cpu MHz : 2992.795
The postgresql.conf was basically the default so I decided to
increase the cache size and a couple paramaters to make more use of
that memory - here's what I did:
shared_buffers = 16384 (was 1000)
work_mem = 16384 (was 1024)
wal_buffers = 24 (was 8)
checkpoint_segments = 5 (was 3)
effective_cache_size = 10000 (was 1000)
stats_command_string = on (was off)
stats_block_level = on (was off)
stats_row_level = on (was off)
In order to do this I had to change /proc/sys/kernel/shmmax to
536870912 (don't have /etc/sysctl)
Also, the entire cluster gets vacuumed analyzed nightly.
After making these changes, the performance on the server actually
worsened. I slowly backed off on some of the paramaters but didn't
seem to help.
Wondering if those changes are silly? For a server this size I
didn't think this would be problematic.
Thank you,
Josh
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: josh@trutwins.homeip.net
Subject: Re: Tuning Help - What did I do wrong?
In-Reply-To: <20071004102804.3418912e@joplin.trutwins.homeip.net>
References: <20071004102804.3418912e@joplin.trutwins.homeip.net>
* 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