Re: Spinlocks, yet again: analysis and proposed patches

Поиск
Список
Период
Сортировка
От Michael Paesold
Тема Re: Spinlocks, yet again: analysis and proposed patches
Дата
Msg-id 002c01c5b96e$c3c95560$0f01a8c0@zaphod
обсуждение исходный текст
Ответ на Spinlocks, yet again: analysis and proposed patches  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:


>I wrote:
>> We could ameliorate this if there were a way to acquire ownership of the
>> cache line without necessarily winning the spinlock.  I'm imagining
>> that we insert a "dummy" locked instruction just ahead of the xchgb,
>> which touches the spinlock in such a way as to not change its state.
> 
> I tried this, using this tas code:
...

I have tried it on the P4 w/ HT.

CVS tip             1: 37s  2: 78s  4: 159s  8: 324
only slock-no-cmpb  1: 37s  2: 82s  4: 178s  8: 362
only dummy-locking  1: 44s  2: 96s  4: 197s ...

I guess there is no reason to try any more.

Best Regards,
Michael Paesold


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Constraint Type Coercion issue?
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Constraint Type Coercion issue?