Skip site navigation (1) Skip section navigation (2)

Re: How much RAM is too much ?

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-admin(at)postgresql(dot)org>,"A J" <s5aly(at)yahoo(dot)com>
Subject: Re: How much RAM is too much ?
Date: 2010-07-22 20:55:29
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
A J <s5aly(at)yahoo(dot)com> 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.

In response to

pgsql-admin by date

Next:From: Scott MarloweDate: 2010-07-22 21:03:06
Subject: Re: How much RAM is too much ?
Previous:From: Kevin GrittnerDate: 2010-07-22 20:48:33
Subject: Re: Restore a backup to a different disk?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group