Re: statement stats extra load?

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: statement stats extra load?
Дата
Msg-id 9837222c0909230058y61ce83f5ic8db92450b0585af@mail.gmail.com
обсуждение исходный текст
Ответ на Re: statement stats extra load?  (Alan McKay <alan.mckay@gmail.com>)
Список pgsql-performance
On Tue, Sep 22, 2009 at 15:19, Alan McKay <alan.mckay@gmail.com> wrote:
> On Tue, Sep 22, 2009 at 2:42 AM, Magnus Hagander <magnus@hagander.net> wrote:
>> That's not true at all.
>>
>> If you have many relations in your cluster that have at some point been
>> touched, the starts collector can create a *significant* load on the I/o
>> system. I've come across several cases where the only choice was to disable
>> the collector completely, even given all the drawbacks from that.
>
> Thanks Magnus, I thought that other response sounded a bit fanciful :-)
>
> So is there any way to predict the load this will have?   Or just try
> it and hope for the best?  :-)

IIRC, the size of the statsfile will be:
* Some header data (small)
* For each database, not much data (IIRC about 10-15 32-bit values, so
less than 100 bytes)
* For each table, around 25 32-bit values, so somewhere around 100 bytes

It's the table stuff that can increase the size, unless you have very
many databases with just one or so tables in them. The table stats
will also be written for system tables.

This file will be written twice per second on 8.3 and earlier (on 8.4,
only on demand). It will be written as a new file and then renamed
into place, so there is also filesystem operations being created -
which unfortunately are on your main data drive (unless, again, you're
on 8.4 and moved it to tmpfs)


--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

В списке pgsql-performance по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Hunting Unused Indexes .. is it this simple ?
Следующее
От: Shiva Raman
Дата:
Сообщение: Re: High CPU load on Postgres Server during Peak times!!!!