Re: USE_BARRIER_SMGRRELEASE on Linux?
От
Nathan Bossart
Тема
Re: USE_BARRIER_SMGRRELEASE on Linux?
Дата
Msg-id
20220216065732.GA2932808@nathanxps13
Ответ на
Re: USE_BARRIER_SMGRRELEASE on Linux? (Nathan Bossart)
Список
Дерево обсуждения
USE_BARRIER_SMGRRELEASE on Linux? Nathan Bossart <nathandbossart@gmail.com>
Re: USE_BARRIER_SMGRRELEASE on Linux? Thomas Munro <thomas.munro@gmail.com>
Re: USE_BARRIER_SMGRRELEASE on Linux? Andres Freund <andres@anarazel.de>
Re: USE_BARRIER_SMGRRELEASE on Linux? Thomas Munro <thomas.munro@gmail.com>
Re: USE_BARRIER_SMGRRELEASE on Linux? Nathan Bossart <nathandbossart@gmail.com>
Re: USE_BARRIER_SMGRRELEASE on Linux? Andres Freund <andres@anarazel.de>
Re: USE_BARRIER_SMGRRELEASE on Linux? Nathan Bossart <nathandbossart@gmail.com>
Re: USE_BARRIER_SMGRRELEASE on Linux? Nathan Bossart <nathandbossart@gmail.com>
Re: USE_BARRIER_SMGRRELEASE on Linux? Nathan Bossart <nathandbossart@gmail.com>
Re: USE_BARRIER_SMGRRELEASE on Linux? Nathan Bossart <nathandbossart@gmail.com>
Re: USE_BARRIER_SMGRRELEASE on Linux? Andres Freund <andres@anarazel.de>
Re: USE_BARRIER_SMGRRELEASE on Linux? Nathan Bossart <nathandbossart@gmail.com>
Re: USE_BARRIER_SMGRRELEASE on Linux? Nathan Bossart <nathandbossart@gmail.com>
Re: USE_BARRIER_SMGRRELEASE on Linux? Thomas Munro <thomas.munro@gmail.com>
Re: USE_BARRIER_SMGRRELEASE on Linux? Nathan Bossart <nathandbossart@gmail.com>
Re: USE_BARRIER_SMGRRELEASE on Linux? Andres Freund <andres@anarazel.de>
On Tue, Feb 15, 2022 at 10:14:04PM -0800, Nathan Bossart wrote: > It looks like register_unlink_segment() is called prior to the checkpoint, > but the checkpointer is not calling RememberSyncRequest() until after > SyncPreCheckpoint(). This means that the requests are registered with the > next checkpoint cycle count, so they aren't processed until the next > checkpoint. Calling AbsorbSyncRequests() before advancing the checkpoint cycle counter seems to fix the issue. However, this requires moving SyncPreCheckpoint() out of the critical section in CreateCheckPoint(). Patch attached. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com
В списке pgsql-hackers по дате отправления