Re: New statistics for WAL buffer dirty writes

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: New statistics for WAL buffer dirty writes
Дата
Msg-id 6B11D1CA-2117-48A6-9C3B-7E64E20C1049@gmail.com
обсуждение исходный текст
Ответ на Re: New statistics for WAL buffer dirty writes  (Euler Taveira <euler@timbira.com>)
Ответы Re: New statistics for WAL buffer dirty writes  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
On Jul 7, 2012, at 9:07 AM, Euler Taveira <euler@timbira.com> wrote:
> On 07-07-2012 09:00, Satoshi Nagayasu wrote:
>> I've created new patch to get/reset statistics of WAL buffer
>> writes (flushes) caused by WAL buffer full.
>>
> This new statistic doesn't solve your problem (tune wal_buffers). It doesn't
> give you the wal_buffers value. It only says "hey, I needed more buffers so I
> write those dirty ones". It doesn't say how many. I would like to have
> something that says "hey, you have 1000 buffers available and  you are using
> 100 buffers (10%)". This new statistic is only useful for decreasing the
> WALWriteLock contention.

The number of WAL buffers that you are using is going to change so quickly as to be utterly meaningless.  I don't
reallysee that there's any statistic we could gather that would tell us how many WAL buffers are needed.  This patch
seemslike it's on the right track, at least telling you how often you're running out. 

I'm interested to run some benchmarks with this; I think it could be quite informative.

...Robert

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

Предыдущее
От: Satoshi Nagayasu
Дата:
Сообщение: Re: New statistics for WAL buffer dirty writes
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: New statistics for WAL buffer dirty writes