Re: Direct I/O

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Andres Freund <andres(at)anarazel(dot)de>, Justin Pryzby <pryzby(at)telsasoft(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: Re: Direct I/O
Date: 2023-04-08 09:25:20
Message-ID: CA+hUKGL0Zg9-Mt3ZqSkWkt-k6pNqvPc672YN9AN9tHwogtq2aQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Apr 8, 2023 at 4:59 PM Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote:
> On Sat, Apr 8, 2023 at 4:47 PM Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote:
> > After a bit more copy-editing on docs and comments and a round of
> > automated indenting, I have now pushed this. I will now watch the
> > build farm. I tested on quite a few OSes that I have access to, but
> > this is obviously a very OS-sensitive kind of a thing.
>
> Hmm. I see a strange "invalid page" failure on Andrew's machine crake
> in 004_io_direct.pl. Let's see what else comes in.

No particular ideas about what happened there yet. It *looks* like we
wrote out a page, and then read it back in very soon afterwards, all
via the usual locked bufmgr/smgr pathways, and it failed basic page
validation. The reader was a parallel worker, because of the
debug_parallel_mode setting on that box. The page number looks
reasonable (I guess it's reading a page created by the UPDATE full of
new tuples, but I don't know which process wrote it). It's also not
immediately obvious how this could be connected to the 32 pinned
buffer problem (all that would have happened in the CREATE TABLE
process which ended already before the UPDATE and then the SELECT
backends even started).

Andrew, what file system and type of disk is that machine using?

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2023-04-08 09:26:51 pgsql: TAP test for logical decoding on standby
Previous Message Pavel Stehule 2023-04-08 09:13:34 Re: broken master branch