| От | Tom Lane |
|---|---|
| Тема | Re: Adjustment of spinlock sleep delays |
| Дата | |
| Msg-id | 13525.1060121964@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Adjustment of spinlock sleep delays (Rod Taylor <rbt@rbt.ca>) |
| Ответы |
Re: Adjustment of spinlock sleep delays
|
| Список | pgsql-hackers |
Rod Taylor <rbt@rbt.ca> writes:
> After the first few sleeps should it add a random() element to the delay
> time?
Hmm, that's a thought --- but how big a random element?
Fooling with the original idea, I'm having trouble with getting both
plausible backoff and a reasonable number of attempts before failing.
I tried the sequence
10 msec, 20 msec, 40, 80, ..., 1280 (1.28 sec), repeat
but this only gives a couple of hundred tries before one minute has
elapsed, which seems uncomfortably low. Maybe there's no alternative,
though, if we want any good-sized delays in there.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера