Re: s_lock() seems too aggressive for machines with many sockets

Поиск
Список
Период
Сортировка
От Nils Goroll
Тема Re: s_lock() seems too aggressive for machines with many sockets
Дата
Msg-id 557845B5.1010501@schokola.de
обсуждение исходный текст
Ответ на Re: s_lock() seems too aggressive for machines with many sockets  (Andres Freund <andres@anarazel.de>)
Ответы Re: s_lock() seems too aggressive for machines with many sockets
Список pgsql-hackers
On 10/06/15 16:05, Andres Freund wrote:
> it'll nearly always be beneficial to spin

Trouble is that postgres cannot know if the process holding the lock actually
does run, so if it doesn't, all we're doing is burn cycles and make the problem
worse.

Contrary to that, the kernel does know, so for a (f|m)utex which fails to
acquire immediately and thus needs to syscall, the kernel has the option to spin
only if the lock holder is running (the "adaptive" mutex).

Nils



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: "could not adopt C locale" failure at startup on Windows
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: reaper should restart archiver even on standby