Re: spinlocks on HP-UX

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: spinlocks on HP-UX
Дата
Msg-id CA+Tgmob62m+H2XauArLiKq0GyN+j3Bayhak4tmAH-S7yYbTojQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: spinlocks on HP-UX  (pasman pasmański <pasman.p@gmail.com>)
Список pgsql-hackers
2011/8/28 pasman pasmański <pasman.p@gmail.com>:
> Pity that this patch works only on hpux :(.

Well, not really.  x86 is already well-behaved.  On a 32-core x86 box
running Linux, performs seems to plateau and level off, and then fall
off gradually.  But on ia64, performance just collapses after about 24
cores.  The fact that we don't have that problem everywhere is a good
thing, not a bad thing...

> But i have an idea: maybe when executor stop at locked row, it should
> process next row instead of wait.
>
> Of course if query not contain "order by" or windowing functions.

That wouldn't really help, first of all because you'd then have to
remember to go back to that row (and chances are it would still be
contended then), and second because these aren't row-level locks
anyway.  They're locks on various global data structures, such as the
ProcArray.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: spinlocks on HP-UX
Следующее
От: "Sergey E. Koposov"
Дата:
Сообщение: strange row number estimates in pg9.1rc1