Re: aio tests failing on newer Linux kernels

From: Alexander Lakhin <exclusion(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>, Aleksander Alekseev <aleksander(at)tigerdata(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Andres Freund <andres(at)anarazel(dot)de>
Subject: Re: aio tests failing on newer Linux kernels
Date: 2026-07-28 04:00:00
Message-ID: 5a7d0fc3-f46e-4cbe-8886-ad38b140a7bd@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello Aleksander and Michael,

28.07.2026 05:24, Michael Paquier пишет:
> On Mon, Jul 27, 2026 at 04:36:24PM +0300, Aleksander Alekseev wrote:
>>> AI suggests the new behavior is caused by the "io_uring: use region api
>>> for SQ/CQ" change landed in the kernel version 6.14.
> No idea about the AI argument, but..
>
>> Two cents: I'm on Ubuntu 24.04 with Linux 6.14.0-37-generic and
>> liburing 2.5 and the tests pass fine for me.
> You are not alone. Various buildfarm members are also turning red
> with random failures across multiple tests because of this issue.

I think, I've found the difference -- on Debian I'm seeing:
user(at)debian:~$ ulimit -l
8192
vs
vagrant(at)ubuntu:~$ ulimit -l
2044616

Thus, with "ulimit -l 8192" set on Ubuntu 24.04, I've got the aio failures there as well:
Linux ubuntu 6.14.0-37-generic #37~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 10:25:38 UTC 2 x86_64 x86_64 x86_64
GNU/Linux

$  meson test test_aio_* -j 30
...
Ok:                 101
Expected Fail:      0
Fail:               19
Unexpected Pass:    0

Also reproduced on Fedora, with:
Linux localhost.localdomain 6.17.10-100.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Dec  1 16:10:21 UTC 2025 x86_64 GNU/Linux
$ ulimit -l
8192
(default)

Best regards,
Alexander

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2026-07-28 04:44:27 Re: Recovery conflict resolution misses backends that import snapshots
Previous Message shveta malik 2026-07-28 03:45:44 Re: Support EXCEPT for ALL SEQUENCES publications