From: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
To: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: Extreme high load averages
Date: Sun, 6 Jul 2003 16:04:48 +0530
Message-ID: <200307061604.48919.shridhar_daithankar@nospam.persistent.co.in> (raw)
In-Reply-To: <3F07F94D.50406@ethereal-realms.org>
References: <3F083CCA.31144.7468C@localhost>
<3F07F94D.50406@ethereal-realms.org>
On Sunday 06 July 2003 15:56, Martin Foster wrote:
> effective_cache_size seems interesting, though the description is
> somewhat lacking. Is this related to the swap partition and how much of
> it will be used by PostgreSQL? If I am correct, this should be fairly
> low? Martin Foster
It gives hint to psotgresql how much file system cache is available in the
system.
You have 1GB memory and your application requirement does not exceed 400MB. So
OS can use roughly 600MB for file system cache. In that case you can set this
parameter to 400MB cache to leave room for other application in FS cache.
IIRC, BSD needs sysctl tuning to make more memory available for FS cache other
wise they max out at 300MB.
Roughly this setting should be (total memory -application
requirement)*(0.7/0.8)
I guess that high kernel load you are seeing due to increased interaction
between postgresql and OS when data is swapped to/fro in shared memory. If OS
cache does well, postgresql should reduce this interaction as well.
BTW, since you have IDE disks, heavy disk activity can eat CPU as well. Is
your disk bandwidth totally maxed out? Check with vmstat or whatever
equivalent you have on BSD.
Shridhar
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: shridhar_daithankar@persistent.co.in
Subject: Re: Extreme high load averages
In-Reply-To: <200307061604.48919.shridhar_daithankar@nospam.persistent.co.in>
References: <3F083CCA.31144.7468C@localhost> <3F07F94D.50406@ethereal-realms.org> <200307061604.48919.shridhar_daithankar@nospam.persistent.co.in>
* 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