Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 706129FB429 for ; Fri, 13 Apr 2007 15:53:37 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 92430-08 for ; Fri, 13 Apr 2007 15:53:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.net-domino.com (www.net-domino.com [74.208.11.96]) by postgresql.org (Postfix) with ESMTP id 0B0249FB46E for ; Fri, 13 Apr 2007 15:53:33 -0300 (ADT) Received: from [127.0.0.1] (u15245314.onlinehome-server.com [74.208.11.96]) by mail.net-domino.com (8.13.7/8.13.6) with ESMTP id l3DIrW8m021862 for ; Fri, 13 Apr 2007 14:53:33 -0400 Message-ID: <461FD1C1.8040502@mochima.com> Date: Fri, 13 Apr 2007 14:53:53 -0400 From: Carlos Moreno User-Agent: Thunderbird 1.5.0.10 (X11/20070301) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Question about memory allocations References: <233A9987-ABA5-4491-A304-FDA1F8FCD962@gmail.com> <14019.1176155022@sss.pgh.pa.us> <22512E5C-A60F-43E7-A370-257F7AF956FD@gmail.com> <16374.1176171185@sss.pgh.pa.us> <25200.1176213242@sss.pgh.pa.us> <26925.1176221294@sss.pgh.pa.us> <1176453355.609.4.camel@hippy.mcmillan.net.nz> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Added-Header: Sample_milter accepted message X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/296 X-Sequence-Number: 24173 Steve wrote: >> >> Common wisdom in the past has been that values above a couple of hundred >> MB will degrade performance. The annotated config file talks about setting shared_buffers to a third of the available memory --- well, it says "it should be no more than 1/3 of the total amount of memory" (quoting off the top of my head). Don't recall seeing any warning about not exceeding a few hundred megabytes. My eternal curiosity when it comes to this memory and shared_buffers thing: How does PG take advantage of the available memory? I mean, if I have a machine with, say, 4 or 8GB of memory, how will those GBs would end up being used? They just do?? (I mean, I would find that a vaild answer; but I ask, because this configuration parameters stuff makes me think that perhaps PG does not simply use whatever memory is in there, but it has to go through the parameters in the config file to allocate whatever it has to use). So, is it just like that? We put more memory and PG will automatically make use of it? Carlos --