Re: Potential "AIO / io workers" inter-worker locking issue in PG18?

From: Marco Boeringa <marco(at)boeringa(dot)demon(dot)nl>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: "andres(at)anarazel(dot)de >> Andres Freund" <andres(at)anarazel(dot)de>, Thom Brown <thom(at)linux(dot)com>
Subject: Re: Potential "AIO / io workers" inter-worker locking issue in PG18?
Date: 2025-10-07 19:49:14
Message-ID: fbac4358-21de-4c25-b325-6bb07b8e8e15@boeringa.demon.nl
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Andres,

Probably less useful, but just to further illustrate the issue, the
results op 'top' which shows multiple stuck postgress processes already
busy for hours and as written before all displaying as 'active' with no
wait events in pgAdmin:

top - 21:42:44 up 12:20,  2 users,  load average: 16,14, 16,14, 16,09
Tasks: 664 total,  17 running, 647 sleeping,   0 stopped,   0 zombie
%Cpu(s): 37,0 us,  0,1 sy,  0,0 ni, 62,9 id,  0,0 wa,  0,0 hi, 0,0 si, 
0,0 st
MiB Mem : 393429,0 total, 297340,0 free,  53521,1 used,  91791,0 buff/cache
MiB Swap: 153600,0 total, 153600,0 free,      0,0 used. 339907,9 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM  TIME+
COMMAND
 118256 postgres  20   0  164,3g 994408 985600 R 100,0   0,2 309:57.22
postgres
 118264 postgres  20   0  164,3g   1,0g 994,8m R 100,0   0,3 309:57.46
postgres
 118367 postgres  20   0  164,3g 911516 907456 R 100,0   0,2 309:55.78
postgres
 118368 postgres  20   0  164,3g 915388 911328 R 100,0   0,2 309:55.82
postgres
 118369 postgres  20   0  164,3g 914684 910272 R 100,0   0,2 309:55.20
postgres
 118372 postgres  20   0  164,3g 924188 916256 R 100,0   0,2 309:55.20
postgres
 118254 postgres  20   0  164,3g   1,0g   1,0g R  99,9   0,3 309:52.71
postgres
 118255 postgres  20   0  164,3g 993,6m 981,8m R  99,9   0,3 309:57.73
postgres
 118259 postgres  20   0  164,3g 978,2m 988768 R  99,9   0,2 309:57.47
postgres
 118261 postgres  20   0  164,3g   1,0g 987,2m R  99,9   0,3 309:57.52
postgres
 118262 postgres  20   0  164,3g 998560 990176 R  99,9   0,2 309:57.04
postgres
 118265 postgres  20   0  164,3g   1,0g   1,0g R  99,9   0,3 309:55.86
postgres
 118365 postgres  20   0  164,3g 925244 917312 R  99,9   0,2 309:56.02
postgres
 118366 postgres  20   0  164,3g 920668 912384 R  99,9   0,2 309:56.02
postgres
 118370 postgres  20   0  164,3g 923132 915200 R  99,9   0,2 309:55.22
postgres
 118373 postgres  20   0  164,3g 924188 916256 R  99,9   0,2 309:54.96
postgres
   2546 ubuntu_+  20   0  560524 266288 106704 S  21,8   0,1  7:48.62 Xorg
   2954 ubuntu_+  20   0 9050316 455464 167812 S   7,3   0,1  4:33.90
gnome-s+
   1855 xrdp      20   0  133248  16344   8800 S   1,3   0,0  0:37.48 xrdp
   4329 ubuntu_+  20   0  851956  56648  43292 S   0,7   0,0  0:25.66
gnome-t+
 123595 ubuntu_+  20   0   14644   5632   3520 R   0,4   0,0  0:00.31 top
 123432 root      20   0       0      0      0 I   0,2   0,0  0:00.09
kworker+
   1385 polkitd   20   0  384600   9744   7392 S   0,1   0,0  0:01.92
polkitd
   1982 gdm       20   0 8805756 237412 128832 S   0,1   0,1  1:20.05
gnome-s+
   3259 ubuntu_+  20   0  388852  11472   6688 S   0,1   0,0  0:08.03
ibus-da+
   3368 ubuntu_+  20   0  347872  30504  17556 S   0,1   0,0  0:03.70
ibus-ex+
   3638 ubuntu_+  20   0  236772   6688   6336 S   0,1   0,0  0:02.33
ibus-en+
  30304 ubuntu_+  20   0 6490464 271864 129800 S   0,1   0,1  0:23.91
nautilus
      1 root      20   0   23892  13024   8800 S   0,0   0,0  0:04.11
systemd
      2 root      20   0       0      0      0 S   0,0   0,0  0:00.04
kthreadd
      3 root      20   0       0      0      0 S   0,0   0,0  0:00.00
pool_wo+
      4 root       0 -20       0      0      0 I   0,0   0,0  0:00.00
kworker+
      5 root       0 -20       0      0      0 I   0,0   0,0  0:00.00
kworker+
      6 root       0 -20       0      0      0 I   0,0   0,0  0:00.00
kworker+
      7 root       0 -20       0      0      0 I   0,0   0,0  0:00.00
kworker+
      9 root       0 -20       0      0      0 I   0,0   0,0  0:00.00
kworker+
     10 root      20   0       0      0      0 I   0,0   0,0  0:05.18
kworker+

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2025-10-07 19:56:34 Re: Potential "AIO / io workers" inter-worker locking issue in PG18?
Previous Message Marco Boeringa 2025-10-07 19:34:00 Re: Potential "AIO / io workers" inter-worker locking issue in PG18?