pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alex Stapleton <alexs@advfn.com>
To: Merlin Moncure <merlin.moncure@rcsonline.com>
Cc: josh@agliodbs.com
Cc: Stuart Bishop <stuart@stuartbishop.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: Mount database on RAM disk?
Date: Sat, 9 Jul 2005 22:48:43 +0100
Message-ID: <41DED96F-84A2-436A-86C7-B3C2A3210591@advfn.com> (raw)
In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3415C2CFE@Herge.rcsinc.local>
References: <6EE64EF3AB31D5448D0007DD34EEB3415C2CFE@Herge.rcsinc.local>


On 8 Jul 2005, at 20:21, Merlin Moncure wrote:

>> Stuart,
>>
>>
>>> I'm putting together a road map on how our systems can scale as our
>>>
> load
>
>>> increases. As part of this, I need to look into setting up some fast
>>> read only mirrors of our database. We should have more than enough
>>>
> RAM
>
>>> to fit everything into memory. I would like to find out if I could
>>> expect better performance by mounting the database from a RAM disk,
>>>
> or
>
>>> if I would be better off keeping that RAM free and increasing the
>>> effective_cache_size appropriately.
>>>
>>
>> If you're accessing a dedicated, read-only system with a database
>>
> small
>
>> enough to fit in RAM, it'll all be cached there anyway, at least on
>>
> Linux
>
>> and BSD.   You won't be gaining anything by creating a ramdisk.
>>
>
>
>
> ditto windows.
>
> Files cached in memory are slower than reading straight from memory  
> but
> not nearly enough to justify reserving memory for your use.  In other
> words, your O/S is a machine with years and years of engineering
> designed best how to dole memory out to caching and various processes.
> Why second guess it?

Because sometimes it gets it wrong. The most brutal method is  
occasionally the most desirable. Even if it not the "right" way to do  
it.

> Merlin
>
> ---------------------------(end of  
> broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>




view thread (8+ messages)  latest in thread

Message-ID: <41DED96F-84A2-436A-86C7-B3C2A3210591@advfn.com>
Permalink:  ../41DED96F-84A2-436A-86C7-B3C2A3210591@advfn.com/
Also on:    postgresql.org/message-id/41DED96F-84A2-436A-86C7-B3C2A3210591@advfn.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: alexs@advfn.com, merlin.moncure@rcsonline.com, josh@agliodbs.com, stuart@stuartbishop.net
  Subject: Re: Mount database on RAM disk?
  In-Reply-To: <41DED96F-84A2-436A-86C7-B3C2A3210591@advfn.com>
  References: <6EE64EF3AB31D5448D0007DD34EEB3415C2CFE@Herge.rcsinc.local> <41DED96F-84A2-436A-86C7-B3C2A3210591@advfn.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox