From: Marius Andreiana <mandreiana@rdslink.ro>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: [PERFORM] NOT IN query takes forever
Date: Wed, 04 Aug 2004 08:40:52 +0300
Message-ID: <1091598052.2647.7.camel@marte.biciclete.ro> (raw)
In-Reply-To: <410FCB3B.5050300@bigfoot.com>
References: <6EE64EF3AB31D5448D0007DD34EEB34101AF1A@Herge.rcsinc.local>
<1091548963.6915.2.camel@marte.biciclete.ro>
<410FCB3B.5050300@bigfoot.com>
On Tue, 2004-08-03 at 19:28 +0200, Gaetano Mendola wrote:
> > With
> > shared_buffers = 3000 # min 16, at least max_connections*2, 8KB each
> > sort_mem = 128000 # min 64, size in KB
>
> 128 MB for sort_mem is too much, consider that in this way each backend can
> use 128 MB for sort operations...
> Also shared_buffers = 3000 means 24MB that is not balanced with the 128MB
> needed for sort...
> Try to bump up 128 MB for shared_buffer ( may be you need to instruct your
> OS to allow that ammount of shared memory usage ) and 24MB for sort_mem.
Thanks for the advice. I increased shmmax to allow shared_buffers to be
128mb and set sort_mem to 24mb.
--
Marius Andreiana
Galuna - Solutii Linux in Romania
http://www.galuna.ro
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: mandreiana@rdslink.ro, pgsql-general@postgresql.org
Subject: Re: [PERFORM] NOT IN query takes forever
In-Reply-To: <1091598052.2647.7.camel@marte.biciclete.ro>
* 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