From: Steve <cheetah@tanabi.org>
To: Greg Smith <gsmith@gregsmith.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Question about memory allocations
Date: Thu, 12 Apr 2007 23:57:24 -0400 (EDT)
Message-ID: <Pine.GSO.4.64.0704122355360.17955@kittyhawk.tanabi.org> (raw)
In-Reply-To: <Pine.GSO.4.64.0704122238580.29657@westnet.com>
References: <233A9987-ABA5-4491-A304-FDA1F8FCD962@gmail.com>
<14019.1176155022@sss.pgh.pa.us>
<22512E5C-A60F-43E7-A370-257F7AF956FD@gmail.com>
<16374.1176171185@sss.pgh.pa.us>
<D14BB823-DA04-453C-AD70-248B34F1307B@gmail.com>
<25200.1176213242@sss.pgh.pa.us>
<FCEF7DE2-913F-4C36-B117-8363EDE39BF3@gmail.com>
<26925.1176221294@sss.pgh.pa.us>
<Pine.GSO.4.64.0704101458290.17955@kittyhawk.tanabi.org>
<Pine.GSO.4.64.0704122238580.29657@westnet.com>
> I didn't notice anyone address this for you yet. There is a tool in
> contrib/pg_buffercache whose purpose in life is to show you what the shared
> buffer cache has inside it. The documentation in that directory leads
> through installing it. The additional variable you'll likely never know is
> what additional information is inside the operating system's buffer cache.
Okay -- thanks! I'll take a look at this.
>> # Leaving this low makes the DB complain, but I'm not sure what's #
>> reasonable.
>> checkpoint_segments = 128
>
> That's a reasonable setting for a large server. The main downside to setting
> it that high is longer recovery periods after a crash, but I doubt that's a
> problem for you if you're so brazen as to turn off fsync.
Hahaha yeah. It's 100% assumed that if something goes bad we're
restoring from the previous day's backup. However because the DB is read
only for -most- of the day and only read/write at night it's acceptable
risk for us anyway. But good to know that's a reasonable value.
Steve
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: cheetah@tanabi.org, gsmith@gregsmith.com
Subject: Re: Question about memory allocations
In-Reply-To: <Pine.GSO.4.64.0704122355360.17955@kittyhawk.tanabi.org>
References: <233A9987-ABA5-4491-A304-FDA1F8FCD962@gmail.com> <14019.1176155022@sss.pgh.pa.us> <22512E5C-A60F-43E7-A370-257F7AF956FD@gmail.com> <16374.1176171185@sss.pgh.pa.us> <D14BB823-DA04-453C-AD70-248B34F1307B@gmail.com> <25200.1176213242@sss.pgh.pa.us> <FCEF7DE2-913F-4C36-B117-8363EDE39BF3@gmail.com> <26925.1176221294@sss.pgh.pa.us> <Pine.GSO.4.64.0704101458290.17955@kittyhawk.tanabi.org> <Pine.GSO.4.64.0704122238580.29657@westnet.com> <Pine.GSO.4.64.0704122355360.17955@kittyhawk.tanabi.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