Re: Tracking disk writes? (again)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Tracking disk writes? (again)
Дата
Msg-id 23800.1173758228@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Tracking disk writes? (again)  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Tracking disk writes? (again)  (Ron Johnson <ron.l.johnson@cox.net>)
Re: Tracking disk writes? (again) & bgwriter  (Erik Jones <erik@myemma.com>)
Список pgsql-general
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Tom Lane wrote:
>> One of the reasons you don't see that is that a large fraction of the
>> writes are triggered in background by the "bgwriter" process, which
>> operates at too low a level to participate in the stats collection
>> mechanism.  I'm not sure what would be involved in refactoring things
>> sufficiently to make that workable, but it'd be nontrivial.

> You mean that bgwriter cannot send stat messages?

Right.  The stats mechanism is attached to relcache entries, which the
bgwriter doesn't have.  And if it did collect stats, it would never send
them because that happens in the outer postgres.c loop (it's not totally
clear what would be a good granularity for sending them in bgwriter).
And I think it is not a backend in the stats collector's eyes, either.

Surely these things could be dealt with, but it'd take some refactoring.

            regards, tom lane

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

Предыдущее
От: "Tadej Kanizar"
Дата:
Сообщение: Multi DB performance test
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: Tracking disk writes? (again)