postgresql/src/include/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
..
.gitignore When trace_lwlocks is used, identify individual lwlocks by name. 2015-09-11 14:01:39 -04:00
aio.h aio: Add io_method=worker 2025-03-18 11:54:01 -04:00
aio_internal.h aio: Add io_method=worker 2025-03-18 11:54:01 -04:00
aio_subsys.h aio: Infrastructure for io_method=worker 2025-03-18 11:54:01 -04:00
aio_types.h aio: Add core asynchronous I/O infrastructure 2025-03-17 18:51:33 -04:00
barrier.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
block.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
buf.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
buf_internals.h localbuf: Introduce StartLocalBufferIO() 2025-03-15 22:07:48 -04:00
buffile.h Swap order of extern/static and pg_nodiscard 2025-03-14 07:18:07 +01:00
bufmgr.h Increase default maintenance_io_concurrency to 16 2025-03-18 09:08:10 -04:00
bufpage.h Remove unnecessary (char *) casts [checksum] 2025-02-12 08:59:48 +01:00
bulk_write.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
checksum.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
checksum_impl.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
condition_variable.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
copydir.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
dsm.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
dsm_impl.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
dsm_registry.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
fd.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
fileset.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
freespace.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
fsm_internals.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
indexfsm.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
io_worker.h aio: Infrastructure for io_method=worker 2025-03-18 11:54:01 -04:00
ipc.h pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
item.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
itemid.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
itemptr.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
large_object.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
latch.h Split WaitEventSet functions to separate source file 2025-03-06 01:26:16 +02:00
lmgr.h Add GUC option to log lock acquisition failures. 2025-03-14 23:14:12 +09:00
lock.h Add GUC option to log lock acquisition failures. 2025-03-14 23:14:12 +09:00
lockdefs.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
lwlock.h Make parallel nbtree index scans use an LWLock. 2025-03-08 11:10:14 -05:00
lwlocklist.h aio: Add io_method=worker 2025-03-18 11:54:01 -04:00
md.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
off.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_sema.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_shmem.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pmsignal.h Change shutdown sequence to terminate checkpointer last 2025-01-25 11:37:13 -05:00
predicate.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
predicate_internals.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
proc.h aio: Infrastructure for io_method=worker 2025-03-18 11:54:01 -04:00
procarray.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
proclist.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
proclist_types.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
procnumber.h Fix comment for MAX_BACKENDS. 2025-02-24 15:02:09 -06:00
procsignal.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
read_stream.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
reinit.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
relfilelocator.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
s_lock.h Use a non-locking initial test in TAS_SPIN on AArch64. 2025-01-10 13:18:04 -06:00
sharedfileset.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
shm_mq.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
shm_toc.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
shmem.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
sinval.h Avoid invalidating all RelationSyncCache entries on publication rename. 2025-03-13 09:16:33 +05:30
sinvaladt.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
smgr.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
spin.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
standby.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
standbydefs.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
sync.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
waiteventset.h Fix compiler warnings about typedef redefinitions 2025-03-06 03:10:22 +02:00