Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 47A0064FDE5 for ; Thu, 30 Oct 2008 12:45:19 -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 41688-01-2 for ; Thu, 30 Oct 2008 12:45:11 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 55D2E650214 for ; Thu, 30 Oct 2008 12:45:08 -0300 (ADT) Received: from [192.168.1.226] (or-69-34-217-90.sta.embarqhsd.net [69.34.217.90]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m9UFnMvc001553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 30 Oct 2008 08:49:22 -0700 Message-ID: <4909D688.1090806@commandprompt.com> Date: Thu, 30 Oct 2008 08:45:12 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Christiaan Willemsen CC: pgsql-performance@postgresql.org Subject: Re: Configuring for maximum memory usage References: <4909CF9C.80701@technocon.com> In-Reply-To: <4909CF9C.80701@technocon.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Thu, 30 Oct 2008 08:49:22 -0700 (PDT) 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/120 X-Sequence-Number: 31701 Christiaan Willemsen wrote: > Hi there, > 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. PostgreSQL is only going to use what it needs. It relies on the OS for much of the caching etc... > > Here are the parameters I set in the config file: > > shared_buffers = 8192MB I wouldn't take this any higher. > work_mem = 128MB This is quite high but it might be o.k. depending on what you are doing. > maintenance_work_mem = 2048MB This is only used during maintenance so you won't see this much. > max_fsm_pages = 204800 > max_fsm_relations = 2000 This uses very little memory. > > 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. You are missing effective_cache_size. Try setting that to 32G. You also didn't mention checkpoint_segments (which isn't memory but still important) and default_statistics_target (which isn't memory but still important). Joshua D. Drake > > > >