From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Phoenix Kiula <phoenix.kiula@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: The right SHMMAX and FILE_MAX
Date: Sun, 01 May 2011 12:18:50 -0500
Message-ID: <4DBD4FAA020000250003D0C9@gw.wicourts.gov> (raw)
In-Reply-To: <BANLkTinCr_+Hs_zzHPb+tBdtuLFhrsfKdg@mail.gmail.com>
References: <BANLkTinCr_+Hs_zzHPb+tBdtuLFhrsfKdg@mail.gmail.com>
Phoenix Kiula <phoenix.kiula@gmail.com> wrote:
> Now, according to my reading in the PG manual and this list, a
> good recommended value for SHMMAX is
>
> (shared_buffers * 8192)
Where did you see that? The amount of data buffered is the number
of shared buffers * 8KB. Taking shared_buffers as a number of bytes
and multiplying by 8K makes no sense at all. Any documentation
which can be read to indicate that should be fixed.
Besides that, there is shared memory space needed besides the actual
buffered disk pages, so you're not looking at the whole picture once
you stop dealing with "bytes squared".
-Kevin
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: Kevin.Grittner@wicourts.gov, phoenix.kiula@gmail.com
Subject: Re: The right SHMMAX and FILE_MAX
In-Reply-To: <4DBD4FAA020000250003D0C9@gw.wicourts.gov>
References: <BANLkTinCr_+Hs_zzHPb+tBdtuLFhrsfKdg@mail.gmail.com> <4DBD4FAA020000250003D0C9@gw.wicourts.gov>
* 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