From: Mike Benoit <ipso@snappymail.ca>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: stuff@opensourceonline.com
Cc: pgsql-performance@postgresql.org
Subject: Re: preloading indexes
Date: Wed, 03 Nov 2004 16:50:42 -0800
Message-ID: <1099529442.18904.4.camel@ipso.snappymail.ca> (raw)
In-Reply-To: <16805.1099515189@sss.pgh.pa.us>
References: <20041103201948.HWSQ12834.fed1rmmtao10.cox.net@CYGNUS>
<16805.1099515189@sss.pgh.pa.us>
If your running Linux, and kernel 2.6.x, you can try playing with the:
/proc/sys/vm/swappiness
setting.
My understanding is that:
echo "0" > /proc/sys/vm/swappiness
Will try to keep all in-use application memory from being swapped out
when other processes query the disk a lot.
Although, since PostgreSQL utilizes the disk cache quite a bit, this may
not help you.
On Wed, 2004-11-03 at 15:53 -0500, Tom Lane wrote:
> <stuff@opensourceonline.com> writes:
> > The caching appears to disappear overnight.
>
> You've probably got cron jobs that run late at night and blow out your
> kernel disk cache by accessing a whole lot of non-Postgres stuff.
> (A nightly disk backup is one obvious candidate.) The most likely
> solution is to run some cron job a little later to exercise your
> database and thereby repopulate the cache with Postgres files before
> you get to work ;-)
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
--
Mike Benoit <ipso@snappymail.ca>
Attachments:
signature.asc (application/pgp-signature, 188B) download
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: ipso@snappymail.ca, tgl@sss.pgh.pa.us, stuff@opensourceonline.com
Subject: Re: preloading indexes
In-Reply-To: <1099529442.18904.4.camel@ipso.snappymail.ca>
* 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