From: Jim C. Nasby <jim@nasby.net>
To: Mark Lonsdale <mark.lonsdale@wysdm.com>
Cc: Joshua D. Drake <jd@commandprompt.com>
Cc: Richard Huxton <dev@archonet.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Configuration Issue ?
Date: Thu, 26 Oct 2006 14:08:38 -0500
Message-ID: <20061026190837.GC26892@nasby.net> (raw)
In-Reply-To: <673ECBB77DA91F47AD4902A5FD73BCE4BA3AC6@mail3>
References: <673ECBB77DA91F47AD4902A5FD73BCE4BA3AC6@mail3>
On Wed, Oct 25, 2006 at 05:31:29PM -0400, Mark Lonsdale wrote:
> Set my sort_mem to 8192
You really need to look at what your workload is before trying to tweak
sort_mem. With 8G of memory, sort_mem=400000 (~400MB) with only 10
active connections might be a good setting. It's usually better to get a
sort to fit into memory than spill to disk. Since you never mentioned
what kind of workload you have or how many active connections there are,
it's pretty much impossible to make a recommendation on that setting.
--
Jim Nasby jim@nasby.net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)
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: jim@nasby.net, mark.lonsdale@wysdm.com, jd@commandprompt.com, dev@archonet.com
Subject: Re: Configuration Issue ?
In-Reply-To: <20061026190837.GC26892@nasby.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