Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u1WA5-003i9g-DX for pgsql-hackers@arkaria.postgresql.org; Sun, 06 Apr 2025 20:00:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u1WA3-001p8A-4i for pgsql-hackers@arkaria.postgresql.org; Sun, 06 Apr 2025 20:00:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u1WA2-001p82-K1 for pgsql-hackers@lists.postgresql.org; Sun, 06 Apr 2025 20:00:07 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u1WA1-003L5P-0M for pgsql-hackers@postgresql.org; Sun, 06 Apr 2025 20:00:06 +0000 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-54b10956398so4319342e87.0 for ; Sun, 06 Apr 2025 13:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743969603; x=1744574403; darn=postgresql.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=gyIWgL6fbz1CYJh7Zn94Mh4f1GrTx7fx0GgE0eGSEYE=; b=Zd6bNjVXoCu5khlTAWtxWljnN+mKCmIh2gmBkd+FvfnNqWWiZ1yiThkqE+pSaI5wHB unEzhxP6K3E9GQiQf063IwswNmHwTt+H1bvUecYm5e351MPAoBHxexb5zFB8vrZI8aKM 5jywnNbX6fgjfnVcRwyfJvZo6u/8Vnj2hkg7WDcF46rXH9Mt9VWjs78W9LJzwMEq8nb5 O1TMo4+xVhBioxYcwzgGAutYSExR5PdWkkCbx8pwJq8KyFnOjY759DYCPs8v4seBVMBk tJYjNgLgyqI6VZMUIGKc5HzDaiHHVGWGht+k/Rh15XP8QoeT4n2o1WbuP5+xXT897ePx UX9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743969603; x=1744574403; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=gyIWgL6fbz1CYJh7Zn94Mh4f1GrTx7fx0GgE0eGSEYE=; b=fe6PkmvSHkNyQ9vvgUVq7vRPY+Fvln/hr1KmTxlI5II0fwcBRceIgkjlpLofJ7ysrE 4aGaUhBJrdjHQX++2ruVUtnfkuX2WjHdvfv2SeaRKtIxOSYint4y+h4cUmunLZ+yWzpr /OrplVcka2flucaKqu3ySJ+5bmSLTGVz26J3aVK9dwoLRQ8QHmfKJkRd/T30JGn3xiuN tOtS+hSfzyIYpibEypY1Qvr8vJ3+iA5H60L1w40leOs9SvP4pQxajtAHashC1qV9WIL3 iIlFeS5bUuW4svp79ln+i2OTcz0h0hGYGHVggIfTBgBP/k2Srn1aKzGKbfyQsLfqbijy FIvQ== X-Gm-Message-State: AOJu0YyM5AkEnNA5byb5t3oS2apSmJ+8Yh8/DFMMaulWC+zBUJdWkDaN tqFx4puPTIjkcXD+eAxFDYKerGNYEb4St4dWSkQaEV0GrFYo5THa X-Gm-Gg: ASbGncvQLpQCPPoIXXgre7zOOrh3KLWXRayjGloQALfCc7WznxOdPHfJA+D8JGhCsKj iazU1qgjTWC37dMiSbXW8BAhz1MaIiuv5OSIy78Ih6VLTSPeZPFUN5207+AvKi+GJ83rG4gfkzg NjBKuj4RuUmhuQ2WcpbZ5/1d0ynIy24sSXfp/x/sN2RU5jCodFY48qz0APK+efCa6K0Z8rTt6JZ FGYZAOP80ZClrPcWwJw1g2MJF2vtsQ1V+fvHhZeAcGUa2bC26409JHgSCnEDhmBN22HGCCgVS/G cO2FeVBo1RU/P09fyURHvgtW59KNnxLd0cQhvYgm09C/9Ec= X-Google-Smtp-Source: AGHT+IHb0Hi4VBeM2iYKtAb7TUgBms0pzJX9AwuyjAI/xTMp1ZKE8WV+YsqglrqcQ1IoTlroxk+x9Q== X-Received: by 2002:ac2:4f14:0:b0:54a:fa5c:5a0a with SMTP id 2adb3069b0e04-54c22619273mr3351577e87.21.1743969602918; Sun, 06 Apr 2025 13:00:02 -0700 (PDT) Received: from [192.168.0.50] ([89.149.68.176]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e6363a0sm1040851e87.148.2025.04.06.13.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Apr 2025 13:00:01 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------i7xs3ZtaYw1IyiUzW2PAMSH4" Message-ID: <8160688e-db8e-4d7d-a7e7-ff366adf9717@gmail.com> Date: Sun, 6 Apr 2025 23:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: AIO v2.5 To: Andres Freund , Noah Misch Cc: pgsql-hackers@postgresql.org, Thomas Munro , Heikki Linnakangas , Robert Haas , Jakub Wartak , Jelte Fennema-Nio , Antonin Houska References: <20250329212929.a6.nmisch@google.com> <7s6fclfekpcxoaaorwrq67v4vmgixf2dcjcgznuj7vxs3ie3wq@okqbi5vabqbx> <20250401151159.51.nmisch@google.com> <20250402001324.e4.nmisch@google.com> <3fhulsvzks4khqahl6tngcnuda7pyrrl7223tmjh2x2spralm3@iisldh6pcowy> Content-Language: en-US From: Alexander Lakhin In-Reply-To: <3fhulsvzks4khqahl6tngcnuda7pyrrl7223tmjh2x2spralm3@iisldh6pcowy> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------i7xs3ZtaYw1IyiUzW2PAMSH4 Content-Type: multipart/alternative; boundary="------------gmT8sUur20VooERp96nz4hTK" --------------gmT8sUur20VooERp96nz4hTK Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello Andres, 02.04.2025 14:58, Andres Freund wrote: > Hi, > > I've pushed fixes for 1) and 2) and am working on 3). When running multiple installcheck's against a single server (please find the ready-to-use script attached (I use more sophisticated version with additional patches to make installcheck pass cleanly, but that's not required for this case)), I've encountered an interesting error related to AIO/uring: iteration 8: Sun Apr  6 19:22:39 UTC 2025 installchecks finished: Sun Apr  6 19:23:47 UTC 2025 2025-04-06 19:22:44.216 UTC [349525] LOG:  could not read blocks 0..0 in file "base/6179194/2606": Operation canceled 2025-04-06 19:22:44.216 UTC [349525] ERROR:  could not read blocks 0..0 in file "base/6179194/2606": Operation canceled server.log contains: 2025-04-06 19:22:44.215 UTC [38231] LOG:  checkpoint complete: wrote ... 2025-04-06 19:22:44.216 UTC [38231] LOG:  checkpoint starting: immediate force wait flush-all 2025-04-06 19:22:44.216 UTC [349525] LOG:  could not read blocks 0..0 in file "base/6179194/2606": Operation canceled 2025-04-06 19:22:44.216 UTC [349525] STATEMENT:  alter table parted_copytest attach partition parted_copytest_a1 for values in(1); 2025-04-06 19:22:44.216 UTC [349525] ERROR:  could not read blocks 0..0 in file "base/6179194/2606": Operation canceled 2025-04-06 19:22:44.216 UTC [349525] STATEMENT:  alter table parted_copytest attach partition parted_copytest_a1 for values in(1); It's reproduced better on tmpfs for me; probably you would need to increase NUM_INSTALLCHECKS/NUM_ITERATIONS for your machine. I can reduce the testing procedure to something trivial, if it makes sense for you. Probably, the same effect can be also achieved with just pgbench... Best regards, Alexander Lakhin Neon (https://neon.tech) --------------gmT8sUur20VooERp96nz4hTK Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Hello Andres,

02.04.2025 14:58, Andres Freund wrote:
Hi,

I've pushed fixes for 1) and 2) and am working on 3).

When running multiple installcheck's against a single server (please find
the ready-to-use script attached (I use more sophisticated version with
additional patches to make installcheck pass cleanly, but that's not
required for this case)), I've encountered an interesting error related to
AIO/uring:
iteration 8: Sun Apr  6 19:22:39 UTC 2025
installchecks finished: Sun Apr  6 19:23:47 UTC 2025
2025-04-06 19:22:44.216 UTC [349525] LOG:  could not read blocks 0..0 in file "base/6179194/2606": Operation canceled
2025-04-06 19:22:44.216 UTC [349525] ERROR:  could not read blocks 0..0 in file "base/6179194/2606": Operation canceled

server.log contains:
2025-04-06 19:22:44.215 UTC [38231] LOG:  checkpoint complete: wrote ...
2025-04-06 19:22:44.216 UTC [38231] LOG:  checkpoint starting: immediate force wait flush-all
2025-04-06 19:22:44.216 UTC [349525] LOG:  could not read blocks 0..0 in file "base/6179194/2606": Operation canceled
2025-04-06 19:22:44.216 UTC [349525] STATEMENT:  alter table parted_copytest attach partition parted_copytest_a1 for values in(1);
2025-04-06 19:22:44.216 UTC [349525] ERROR:  could not read blocks 0..0 in file "base/6179194/2606": Operation canceled
2025-04-06 19:22:44.216 UTC [349525] STATEMENT:  alter table parted_copytest attach partition parted_copytest_a1 for values in(1);

It's reproduced better on tmpfs for me; probably you would need to increase
NUM_INSTALLCHECKS/NUM_ITERATIONS for your machine. I can reduce the testing
procedure to something trivial, if it makes sense for you. Probably, the
same effect can be also achieved with just pgbench...

Best regards,
Alexander Lakhin
Neon (https://neon.tech) --------------gmT8sUur20VooERp96nz4hTK-- --------------i7xs3ZtaYw1IyiUzW2PAMSH4 Content-Type: application/gzip; name="test-icx+.tar.gz" Content-Disposition: attachment; filename="test-icx+.tar.gz" Content-Transfer-Encoding: base64 H4sIAGbW8mcAA+1ae2/bOBLfv/UpuKq3eRSy7KTZos05QBK7aXBpEtgpbhd1TytLtM2NJKok lcfV/e43Qz2dxLbSIDgcUAGpJXI4nMdvhkOyikplMe/mVVNOf3mmp9VqvXmzQ+C3/WanVf3F Z6vVet0m7ddv3rze2dlut3ZIq731+87WL6T1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