Re: Restart pg_usleep when interrupted

Поиск
Список
Период
Сортировка
Искать
От
Nathan Bossart
Тема
Re: Restart pg_usleep when interrupted
Дата
Msg-id
ZrqG0tIgP2HbGRm1@nathan
Ответ на
Список
Дерево обсуждения
Restart pg_usleep when interrupted "Imseih (AWS), Sami" <simseih@amazon.com>
Re: Restart pg_usleep when interrupted Robert Haas <robertmhaas@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Tom Lane <tgl@sss.pgh.pa.us>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted "Imseih (AWS), Sami" <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Heikki Linnakangas <hlinnaka@iki.fi>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted "Imseih (AWS), Sami" <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted "Imseih (AWS), Sami" <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted "Imseih (AWS), Sami" <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted "Imseih (AWS), Sami" <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted "Imseih (AWS), Sami" <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted Thomas Munro <thomas.munro@gmail.com>
Re: Restart pg_usleep when interrupted Thomas Munro <thomas.munro@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Sami Imseih <samimseih@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Nathan Bossart <nathandbossart@gmail.com>
Re: Restart pg_usleep when interrupted Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Restart pg_usleep when interrupted Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Restart pg_usleep when interrupted Thomas Munro <thomas.munro@gmail.com>
Re: Restart pg_usleep when interrupted "Imseih (AWS), Sami" <simseih@amazon.com>
On Tue, Aug 13, 2024 at 12:04:28AM +0300, Heikki Linnakangas wrote:
>> In the case of the patch being proposed by Bertrand, the number of
>> interrupts > will be much more frequent as parallel workers would send a
>> message
> to the leader
>> to update the vacuum delay counters every vacuum_delay_point call.
> 
> Hmm, I wonder if that's a good design, if it results in a lot of interrupts.

Skimming the last few messages of that thread [0], it looks like Bertrand
is exploring ways to avoid so many interrupts.  I guess the unavoidable
question is whether this work is still worthwhile given that improvement.

> On the patch itself: Making the sleeps in vacuum uninterruptible means that
> vacuum will be more slow to respond to interrupts. If you SIGTERM a vacuum
> process, or hit CTRL-C, you *would* want to exit the sleep ASAP.

Since the delay will typically be pretty small (2 milliseconds by default
for autovacuum), I'm assuming this won't ordinarily be noticeable.  But I
do think it is an important consideration.

[0] https://commitfest.postgresql.org/49/5027/

-- 
nathan


В списке pgsql-hackers по дате отправления
От: Euler Taveira
Дата:
От: Imseih (AWS), Sami
Дата:
FAQ