X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 52BCBD7019 for ; Mon, 22 Aug 2005 11:17:51 -0300 (ADT) 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 93421-03 for ; Mon, 22 Aug 2005 14:17:50 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 4B7BAD7016 for ; Mon, 22 Aug 2005 11:17:48 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j7MEHrLp015639; Mon, 22 Aug 2005 10:17:53 -0400 (EDT) To: "Merlin Moncure" Cc: pgsql-performance@postgresql.org Subject: Re: Finding bottleneck In-reply-to: <6EE64EF3AB31D5448D0007DD34EEB3417DD15D@Herge.rcsinc.local> References: <6EE64EF3AB31D5448D0007DD34EEB3417DD15D@Herge.rcsinc.local> Comments: In-reply-to "Merlin Moncure" message dated "Mon, 22 Aug 2005 09:15:10 -0400" Date: Mon, 22 Aug 2005 10:17:53 -0400 Message-ID: <15638.1124720273@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200508/319 X-Sequence-Number: 14066 "Merlin Moncure" writes: > One thing that might interest you is that the penalty in 8.1 for > stats_command_string=true in this type of access pattern is very high: I > was experimenting to see if the new cpu efficiency gave me enough of a > budget to start using this. This more than doubled the cpu load to > around 70% with a runtime of 82 seconds. This is actually worse than > 8.0 :(. That seems quite peculiar; AFAICS the pgstat code shouldn't be any slower than before. At first I thought it might be because we'd increased PGSTAT_ACTIVITY_SIZE, but actually that happened before 8.0 release, so it shouldn't be a factor in this comparison. Can anyone else confirm a larger penalty for stats_command_string in HEAD than in 8.0? A self-contained test case would be nice too. regards, tom lane