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 CF83552D19 for ; Thu, 14 Jul 2005 21:43:23 -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 39841-08 for ; Fri, 15 Jul 2005 00:43:14 +0000 (GMT) Received: from smtp001.bizmail.yahoo.com (smtp001.bizmail.yahoo.com [216.136.172.125]) by svr1.postgresql.org (Postfix) with SMTP id 37D2C52A58 for ; Thu, 14 Jul 2005 21:43:11 -0300 (ADT) Received: (qmail 1265 invoked from network); 15 Jul 2005 00:43:14 -0000 Received: from unknown (HELO ?192.168.3.41?) (david.mitchell@telogis.com@203.98.10.169 with plain) by smtp001.bizmail.yahoo.com with SMTP; 15 Jul 2005 00:43:14 -0000 Message-ID: <42D7069B.5090107@telogis.com> Date: Fri, 15 Jul 2005 12:43:07 +1200 From: David Mitchell User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dennis Cc: Qingqing Zhou , pgsql-performance@postgresql.org Subject: Re: performance problems ... 100 cpu utilization References: <42D567DB.6000100@works4me.com> <42D5DBEB.4010503@works4me.com> <42D5F315.3090301@telogis.com> <42D60C2E.3020004@works4me.com> In-Reply-To: <42D60C2E.3020004@works4me.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200507/201 X-Sequence-Number: 13442 If your table has got into this state, then vacuum analyze won't fix it. You will have to do a vacuum full to get it back to normal, then regularly vacuum (not full) to keep it in good condition. We vacuum our critical tables every 10 minutes to keep them in good nick. David Dennis wrote: > David Mitchell wrote: > >> What is the load average on this machine? Do you do many updates? If >> you do a lot of updates, perhaps you haven't vacuumed recently. We >> were seeing similar symptoms when we started load testing our stuff >> and it turned out we were vacuuming too infrequently. > > > The load average at the 100% utilization point was about 30! A vacuum > analyze was done before the test was started. I believe there are many > more selects than updates happening at any one time. > > Dennis > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match > > -- David Mitchell Software Engineer Telogis