Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A2B8565025C for ; Tue, 16 Dec 2008 18:06:59 -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 20469-04 for ; Tue, 16 Dec 2008 18:06:56 -0400 (AST) 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 E59B16501CD for ; Tue, 16 Dec 2008 18:06:55 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id mBGM6rV19025; Tue, 16 Dec 2008 17:06:53 -0500 (EST) From: Bruce Momjian Message-Id: <200812162206.mBGM6rV19025@momjian.us> Subject: Re: [ADMIN] shared_buffers and shmmax In-Reply-To: <20081216193314.GR4741@alvh.no-ip.org> To: Alvaro Herrera Date: Tue, 16 Dec 2008 17:06:53 -0500 (EST) CC: Tom Lane , valiouk@yahoo.co.uk, pgsql-docs@postgresql.org, dx k9 X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1229465212-5875-0_" Content-Transfer-Encoding: 7bit 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/17 X-Sequence-Number: 5024 --ELM1229465212-5875-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" Alvaro Herrera wrote: > Alvaro Herrera wrote: > > Bruce Momjian wrote: > > > > > OK, I never got the change applied because of Alvaro's objection so > > > there is nothing to revert. Alvaro said he has an idea for improved > > > wording; I do not. > > > > I think we should add a more explicit note, like in the attached patch. > > Committed. Bruce told me on IM he still wants to do more changes. > > -- > Alvaro Herrera http://www.CommandPrompt.com/ > The PostgreSQL Company - Command Prompt, Inc. OK, updated patch. I added item descriptions and removed Alvaro's paragraph; I worked with Alvaro on this patch. You can see the output in table 17-2: http://momjian.us/tmp/pgsql/kernel-resources.html -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a hard drive, Christ can be your backup. + --ELM1229465212-5875-0_ Content-Transfer-Encoding: 7bit Content-Type: text/x-diff Content-Disposition: inline; filename="/pgpatches/shared_mem_table" Index: doc/src/sgml/runtime.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v retrieving revision 1.423 diff -c -c -r1.423 runtime.sgml *** doc/src/sgml/runtime.sgml 16 Dec 2008 19:30:43 -0000 1.423 --- doc/src/sgml/runtime.sgml 16 Dec 2008 22:01:14 -0000 *************** *** 1087,1141 **** Name ! Approximate multiplier (bytes per increment) as of 8.3 ! 1800 + 270 * ! 1800 + 270 * ! 770 + 270 * ! 8400 (assuming 8 kB BLCKSZ) ! 8200 (assuming 8 kB XLOG_BLCKSZ) Fixed space requirements ! 770 kB ! ! ! The multipliers for shared_buffers and ! wal_buffers should be the number of buffers, not the ! amount in bytes. To find out the number of shared or wal buffers, divide ! the amount in bytes by and ! , respectively. ! ! ! ! Resource Limits --- 1087,1137 ---- Name ! Shared memory requirements, as of 8.3 ! 1800 + 270 * bytes per connection ! 1800 + 270 * bytes per worker ! 770 + 270 * bytes per prepared transaction ! + 208 bytes per shared buffer ! + 8 bytes per WAL buffer Fixed space requirements ! 770k bytes ! ! These shared memory allocations are reserved at database server ! start and remain static. ! Resource Limits --ELM1229465212-5875-0_--