Re: Adjustment of spinlock sleep delays

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: Adjustment of spinlock sleep delays
Дата
Msg-id 1060118022.19065.1.camel@jester
обсуждение исходный текст
Ответ на Adjustment of spinlock sleep delays  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Adjustment of spinlock sleep delays  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> To forestall this scenario, I'm thinking of introducing backoff into the
> sleep intervals --- that is, after first failure to get the spinlock,
> sleep 10 msec; after the second, sleep 20 msec, then 40, etc, with a
> maximum sleep time of maybe a second.  The number of iterations would be
> reduced so that we still time out after a minute's total delay.

After the first few sleeps should it add a random() element to the delay
time?


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

Предыдущее
От: Mike Mascari
Дата:
Сообщение: Re: Adjustment of spinlock sleep delays
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: logging stuff