Skip site navigation (1) Skip section navigation (2)

Re: Possible Bug: high CPU usage for stats collector in 8.2

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Darcy Buskermolen <darcyb(at)commandprompt(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Possible Bug: high CPU usage for stats collector in 8.2
Date: 2007-03-02 22:14:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Fri, 2 Mar 2007, Darcy Buskermolen wrote:

> On Thursday 01 March 2007 11:57, Tom Lane wrote:
>> Darcy Buskermolen <darcyb(at)commandprompt(dot)com> writes:
>>> I'm observing high CPU usage (95%) of a 2.6GHz opteron by the stats
>>> collector on an 8.2.3 box  investigation has lead me to belive that the
>>> stats file is written a lot more often that once every 500ms  the
>>> following shows this behavior.
>> Looks like someone broke the usage of PGSTAT_STAT_INTERVAL between 8.1
>> and 8.2 ... it's waiting 500 microseconds, not the intended 500
>> milliseconds.
> I can confirm that rev of pgstat.c does fix this issue.
> The stats collector CPU usage has dropped from inexcess of 95% to 5%
> Thanks.
Any guess on when we'd see an 8.2.4?  I have a business reason for asking.


Larry Rosenman           
Phone: +1 512-248-2683                 E-Mail: ler(at)lerctr(dot)org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2007-03-02 22:37:33
Subject: Re: [HACKERS] Deadlock with pg_dump?
Previous:From: Simon RiggsDate: 2007-03-02 22:13:33
Subject: Re: HOT - preliminary results

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group