From: Guillaume Lelarge <guillaume@lelarge.info>
To: Christian Rengstl <Christian.Rengstl@klinik.uni-regensburg.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: Optimizing PostgreSQL for Windows
Date: Tue, 30 Oct 2007 20:21:05 +0100
Message-ID: <47278421.6010906@lelarge.info> (raw)
In-Reply-To: <4727402E.90AD.0080.0@klinik.uni-regensburg.de>
References: <4727402E.90AD.0080.0@klinik.uni-regensburg.de>
Christian Rengstl a écrit :
> My OS is Windows 2003 with 4GB Ram and Xeon Duo with 3.2 GHz;
> shared_buffers is set to 32MB (as I read it should be fairly low on
> Windows) and work_mem is set to 2500MB, but nevertheless the query takes
> about 38 seconds to finish. The table "table1" contains approx. 3
> million tuples and table2 approx. 500.000 tuples. If anyone could give
> an advice on either how to optimize the settings in postgresql.conf or
> anything else to make this query run faster, I really would appreciate.
>
32MB for shared_buffers seems really low to me but 2500MB for work_mem
seems awfully high. The highest I've seen for work_mem was something
like 128MB. I think the first thing you have to do is to really lower
work_mem. Something like 64MB seems a better bet at first.
Regards.
--
Guillaume.
http://www.postgresqlfr.orghttp://dalibo.com
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: guillaume@lelarge.info, Christian.Rengstl@klinik.uni-regensburg.de
Subject: Re: Optimizing PostgreSQL for Windows
In-Reply-To: <47278421.6010906@lelarge.info>
* 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