Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id C1E089FB3DF for ; Thu, 1 Mar 2007 21:30:09 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 61563-05 for ; Thu, 1 Mar 2007 21:29:58 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by postgresql.org (Postfix) with ESMTP id D32A49FB321 for ; Thu, 1 Mar 2007 21:30:02 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id x4so1112792nfb for ; Thu, 01 Mar 2007 17:30:01 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CYiJBxIuRp3UbHveL1Ecp1fQehfoVPncGicGKBQz+SKLeGgtx5YlmqngB+sfHv5oDpZzs9PwsjQlhhhRcW35BKCPP2/pk9tLjvxef5DbZbRSByz+70S1sdQhlQWr5FmM3GocKv9zLe/gm4QeoOLwPV1+ldGbOf/BILDt/XX/TuU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DtBJq6hbJuJmDaDzufslcxuw5GWfieOKzKKMV76gx8uo00r0GYS5tV2gKsm8MDwmaVLXW2dDDeYdlMaWSrSDgzXhjAfWtoKO6SYxJGXUbxa/HHl6Q4WOmKoFFGMU1ZUZ77RoYnFEbabpkam7BVWhcX9NLWuY9RpK45tJZx4EKhg= Received: by 10.78.178.5 with SMTP id a5mr222123huf.1172799000895; Thu, 01 Mar 2007 17:30:00 -0800 (PST) Received: by 10.78.35.18 with HTTP; Thu, 1 Mar 2007 17:30:00 -0800 (PST) Message-ID: Date: Fri, 2 Mar 2007 07:00:00 +0530 From: "Merlin Moncure" To: "Tom Lane" Subject: Re: stats collector process high CPU utilization Cc: "Benjamin Minshall" , pgsql-performance@postgresql.org In-Reply-To: <17817.1172789069@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45CB5D06.7090004@intellicon.biz> <20070209142459.GB4253@alvh.no-ip.org> <24717.1171033699@sss.pgh.pa.us> <29832.1171036557@sss.pgh.pa.us> <45CCA0DB.2010903@intellicon.biz> <1116.1171038786@sss.pgh.pa.us> <45CCBF13.2000707@intellicon.biz> <16282.1172779976@sss.pgh.pa.us> <17817.1172789069@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/34 X-Sequence-Number: 23439 On 3/2/07, Tom Lane wrote: > "Merlin Moncure" writes: > > On 3/1/07, Tom Lane wrote: > >> A further report led us to realize that 8.2.x in fact has a nasty bug > >> here: the stats collector is supposed to dump its stats to a file at > >> most every 500 milliseconds, but the code was actually waiting only > >> 500 microseconds :-(. The larger the stats file, the more obvious > >> this problem gets. > > > I think this explains the trigger that was blowing up my FC4 box. > > I dug in the archives a bit and couldn't find the report you're > referring to? I was referring to this: http://archives.postgresql.org/pgsql-hackers/2007-02/msg01418.php Even though the fundamental reason was obvious (and btw, I inherited this server less than two months ago), I was still curious what was making 8.2 blow up a box that was handling a million tps/hour for over a year. :-) merlin