Re: Direct I/O

Mikael Kjellström <mikael.kjellstrom@gmail.com>

From: Mikael Kjellström <mikael.kjellstrom@gmail.com>
To: Andres Freund <andres@anarazel.de>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: Thomas Munro <thomas.munro@gmail.com>, Andrew Dunstan <andrew@dunslane.net>, Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>, Christoph Berg <myon@debian.org>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-04-14T19:50:29Z
Lists: pgsql-hackers

On 2023-04-14 21:33, Andres Freund wrote:

>> Oh!  I was misled by the buildfarm label on morepork, which claims
>> it's running clang 10.0.1.  But actually, per its configure report,
>> it's running
>>
>> 	configure: using compiler=gcc (GCC) 4.2.1 20070719
> 
> Huh. I wonder if that was an accident in the BF setup.

I might have been when I reinstalled it a while ago.

I have the following gcc and clang installed:

openbsd_6_9-pgbf$ gcc --version
gcc (GCC) 4.2.1 20070719
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

openbsd_6_9-pgbf$ clang --version
OpenBSD clang version 10.0.1
Target: amd64-unknown-openbsd6.9
Thread model: posix
InstalledDir: /usr/bin

want me to switch to clang instead?

/Mikael



Commits

  1. Rename hook functions for debug_io_direct to match variable name.

  2. Rename io_direct to debug_io_direct.

  3. Skip the 004_io_direct.pl test if a pre-flight check fails.

  4. Use higher wal_level for 004_io_direct.pl.

  5. Skip \password TAP test on old IPC::Run versions

  6. Add io_direct setting (developer-only).

  7. Introduce PG_IO_ALIGN_SIZE and align all I/O buffers.

  8. Add palloc_aligned() to allow aligned memory allocations

  9. initdb: When running CREATE DATABASE, use STRATEGY = WAL_COPY.