Re: High CPU usage of stats collector - Mailing list pgsql-general

From Jeff Janes
Subject Re: High CPU usage of stats collector
Date
Msg-id CAMkU=1y_NP2C_bMJ+O6EHHB69ecG2qBgksOLVYiP=-A91fRy9Q@mail.gmail.com
Whole thread Raw
In response to High CPU usage of stats collector  (komunca <komunca@gmail.com>)
List pgsql-general
On Sun, Mar 31, 2013 at 2:44 PM, komunca <komunca@gmail.com> wrote:
On my db server I have noticed a very high CPU usage of process:
*postgres: stats collector process*

It is not below 50% of CPU. (Info from htop).

What is best way to decrease CPU usage of this process?

This is a known issue when you have a large number of databases with a large number of objects each.

It will be fixed in 9.3.  In the meantime you can perhaps increase autovacuum_naptime, but that has tradeoffs.

Cheers,

Jeff

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Source code and database object identifiers
Next
From: Jasen Betts
Date:
Subject: Re: Using varchar primary keys.