~/talk

PostgreSQL and Linux Kernel interactions

Talkat POSETTE: An Event for Postgres 2025 · 2025-06-10..06-12· [databases]
slides:none on file

Shows how PostgreSQL actually calls the kernel: process forks use clone to spawn workers, shared memory uses mmap MAP_SHARED, and signals implement latch coordination (WaitLatch/SetLatch) rather than vague “IPC.” Demonstrations use strace, perf, fincore and /proc to find where postgres blocks, quantify double buffering (kernel page cache plus Postgres buffers), and show that enabling direct I/O removes kernel caching. Examples cover copy_file_range and io_uring usage, PG16/17 vectorized preads, fallocate, sync_file_range, and prefetch via fadvise.

AI-written summary · about

  1. 0:00Introduction
  2. 2:45What are you going to learn?
  3. 5:32Strace basics
  4. 7:20Interactions with kernel (high level view)
  5. 9:27System call examples
  6. 13:28Process management
  7. 15:22Memory, Signals
  8. 20:03Buffered & Direct I/O
  9. 24:42With and without I/O Combining (PG16 & PG17)
  10. 25:33Prefetch, Misc system calls, New usages
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.