Re: Extreme high load averages

From: Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)in>
To: Postgresql Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Extreme high load averages
Date: 2003-07-06 10:34:48
Message-ID: 200307061604.48919.shridhar_daithankar@nospam.persistent.co.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice pgsql-performance

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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Nabil Sayegh 2003-07-06 11:43:53 Re: Replace into...
Previous Message Martin Foster 2003-07-06 10:31:52 Re: [PERFORM] Extreme high load averages

Browse pgsql-performance by date

  From Date Subject
Next Message Cornelia Boenigk 2003-07-06 13:05:37 PostgreSQL banner
Previous Message Martin Foster 2003-07-06 10:31:52 Re: [PERFORM] Extreme high load averages