Re: [GENERAL] Postgres database on RAM disk - the article in LinuxFocus

From: Peter Eisentraut <e99re41(at)DoCS(dot)UU(dot)SE>
To: phd2(at)earthling(dot)net
Cc: PostgreSQL-general <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] Postgres database on RAM disk - the article in LinuxFocus
Date: 1999-11-02 18:11:43
Message-ID: Pine.GSO.4.02A.9911021904070.19808-100000@Hermelin.DoCS.UU.SE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Last time I checked PostgreSQL already caches the whole database in memory
anyway, with sufficient resources and a proper setup of course. The writes
will not be as fast as a RAM disk since they must go through to the actual
disk. But of course putting a production database on a RAM disk is nuts in
and by itself unless you have a very sophisticated backup mechanism worked
out.

They say: "... BACKUP YOUR DATA if you change it and you need it. When the
computer reboots, any changes are lost. A cron job should do it. Have it
check every 10 minutes and see if any files have changed and backup any
changes."

This naive approach will probably only lead to tears with PostgreSQL. (And
if you have a "read-only" database, you might want to use MySQL anyway.
*** dons asbestos suit ***)

Looks more like a "How to play with your Linux kernel" article to me.

-Peter

On Tue, 2 Nov 1999, Oleg Broytmann wrote:

> Hello!
>
> This short article in LinuxFocus:
> http://www.linuxfocus.org/English/November1999/article125.html
> talks about how to use RAM disk for speeding PostgreSQL. Sometimes you
> get 50% speed increse, sometimes 10-20% (due to caching).
>
> Oleg.
> ----
> Oleg Broytmann http://members.xoom.com/phd2/ phd2(at)earthling(dot)net
> Programmers don't die, they just GOSUB without RETURN.
>
>
> ************
>
>

--
Peter Eisentraut Sernanders vaeg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 1999-11-02 18:21:35 Re: [GENERAL] users in Postgresql
Previous Message Patrick Robin 1999-11-02 18:07:04 portion of constraints regression test fails