Re: Additional LWLOCK_STATS statistics

Поиск
Список
Период
Сортировка
От Jesper Pedersen
Тема Re: Additional LWLOCK_STATS statistics
Дата
Msg-id 55F97909.3010101@redhat.com
обсуждение исходный текст
Ответ на Re: Additional LWLOCK_STATS statistics  (Jesper Pedersen <jesper.pedersen@redhat.com>)
Ответы Re: Additional LWLOCK_STATS statistics  (Jesper Pedersen <jesper.pedersen@redhat.com>)
Re: Additional LWLOCK_STATS statistics  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 09/15/2015 03:51 PM, Jesper Pedersen wrote:
>> It
>> would be nice to get a better sense of how *long* we block on various
>> locks.  It's hard to tell whether some other lock might be have fewer
>> blocking events but for a much longer average duration.
>>
>

I did a run with the attached patch, recording the time from
LWLockQueueSelf() until the lock is required.

Doing block_time / block_count basically only shows "main 0" -- its
called "unassigned:0"; it also shows up in the max exclusive report.
Where it is coming from is another question, since it shouldn't be in use.

Due to the overhead of gettimeofday() I think that _v1 is better to
consider.

Best regards,
  Jesper


Вложения

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

Предыдущее
От: Zhaomo Yang
Дата:
Сообщение: Re: CREATE POLICY and RETURNING
Следующее
От: Jesper Pedersen
Дата:
Сообщение: Re: Additional LWLOCK_STATS statistics