postgresql/src/backend/storage
Andres Freund 247ce06b88 aio: Add io_method=worker
The previous commit introduced the infrastructure to start io_workers. This
commit actually makes the workers execute IOs.

IO workers consume IOs from a shared memory submission queue, run traditional
synchronous system calls, and perform the shared completion handling
immediately.  Client code submits most requests by pushing IOs into the
submission queue, and waits (if necessary) using condition variables.  Some
IOs cannot be performed in another process due to lack of infrastructure for
reopening the file, and must processed synchronously by the client code when
submitted.

For now the default io_method is changed to "worker". We should re-evaluate
that around beta1, we might want to be careful and set the default to "sync"
for 18.

Reviewed-by: Noah Misch <noah@leadboat.com>
Co-authored-by: Thomas Munro <thomas.munro@gmail.com>
Co-authored-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/uvrtrknj4kdytuboidbhwclo4gxhswwcpgadptsjvjqcluzmah%40brqs62irg4dt
Discussion: https://postgr.es/m/20210223100344.llw5an2aklengrmn@alap3.anarazel.de
Discussion: https://postgr.es/m/stj36ea6yyhoxtqkhpieia2z4krnam7qyetc57rfezgk4zgapf@gcnactj4z56m
2025-03-18 11:54:01 -04:00
..
aio aio: Add io_method=worker 2025-03-18 11:54:01 -04:00
buffer localbuf: Introduce StartLocalBufferIO() 2025-03-15 22:07:48 -04:00
file Fix copy-and-paste mistake in error message 2025-03-13 15:17:08 +01:00
freespace Update copyright for 2025 2025-01-01 11:21:55 -05:00
ipc aio: Basic subsystem initialization 2025-03-17 18:51:33 -04:00
large_object Update copyright for 2025 2025-01-01 11:21:55 -05:00
lmgr Add GUC option to log lock acquisition failures. 2025-03-14 23:14:12 +09:00
page Remove various unnecessary (char *) casts 2025-02-20 19:49:27 +01:00
smgr Re-add GUC track_wal_io_timing 2025-02-26 09:49:59 +09:00
sync Update copyright for 2025 2025-01-01 11:21:55 -05:00
Makefile Provide API for streaming relation data. 2024-04-03 00:49:46 +13:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00