From: William Yu <wyu@talisys.com>
To: pgsql-performance@postgresql.org
Subject: Re: Reading data in bulk - help?
Date: Wed, 10 Sep 2003 15:08:48 -0700
Message-ID: <bjo7db$1v53$1@news.hub.org> (raw)
In-Reply-To: <B82EC107-E3D1-11D7-AAEC-000393011B1A@bangjafwac.com>
References: <51478.129.178.88.66.1063194442.squirrel@mail2.fbab.net>
<B82EC107-E3D1-11D7-AAEC-000393011B1A@bangjafwac.com>
> 1) Memory - clumsily adjusted shared_buffer - tried three values: 64,
> 128, 256 with no discernible change in performance. Also adjusted,
> clumsily, effective_cache_size to 1000, 2000, 4000 - with no discernible
> change in performance. I looked at the Admin manual and googled around
> for how to set these values and I confess I'm clueless here. I have no
> idea how many kernel disk page buffers are used nor do I understand what
> the "shared memory buffers" are used for (although the postgresql.conf
> file hints that it's for communication between multiple connections).
> Any advice or pointers to articles/docs is appreciated.
The standard procedure is 1/4 of your memory for shared_buffers. Easiest
way to calculate would be ###MB / 32 * 1000. E.g. if you have 256MB of
memory, your shared_buffers should be 256 / 32 * 1000 = 8000.
The remaining memory you have leftover should be "marked" as OS cache
via the effective_cache_size setting. I usually just multiply the
shared_buffers value by 3 on systems with a lot of memory. With less
memory, OS/Postgres/etc takes up a larger percentage of memory so values
of 2 or 2.5 would be more accurate.
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: wyu@talisys.com
Subject: Re: Reading data in bulk - help?
In-Reply-To: <bjo7db$1v53$1@news.hub.org>
References: <51478.129.178.88.66.1063194442.squirrel@mail2.fbab.net> <B82EC107-E3D1-11D7-AAEC-000393011B1A@bangjafwac.com> <bjo7db$1v53$1@news.hub.org>
* 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