From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Cc: Stuart Bishop <stuart@stuartbishop.net>
Subject: Re: Mount database on RAM disk?
Date: Fri, 8 Jul 2005 10:22:01 -0700
Message-ID: <200507081022.01680.josh@agliodbs.com> (raw)
In-Reply-To: <42CDD7B8.6050109@stuartbishop.net>
References: <42CDD7B8.6050109@stuartbishop.net>
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.
BTW, effective_cache_size doesn't determine the amount of caching done. It
just informs the planner about how much db is likely to be cached. The
actual caching is up to the OS/filesystem.
--
--Josh
Josh Berkus
Aglio Database Solutions
San Francisco
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: josh@agliodbs.com, stuart@stuartbishop.net
Subject: Re: Mount database on RAM disk?
In-Reply-To: <200507081022.01680.josh@agliodbs.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