Re: Btree runtime recovery. Stuck spins.

Поиск
Список
Период
Сортировка
От ncm@zembu.com (Nathan Myers)
Тема Re: Btree runtime recovery. Stuck spins.
Дата
Msg-id 20010209114405.D624@store.zembu.com
обсуждение исходный текст
Ответ на Re: Btree runtime recovery. Stuck spins.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, Feb 09, 2001 at 01:23:35PM -0500, Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Our spinlocks don't go into an infinite test loop, right?  They back off
> > and retest at random intervals.
> 
> Not very random --- either 0 or 10 milliseconds.  (I think there was
> some discussion of changing that, but it died off without agreeing on
> anything.) ...

I think we agreed that 0 was just wrong, but nobody changed it.
Changing it to 1 microsecond would be the smallest reasonable 
change.  As it is, it just does a bunch of no-op syscalls each time it
wakes up after a 10ms sleep, without yielding the CPU.

Nathan Myers
ncm@zembu.com


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Btree runtime recovery. Stuck spins.
Следующее
От: "Vadim Mikheev"
Дата:
Сообщение: Re: Btree runtime recovery. Stuck spins.