postgres effective_io_concurrency maintenance_io_concurrency - ghdrako/doc_snipets GitHub Wiki
Ilu operacji odczytu z dysku baza może próbować dokonać jednocześnie (asynchronicznie)
Bitmap Heap Scan - To jedyna operacja, w której effective_io_concurrency rozwija skrzydła.
- Postgres najpierw przegląda indeks i tworzy w pamięci "mapę bitową" wszystkich bloków na dysku, które musi odwiedzić.
- Ma teraz gotową listę adresów. Zamiast iść pod każdy adres po kolei, wysyła prośby asynchroniczne (zgodnie z limitem w parametrze) do systemu: "Potrzebuję tych 100 bloków, daj mi je jak najszybciej!".
-- monitor disk I/O activity for individual tables
SELECT relname, heap_blks_read, heap_blks_hit, idx_blks_read, idx_blks_hit
FROM pg_statio_user_tables;
-- monitor the overall I/O activity of the database:
SELECT checkpoints_timed, checkpoints_req, buffers_checkpoint, buffers_clean, maxwritten_clean, buffers_backend, buffers_alloc
FROM pg_stat_bgwriter;
The columns show the number of checkpoints that have been performed, the number of buffers written during checkpoints, the number of buffers cleaned by the background writer, the maximum number of buffers written in a single clean pass, and the number of buffers allocated and used by backends.