Re: AIO v2.5

From: Andres Freund <andres(at)anarazel(dot)de>
To: Noah Misch <noah(at)leadboat(dot)com>
Cc: Antonin Houska <ah(at)cybertec(dot)at>, pgsql-hackers(at)postgresql(dot)org, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Robert Haas <robertmhaas(at)gmail(dot)com>, Jakub Wartak <jakub(dot)wartak(at)enterprisedb(dot)com>, Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
Subject: Re: AIO v2.5
Date: 2025-03-25 01:40:47
Message-ID: cep7b6iq56pval2ylrfisnpej35bstlqebxm43vjhwcp3x2joy@feeenewtrosh
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2025-03-23 09:32:48 -0700, Noah Misch wrote:
> Another candidate description string:
>
> AIO_COMPLETED_SHARED "Waiting for another process to complete IO."

I liked that one and adopted it.

> > A more minimal change would be to narrow AIO_IO_URING_COMPLETION to
> > "execution" or something like that, to hint at a separation between the raw IO
> > being completed and the IO, including the callbacks completing.
>
> Yes, that would work for me.

I updated both the name and the description of this one to EXECUTION, but I'm
not sure I like it for the name...

> > > > --- a/doc/src/sgml/config.sgml
> > > > +++ b/doc/src/sgml/config.sgml
> > > > @@ -2710,6 +2710,12 @@ include_dir 'conf.d'
> > > > <literal>worker</literal> (execute asynchronous I/O using worker processes)
> > > > </para>
> > > > </listitem>
> > > > + <listitem>
> > > > + <para>
> > > > + <literal>io_uring</literal> (execute asynchronous I/O using
> > > > + io_uring, if available)
> > >
> > > I feel the "if available" doesn't quite fit, since we'll fail if unavailable.
> > > Maybe just "(execute asynchronous I/O using Linux io_uring)" with "Linux"
> > > there to reduce surprise on other platforms.
> >
> > You're right, the if available can be misunderstood. But not mentioning that
> > it's an optional dependency seems odd too. What about something like
> >
> > <para>
> > <literal>io_uring</literal> (execute asynchronous I/O using
> > io_uring, requires postgres to have been built with
> > <link linkend="configure-option-with-liburing"><option>--with-liburing</option></link> /
> > <link linkend="configure-with-liburing-meson"><option>-Dliburing</option></link>)
> > </para>
>
> I'd change s/postgres to have been built/a build with/ since the SGML docs
> don't use the term "postgres" that way. Otherwise, that works for me.

Went with that.

Greetings,

Andres Freund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Sami Imseih 2025-03-25 01:51:14 Re: query_id: jumble names of temp tables for better pg_stat_statement UX
Previous Message torikoshia 2025-03-25 01:27:31 Re: RFC: Allow EXPLAIN to Output Page Fault Information