Re: Wierd context-switching issue on Xeon patch for 7.4.1

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Wierd context-switching issue on Xeon patch for 7.4.1
Дата
Msg-id 19596.1082607804@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Wierd context-switching issue on Xeon  ("Anjan Dave" <adave@vantage.com>)
Ответы Re: Wierd context-switching issue on Xeon patch for 7.4.1  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Re: Wierd context-switching issue on Xeon patch for 7.4.1  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-performance
Dave Cramer <pg@fastcrypt.com> writes:
> I tried increasing the NUM_SPINS to 1000 and it works better.

Doesn't surprise me.  The value of 100 is about right on the assumption
that the spinlock instruction per se is not too much more expensive than
any other instruction.  What I was seeing from oprofile suggested that
the spinlock instruction cost about 100x more than an ordinary
instruction :-( ... so maybe 200 or so would be good on a Xeon.

> This is certainly heading in the right direction ? Although it looks
> like it is highly dependent on the system you are running on.

Yeah.  I don't know a reasonable way to tune this number automatically
for particular systems ... but at the very least we'd need to find a way
to distinguish uniprocessor from multiprocessor, because on a
uniprocessor the optimal value is surely 1.

            regards, tom lane

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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Wierd context-switching issue on Xeon patch for 7.4.1
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: Wierd context-switching issue on Xeon patch for 7.4.1