From: John R Pierce <pierce@hogranch.com>
To: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #7494: WAL replay speed depends heavily on the shared_buffers size
Date: Wed, 15 Aug 2012 14:24:42 -0700
Message-ID: <502C139A.1080408@hogranch.com> (raw)
In-Reply-To: <CAP93muW3v30gJAe=_Q9eZx9SqhNOXZWd1HKpHs7jvX-_ZOa_eg@mail.gmail.com>
References: <E1T1aYk-0007Jk-3h@wrigleys.postgresql.org>
<20120815133622.GE25473@momjian.us>
<502BA6BD.5070308@hogranch.com>
<CAP93muW3v30gJAe=_Q9eZx9SqhNOXZWd1HKpHs7jvX-_ZOa_eg@mail.gmail.com>
On 08/15/12 9:02 AM, Valentine Gogichashvili wrote:
>
> On Wed, Aug 15, 2012 at 3:40 PM, John R Pierce <pierce@hogranch.com
> <mailto:pierce@hogranch.com>> wrote:
>
> On 08/15/12 6:36 AM, Bruce Momjian wrote:
>
> We warn against making shared buffers > 8GB, and this is
> perhaps another
> good reason.
>
>
> I generally keep it at no more than 2gb as I've never found any
> performance improvements going higher, on systems with 48gb ram,
> and had more than a few performance degradations with larger
> shared buffers.
>
>
> we see up to 10x performance increase with bigger shared_buffers in
> case of this database. Main database entities are about 20GB in size
> and we see that performance drops considerably when running with
> smaller shared_buffers smaller then that.
>
do you adjust effective_cache_size accordingly? with the smaller
shared_buffers, we typically find at least half or more of physical
memory is available as OS level disk cache, as shown by the 'cached'
output of 'free' or whatever after the system has been running long
enough to fully populate its disk cache. this parameter has a
significant performance impact on the planner's estimation of the best
way of executing given queries. also, especially if you're executing
queries that process a lot of rows and have to do sorts and such,
increasing work_mem is quite helpful.
--
john r pierce N 37, W 122
santa cruz ca mid-left coast
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-bugs@postgresql.org
Cc: pierce@hogranch.com
Subject: Re: BUG #7494: WAL replay speed depends heavily on the shared_buffers size
In-Reply-To: <502C139A.1080408@hogranch.com>
References: <E1T1aYk-0007Jk-3h@wrigleys.postgresql.org> <20120815133622.GE25473@momjian.us> <502BA6BD.5070308@hogranch.com> <CAP93muW3v30gJAe=_Q9eZx9SqhNOXZWd1HKpHs7jvX-_ZOa_eg@mail.gmail.com> <502C139A.1080408@hogranch.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