Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 99C0F65019E for ; Fri, 19 Dec 2008 09:04:59 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 71380-06 for ; Fri, 19 Dec 2008 09:04:56 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by mail.postgresql.org (Postfix) with ESMTP id 5323F64FFB2 for ; Fri, 19 Dec 2008 09:04:52 -0400 (AST) Received: from perhan.alvh.no-ip.org (190-95-20-42.bk17-dsl.surnet.cl [190.95.20.42]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id mBJD9vdW002578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Dec 2008 05:10:00 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 4AD8C47CCD; Fri, 19 Dec 2008 10:04:46 -0300 (CLST) Date: Fri, 19 Dec 2008 10:04:46 -0300 From: Alvaro Herrera To: Laszlo Nagy Cc: pgsql-admin@postgresql.org Subject: Re: rebellious pg stats collector (reopened case) Message-ID: <20081219130446.GC4278@alvh.no-ip.org> References: <49479876.8040607@shopzeus.com> <20081216134542.GH4741@alvh.no-ip.org> <494B614C.5060808@shopzeus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <494B614C.5060808@shopzeus.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Fri, 19 Dec 2008 05:10:01 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/158 X-Sequence-Number: 30991 Laszlo Nagy wrote: > Alvaro Herrera wrote: >> Laszlo Nagy wrote: >> >>> PostgreSQL 8.3.5, the system is now stable (uptime > 10 days). >>> PostgreSQL stats collector uses 100% CPU forever: >>> >> >> Could you grab a few stack traces from it and post them? Also possibly >> useful, leave strace running on the pgstat process for a while and post >> the output somewhere. >> > Very interesting results. Before I used 'truss' on the process, it was: > > 78816 pgsql 1 106 0 22400K 7100K CPU6 6 24.2H 99.02% > postgres > > After I started "truss -p 78815" the first message I got was: It was 78816 and you traced 78815? Are you sure the process with 24h of CPU was pgstat? -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.