From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Alan McKay <alan(dot)mckay(at)gmail(dot)com> |
Cc: | "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: statement stats extra load? |
Date: | 2009-09-23 07:58:30 |
Message-ID: | 9837222c0909230058y61ce83f5ic8db92450b0585af@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Tue, Sep 22, 2009 at 15:19, Alan McKay <alan(dot)mckay(at)gmail(dot)com> wrote:
> On Tue, Sep 22, 2009 at 2:42 AM, Magnus Hagander <magnus(at)hagander(dot)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/
From | Date | Subject | |
---|---|---|---|
Next Message | Jared Beck | 2009-09-23 16:38:20 | Slow query after upgrade to 8.4 |
Previous Message | Josh Berkus | 2009-09-22 23:52:17 | Re: Hunting Unused Indexes .. is it this simple ? |