Re: Remove Instruction Synchronization Barrier in spin_delay() for ARM64 architecture

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Remove Instruction Synchronization Barrier in spin_delay() for ARM64 architecture
Дата
Msg-id 650064.1755295404@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Remove Instruction Synchronization Barrier in spin_delay() for ARM64 architecture  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> FWIW, I'd not be surprised if moving to atomics would often cause *slowdowns*
> compared to using the spinlocks. You'd replace one atomic operation with
> dozens, to update all those fields individually. With loads of cacheline
> pingpong inbetween.

Not only that, but you'd no longer have any semblance of read-consistency
between the fields of a stats entry.

            regards, tom lane



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