Re: Spinlocks, yet again: analysis and proposed patches

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Spinlocks, yet again: analysis and proposed patches
Дата
Msg-id 87hdcp13lp.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Spinlocks, yet again: analysis and proposed patches  (Marko Kreen <marko@l-t.ee>)
Ответы Re: Spinlocks, yet again: analysis and proposed patches  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Marko Kreen <marko@l-t.ee> writes:

> > (I speculate that it's set up to only yield the processor to other
> > processes already affiliated to that processor.  In any case, it
> > is definitely capable of getting through 10000 yields without
> > running the guy who's holding the spinlock.)

Maybe it should try sched_yield once and then use select after that?

-- 
greg



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

Предыдущее
От: "Brusser, Michael"
Дата:
Сообщение: Re: Hard drive failure leads to corrupt db
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Hard drive failure leads to corrupt db