X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 828B032BDCC for ; Fri, 15 Oct 2004 19:51:44 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 25036-08 for ; Fri, 15 Oct 2004 18:51:37 +0000 (GMT) Received: from neomail07.traderonline.com (email.traderonline.com [65.213.231.10]) by svr1.postgresql.org (Postfix) with ESMTP id EB82932BD81 for ; Fri, 15 Oct 2004 19:51:36 +0100 (BST) Received: from [192.168.1.68] (64-139-89-109-ubr02b-epensb01-pa.hfc.comcastbusiness.net [64.139.89.109]) by neomail07.traderonline.com (8.12.10/8.12.8) with ESMTP id i9FIpZOY004409; Fri, 15 Oct 2004 14:51:35 -0400 Message-ID: <41701C35.4060808@ptd.net> Date: Fri, 15 Oct 2004 14:51:33 -0400 From: Doug Y User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: pgsql-performance@postgresql.org Subject: Re: Tuning shared_buffers with ipcs ? References: <416FF5BF.8060200@ptd.net> <10905.1097862665@sss.pgh.pa.us> In-Reply-To: <10905.1097862665@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/229 X-Sequence-Number: 8705 Tom Lane wrote: >Doug Y writes: > > >>I've seen a couple references to using ipcs to help properly size >>shared_buffers. >> >> > >I have not seen any such claim, and I do not see any way offhand that >ipcs could help. > > Directly from: http://www.varlena.com/varlena/GeneralBits/Tidbits/annotated_conf_e.html "As a rule of thumb, observe shared memory usage of PostgreSQL with tools like ipcs and determine the setting." I've seen references in the admin >>I tried all of the dash commands in the ipcs man page, and the only one >>that might give a clue is ipcs -t which shows the time the semaphores >>were last used. If you look at the example I give below, it appears as >>if I'm only using 4 of the 17 semaphores (PG was started on Oct 8). >> >> > >This might tell you something about how many concurrent backends you've >used, but nothing about how many shared buffers you need. > > Thats strange, I know I've had more than 4 concurrent connections on that box... (I just checked and there were at least a dozen). A mirror DB with the same config also has the same basic output from ipcs, except that it has times for 11 of the 17 arrays slots and most of them are the time when we do our backup dump (which makes sense that it would require more memory at that time.) > regards, tom lane > > > > I'm not saying you're wrong, because I don't know how the nitty gritty stuff works, I'm just trying to find something to work with, since presently there isn't anything other than anecdotal evidence. From what I've inferred, there seems to be some circumstantial evidence supporting my theory. Thanks.