Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id D83B32E0077 for ; Thu, 29 May 2008 12:44:10 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 15438-09 for ; Thu, 29 May 2008 12:44:03 -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 developer.postgresql.org (Postfix) with ESMTP id 053C02E0039 for ; Thu, 29 May 2008 12:43:59 -0300 (ADT) Received: from [192.168.1.5] (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 m4TFi6JI022857 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 May 2008 08:44:15 -0700 Subject: Re: 2GB or not 2GB From: "Joshua D. Drake" To: josh@agliodbs.com Cc: pgsql-performance@postgresql.org In-Reply-To: <200805281659.26945.josh@agliodbs.com> References: <200805281659.26945.josh@agliodbs.com> Content-Type: text/plain Organization: Command Prompt, Inc. Date: Thu, 29 May 2008 08:45:14 -0700 Message-Id: <1212075914.26576.8.camel@jd-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 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, 29 May 2008 08:45:18 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/369 X-Sequence-Number: 30337 On Wed, 2008-05-28 at 16:59 -0700, Josh Berkus wrote: > Folks, > shared_buffers: according to witnesses, Greg Smith presented at East that > based on PostgreSQL's buffer algorithms, buffers above 2GB would not > really receive significant use. However, Jignesh Shah has tested that on > workloads with large numbers of connections, allocating up to 10GB > improves performance. I have seen multiple production systems where upping the buffers up to 6-8GB helps. What I don't know, and what I am guessing Greg is referring to is if it helps as much as say upping to 2GB. E.g; the scale of performance increase goes down while the actual performance goes up (like adding more CPUs). > > sort_mem: My tests with 8.2 and DBT3 seemed to show that, due to > limitations of our tape sort algorithm, allocating over 2GB for a single > sort had no benefit. However, Magnus and others have claimed otherwise. > Has this improved in 8.3? I have never see work_mem (there is no sort_mem Josh) do any good above 1GB. Of course, I would never willingly use that much work_mem unless there was a really good reason that involved a guarantee of not calling me at 3:00am. > > So, can we have some test evidence here? And workload descriptions? > Its all, tune now buddy :P Sinceerely, Joshua D. Drake