X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7DC4CD1D2BC for ; Fri, 23 Apr 2004 18:35:14 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 90610-01 for ; Fri, 23 Apr 2004 18:35:14 -0300 (ADT) Received: from silmaril.syscor.priv (h24-108-208-253.sbm.shawcable.net [24.108.208.253]) by svr1.postgresql.org (Postfix) with ESMTP id B30D3D1D26C for ; Fri, 23 Apr 2004 18:35:10 -0300 (ADT) Received: from syscor.com (strider.syscor.priv [192.168.1.3]) by silmaril.syscor.priv (8.12.8/8.12.8) with ESMTP id i3NLZGXR015000; Fri, 23 Apr 2004 14:35:17 -0700 Message-ID: <40898C5F.7070004@syscor.com> Date: Fri, 23 Apr 2004 14:36:31 -0700 From: Ron St-Pierre User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chris Hoover , pgsql-performance@postgresql.org Subject: Re: Help with performance problems References: <200404230931.17850.revoohc@sermonaudio.com> <200404231115.23198.josh@agliodbs.com> <40896713.2010703@syscor.com> <200404231527.24230.revoohc@sermonaudio.com> In-Reply-To: <200404231527.24230.revoohc@sermonaudio.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/417 X-Sequence-Number: 6717 Chris Hoover wrote: >On Friday 23 April 2004 14:57, Ron St-Pierre wrote: >Does this apply to 7.3.4 also? > No it doesn't, I didn't look back through the thread far enough to see what you were running. I tried it on 7.3.4 and none of the summary info listed below was returned. FWIW one of our DBs was slowing down considerably on an update (30+ minutes) and after I changed max_fsm_pages from the 7.4 default of 20,000 to 50,000, it completed in about eight minutes. Ron > > >> Actually, since he's running 7.4, there's an even better way. Do a >> "VACUUM VERBOSE" (full-database vacuum --- doesn't matter whether you >> ANALYZE or not). At the end of the very voluminous output, you'll see >> something like >> >> >> INFO: free space map: 240 relations, 490 pages stored; 4080 total pages >>needed DETAIL: Allocated FSM size: 1000 relations + 20000 pages = 178 kB >>shared memory. >> >> >> Here, I would need max_fsm_relations = 240 and max_fsm_pages = 4080 to >> exactly cover the present freespace needs of my system. I concur with >> the suggestion to bump that up a good deal, of course, but that gives >> you a real number to start from. >> >> >> The DETAIL part of the message shows my current settings (which are the >> defaults) and what the FSM is costing me in shared memory space. >> >>Good luck >>Ron >> >> >> >> >>---------------------------(end of broadcast)--------------------------- >>TIP 7: don't forget to increase your free space map settings >> >> > > > > >