Re: Performance monitor signal handler

Поиск
Список
Период
Сортировка
От Philip Warner
Тема Re: Performance monitor signal handler
Дата
Msg-id 3.0.5.32.20010313132237.032525c0@mail.rhyme.com.au
обсуждение исходный текст
Ответ на Re: Performance monitor signal handler  (Alfred Perlstein <bright@wintelcom.net>)
Ответы Re: Performance monitor signal handler  (Alfred Perlstein <bright@wintelcom.net>)
Re: Performance monitor signal handler  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
At 13:34 12/03/01 -0800, Alfred Perlstein wrote:
>Is it possible
>to have a spinlock over it so that an external utility can take a snapshot
>of it with the spinlock held?

I'd suggest that locking the stats area might be a bad idea; there is only
one writer for each backend-specific chunk, and it won't matter a hell of a
lot if a reader gets inconsistent views (since I assume they will be
re-reading every second or so). All the stats area should contain would be
a bunch of counters with timestamps, I think, and the cost up writing to it
should be kept to an absolute minimum.


>
>just some ideas..
>

Unfortunatley, based on prior discussions, Bruce seems quite opposed to a
shared memory solution.


----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/


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

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: xlog patches reviewed
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: Internationalized dates (was Internationalized error messages)