Re: LWLock cache line alignment

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: LWLock cache line alignment
Дата
Msg-id 15704.1107441084@sss.pgh.pa.us
обсуждение исходный текст
Ответ на LWLock cache line alignment  ("Simon Riggs" <simon@2ndquadrant.com>)
Ответы Re: LWLock cache line alignment  ("Simon Riggs" <simon@2ndquadrant.com>)
Список pgsql-hackers
"Simon Riggs" <simon@2ndquadrant.com> writes:
> It looks like padding out LWLock struct would ensure that each of those
> were in separate cache lines?

I've looked at this before and I think it's a nonstarter; increasing the
size of a spinlock to 128 bytes is just not reasonable.  (Remember there
are two per buffer.)  Also, there's no evidence it would actually help
anything, because the contention we have been able to measure is on only
one particular lock (BufMgrLock) anyway.  But feel free to try it to see
if you can see a difference.
        regards, tom lane


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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: LWLockRelease
Следующее
От: Tom Lane
Дата:
Сообщение: Re: LWLockRelease