Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0C31F633F0C for ; Thu, 22 Jul 2010 17:55:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 21029-06 for ; Thu, 22 Jul 2010 20:55:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 4F5FB6322E8 for ; Thu, 22 Jul 2010 17:55:40 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Thu, 22 Jul 2010 15:55:38 -0500 Message-Id: <4C4869F10200002500033B8C@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Thu, 22 Jul 2010 15:55:29 -0500 From: "Kevin Grittner" To: ,"A J" Subject: Re: How much RAM is too much ? References: <819397.8724.qm@web120007.mail.ne1.yahoo.com> In-Reply-To: <819397.8724.qm@web120007.mail.ne1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.81 tagged_above=-10 required=5 tests=BAYES_05=-0.5, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/161 X-Sequence-Number: 35180 A J wrote: > Cost aside, are there any technical factors to consider before > increasing RAM (assuming the system can support it) ? Is there a > sweet spot beyond which more RAM does not help Postgres or > actually harms ? I've never heard of putting more RAM in a machine hurting performance, as long as it's the right type of RAM for that machine. On the other hand, you can easily configure PostgreSQL to allocate more RAM for specific purposes than is good. > If my database is only couple of hundred Gigs, can I not just have > RAM that big and have read from buffer all the time ? Sure, as long as you allow enough extra for the OS and all other processes. If you're looking at hundreds of GB of RAM on a box, plan on letting the OS use the vast majority of that for caching. This doesn't obviate the need for a RAID controller with its own BBU RAM if you want write performance to be good. -Kevin