~/talk

Fast-path locking improvements in PG18

slides:none on file

PG18 expands fast-path locking capacity (default 16 → 64 entries, tunable via max_locks_per_transaction) and implements a small set-associative small buffers design: hash to a bucket then do a linear scan in cache line, falling back to the main shared lock table on overflow. Code keeps fastpath protocol compatibility, reduces shared-lock-table CPU time dramatically in profiles, and yields order-of-magnitude throughput gains on workloads with many relations or partitions (examples include prepared-query joins across 10→100 partitions). Benchmarks and kernel-time flame charts show the change works.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Why fast-path locking
  3. 6:51Debugging the bottleneck
  4. 11:10How fast-path locking works
  5. 15:29History of fast-path
  6. 18:03Performance improvements
  7. 19:53Designing the new buffer
  8. 24:10Set-associative cache
  9. 25:13Results and trade-offs
  10. 27:21Future improvements
  11. 29:29Acknowledgments
  12. 30:34Closing and resources
~/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.