pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Christopher Browne <cbbrowne@acm.org>
To: pgsql-performance@postgresql.org
Subject: Re: Mount database on RAM disk?
Date: Sun, 10 Jul 2005 00:54:37 -0400
Message-ID: <m33bqnl0qa.fsf@mobile.int.cbbrowne.com> (raw)
References: <6EE64EF3AB31D5448D0007DD34EEB3415C2CFE@Herge.rcsinc.local>
<41DED96F-84A2-436A-86C7-B3C2A3210591@advfn.com>
> On 8 Jul 2005, at 20:21, Merlin Moncure wrote:
>> 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.
The fact that cache allows reads to come from memory means that for
read-oriented activity, you're generally going to be better off
leaving RAM as "plain ordinary system memory" so that it can
automatically be drawn into service as cache.
Thus, the main reason to consider using a RAM-disk is the fact that
update times are negligible as there is not the latency of a
round-trip to the disk.
That would encourage its use for write-heavy tables, with the STRONG
caveat that a power outage could readily destroy the database :-(.
--
let name="cbbrowne" and tld="acm.org" in String.concat "@" [name;tld];;
http://cbbrowne.com/info/rdbms.html
Rules of the Evil Overlord #153. "My Legions of Terror will be an
equal-opportunity employer. Conversely, when it is prophesied that no
man can defeat me, I will keep in mind the increasing number of
non-traditional gender roles." <http://www.eviloverlord.com/;
view thread (8+ messages)
Message-ID: <m33bqnl0qa.fsf@mobile.int.cbbrowne.com> Permalink: ../m33bqnl0qa.fsf@mobile.int.cbbrowne.com/ Also on: postgresql.org/message-id/m33bqnl0qa.fsf@mobile.int.cbbrowne.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 using the --to and --cc options: reply via email To: pgsql-performance@postgresql.org Cc: cbbrowne@acm.org Subject: Re: Mount database on RAM disk? In-Reply-To: <m33bqnl0qa.fsf@mobile.int.cbbrowne.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