~/talk

Changing shared_buffers on the fly

Talkat PGConf.dev 2025 · 2025-05-13..05-16· [databases]
links:none on file
slides:none on file

Proposes changing shared_buffers at runtime by splitting the big shared segment into per-structure mappings, reserving address space and using anonymous backing file growth (ftruncate) with optional fallocate to force allocation so remap is unnecessary. Prototype coordinates resize in a single phase, handles dirty buffer eviction and pinned-buffer choices, leaves buffer-lookup resizing as an open problem, and accepts Linux-first deployment; failures can abort or roll back or—worst case—require restart.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 5:22Current shared buffers limitations
  3. 13:42Shared memory layout details
  4. 23:12Resizing shared buffers challenges
  5. 30:02Synchronizing resizing across processes
  6. 37:54User experience and triggering resizing
  7. 45:14Cross-platform considerations
  8. 51:03Huge pages and memory constraints
  9. 52:05Q&A and closing
~/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.