aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/guc_tables.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2025-03-30 18:26:44 -0400
committerAndres Freund <andres@anarazel.de>2025-03-30 18:26:44 -0400
commitf4d0730bbca1b338b8f06389d04816c6c9f06e58 (patch)
treef1582249bdce5739364cc8849ec368307ed46ac1 /src/backend/utils/misc/guc_tables.c
parentb27f8637ea708c4b6113f0d29a76cb411b430a27 (diff)
downloadpostgresql-f4d0730bbca1b338b8f06389d04816c6c9f06e58.tar.gz
postgresql-f4d0730bbca1b338b8f06389d04816c6c9f06e58.zip
aio: Basic read_stream adjustments for real AIO
Adapt the read stream logic for real AIO: - If AIO is enabled, we shouldn't issue advice, but if it isn't, we should continue issuing advice - AIO benefits from reading ahead with direct IO - If effective_io_concurrency=0, pass READ_BUFFERS_SYNCHRONOUSLY to StartReadBuffers() to ensure synchronous IO execution There are further improvements we should consider: - While in read_stream_look_ahead(), we can use AIO batch submission mode for increased efficiency. That however requires care to avoid deadlocks and thus done separately. - It can be beneficial to defer starting new IOs until we can issue multiple IOs at once. That however requires non-trivial heuristics to decide when to do so. Reviewed-by: Noah Misch <noah@leadboat.com> Co-authored-by: Andres Freund <andres@anarazel.de> Co-authored-by: Thomas Munro <thomas.munro@gmail.com>
Diffstat (limited to 'src/backend/utils/misc/guc_tables.c')
0 files changed, 0 insertions, 0 deletions