Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id A555D64FFC8 for ; Thu, 30 Oct 2008 12:23:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 34631-06 for ; Thu, 30 Oct 2008 12:23:12 -0300 (ADT) X-Greylist: delayed 00:06:51.51051 by SQLgrey-1.7.6 Received: from amidala.server.telavista.net (amidala.server.telavista.net [213.239.138.194]) by postgresql.org (Postfix) with ESMTP id 50A8A650070 for ; Thu, 30 Oct 2008 12:23:12 -0300 (ADT) Received: from firewall.tecnocon.com (gateway.technocon.com [62.132.195.8]) by amidala.server.telavista.net (Postfix) with ESMTP id C877C6D7898 for ; Thu, 30 Oct 2008 16:16:11 +0100 (CET) Received: from [192.168.0.129] (unknown [192.168.0.129]) by firewall.tecnocon.com (Postfix) with ESMTP id 3C367225212 for ; Thu, 30 Oct 2008 16:16:15 +0100 (CET) Message-ID: <4909CF9C.80701@technocon.com> Date: Thu, 30 Oct 2008 16:15:40 +0100 From: Christiaan Willemsen User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Configuring for maximum memory usage Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-svmilter: C877C6D7898: result=CLEAN, action=ACCEPT, virus=-1, spam=-1, rbl=0, nbl=0, pbl=0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/118 X-Sequence-Number: 31699 Hi there, I configured OpenSolaris on our OpenSolaris Machine. Specs: 2x Quad 2.6 Ghz Xeon 64 GB of memory 16x 15k5 SAS The filesystem is configured using ZFS, and I think I have found a configuration that performs fairly well. I installed the standard PostgreSQL that came with the OpenSolaris disk (8.3), and later added support for PostGIS. All fime. I also tried to tune postgresql.conf to maximize performance and also memory usage. Since PostgreSQL is the only thing running on this machine, we want it to take full advantage of the hardware. For the ZFS cache, we have 8 GB reserved. The rest can be used by postgres. The problem is getting it to use that much. At the moment, it only uses almost 9 GB, so by far not enough. The problem is getting it to use more... I hope you can help me with working config. Here are the parameters I set in the config file: shared_buffers = 8192MB work_mem = 128MB maintenance_work_mem = 2048MB max_fsm_pages = 204800 max_fsm_relations = 2000 Database is about 250 GB in size, so we really need to have as much data as possible in memory. I hope you can help us tweak a few parameters to make sure all memory will be used.