When Postgres checkpoint, it always write buffers from pg shared_buffers to OS filesystem cache, after that, it finally make a system call fsync , that will flush dirty blocks from OS filesystem cache to disk, right?
Thanks, James From: David G. Johnston <david.g.johnston@xxxxxxxxx> On Thu, Feb 3, 2022 at 5:45 PM James Pang (chaolpan) <chaolpan@xxxxxxxxx> wrote:
I understand the big picture (more-or-less), not tuning specifics. But for a checkpoint we don't really give the O/S much control - it needs to do fsync when we ask for it. It's in between
the explicit issuance of checkpoints that the algorithms written into PostgreSQL and the O/S come into play to hopefully spread out the load over more time and keep the active memory holding useful data. David J. |