Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5LKVga60414 for ; Thu, 21 Jun 2001 16:31:42 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f5LKHvP22040 for pgsql-general@postgresql.org; Thu, 21 Jun 2001 16:17:57 -0400 (EDT) (envelope-from news) From: Dennis X-Newsgroups: comp.databases.postgresql.general Subject: Shared Buffers Date: Thu, 21 Jun 2001 14:17:55 -0600 Organization: ZServe Lines: 22 Message-ID: <9gtkpj$les$1@news.tht.net> Reply-To: dennis@zserve.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: scrappy@hub.org User-Agent: KNode/0.4 To: pgsql-general@postgresql.org X-Archive-Number: 200106/805 X-Sequence-Number: 11358 When starting postmaster, you can add the -B option to indicate the amount of shared buffers you want postgres to use. You can also specify the value in postgresql.conf. I read in the documentation that 1 shared buffer is 8192 bytes. Somone posted a while back that it was most optimal to let postgres have about 1/4 of the memory on a dedicated machine. So, I have 512 megs on a dedicated machine. I divide that by 4 and then times the number of bytes in a meg and divide by 8192 and I get 16384. By the 1/4 standard, it seems I should set "-B 16384" at postgres startup. Postgres defaults to 64 Shared Buffers. That is a big difference from 16384. Is there any reason to my logic here or am I way off? Can anyone supply some more information or maybe suggest the most optimum way to use Shared Buffers. Is the 1/4 standard good or should I use even more.. or much less? Thanks in advance. Dennis