Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 2477C64FD4A; Mon, 15 Dec 2008 19:32:40 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 76132-07; Mon, 15 Dec 2008 19:32:36 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 76EA464FCBE; Mon, 15 Dec 2008 19:32:36 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id mBFNWaa26314; Mon, 15 Dec 2008 18:32:36 -0500 (EST) From: Bruce Momjian Message-Id: <200812152332.mBFNWaa26314@momjian.us> Subject: Re: [ADMIN] shared_buffers and shmmax In-Reply-To: <3bd4182ebf79bc4a171f08d03d2edb2f@biglumber.com> To: Greg Sabino Mullane Date: Mon, 15 Dec 2008 18:32:36 -0500 (EST) CC: pgsql-docs@postgresql.org, pgsql-hackers@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/6 X-Sequence-Number: 5013 I have added this TODO item: Rationalize the discrepancy between settings that use values in bytes and SHOW that returns the object count * http://archives.postgresql.org/pgsql-docs/2008-07/msg00007.php --------------------------------------------------------------------------- Greg Sabino Mullane wrote: [ There is text before PGP section. ] > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: RIPEMD160 > NotDashEscaped: You need GnuPG to verify this message > > > >> shared_buffers is in disk block size, typically 8K > > > The table the OP is looking at (table 17.2 in the 8.3 docs) predates > > the ability to specify shared_buffers in KB or MB instead of > > number-of-buffers. I agree it's not entirely obvious that what it > > means is "multiply your setting in KB/MB by 8400/8192". Anybody have > > an idea how to clarify things? > > Bite the bullet and start showing the buffer settings as a pure number of bytes > everywhere, and get rid of the confusing '8kB' unit in pg_settings? Things like > this don't help our cause: > > test=# show shared_buffers; > shared_buffers > ---------------- > 24MB > (1 row) > > test=# set temp_buffers = '24MB'; > SET > > test=# show temp_buffers; > temp_buffers > -------------- > 3072 > > test=# select name, setting from pg_settings where name ~ 'buffers'; > name | setting > ----------------+--------- > shared_buffers | 3072 > temp_buffers | 3072 > wal_buffers | 8 > > test=# show wal_buffers; > wal_buffers > ------------- > 64kB > > > -- > Greg Sabino Mullane greg@turnstep.com > End Point Corporation > PGP Key: 0x14964AC8 200807241351 > http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 > -----BEGIN PGP SIGNATURE----- > > iEYEAREDAAYFAkiIwYYACgkQvJuQZxSWSsiY5wCfU/tca+1JakWaMCDDRHEHk/Uj > 1rcAoMi1FNGSpJhyXWde1psygq6v3MlS > =gCPg > -----END PGP SIGNATURE----- > > > > -- > Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-docs -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a hard drive, Christ can be your backup. +