pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Nathan Bossart <nathandbossart@gmail.com>
To: Imseih (AWS), Sami <samimseih@gmail.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Restart pg_usleep when interrupted
Date: Tue, 13 Aug 2024 10:57:24 -0500
Message-ID: <ZruCZOKzS0LGAGTb@nathan> (raw )
In-Reply-To: <90ec1618-58db-46b3-8c9b-13616ac839a7@gmail.com >
References: <AED4B8D0-3ED1-463C-BA9F-BFF4B511315E@gmail.com >
<BB742B52-D481-4D5A-926A-4ED4A6ADA98B@gmail.com >
<ZrowomFX5yMV9zUm@ip-10-97-1-34.eu-west-3.compute.internal >
<ZrpnfTVK-iaIW98I@nathan >
<e3297b5e-0b33-4f45-afcd-4b00ba0b3547@gmail.com >
<cb18c6a7-4394-4488-ad71-0b9826c8899c@iki.fi >
<ZrqG0tIgP2HbGRm1@nathan >
<2b5ac681-11d5-470d-af40-89ead9a868aa@gmail.com >
<Zrt3ReA-nB7MJn2q@nathan >
<90ec1618-58db-46b3-8c9b-13616ac839a7@gmail.com >
On Tue, Aug 13, 2024 at 10:47:51AM -0500, Imseih (AWS), Sami wrote:
> On 8/13/24 10:09 AM, Nathan Bossart wrote:
>> On Mon, Aug 12, 2024 at 05:35:08PM -0500, Imseih (AWS), Sami wrote:
>> > > 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.
>> > The way the instrumentation in [0] dealt with interrupts was too complex,
>> > which is why it seemed better to handle the restart the remainder of the
>> > sleep in the sleep function
>> Can you elaborate on how it is too complex?
>>
> [0] made vacuum_delay_point more complex as it has to
> instrument cost_delay at an interval to reduce the number
> of interrupts to the leader.
Sure, but looking at the patch [0], it adds maybe an extra 10 lines of code
to limit the reports to 1 Hz. That doesn't strike me as too complex...
[0] https://postgr.es/m/ZnlPZZZJCRu/8fka%40ip-10-97-1-34.eu-west-3.compute.internal
--
nathan
view thread (73+ messages) latest in thread
Message-ID: <ZruCZOKzS0LGAGTb@nathan>
Permalink: ../ZruCZOKzS0LGAGTb@nathan/
Also on: postgresql.org/message-id/ZruCZOKzS0LGAGTb@nathan
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: nathandbossart@gmail.com, samimseih@gmail.com, hlinnaka@iki.fi, bertranddrouvot.pg@gmail.com, tgl@sss.pgh.pa.us, robertmhaas@gmail.com
Subject: Re: Restart pg_usleep when interrupted
In-Reply-To: <ZruCZOKzS0LGAGTb@nathan>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox