Re: Should io_method=worker remain the default? - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Should io_method=worker remain the default?
Date
Msg-id 527013f57c4ba539eef80142f9df371e7a2e105f.camel@j-davis.com
Whole thread Raw
In response to Re: Should io_method=worker remain the default?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Mon, 2025-09-08 at 17:02 -0400, Andres Freund wrote:
> I forgot an addendum: In fact, if there were a sufficiently cheap way
> to avoid
> using AIO when data is in the page cache, I'm fairly sure we'd want
> to use
> that. However, there is not, from what I know (both fincore() and
> RWF_NOWAIT
> are too expensive). The maximum gain from using AIO when the data is
> already
> in the page cache is just not very big, and it can cause slowdowns
> due to IPC
> overhead etc.

Also interesting. It might be worth mentioning in the docs and/or
README.

Regards,
    Jeff Davis




pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: shmem_startup_hook called twice on Windows
Next
From: Sami Imseih
Date:
Subject: Re: shmem_startup_hook called twice on Windows