~/talk

Designing a monitoring feature in PostgreSQL

linkedin:rahila-syed
slides:none on file

Implements pg_get_process_memory_contexts(pid, get_summary, timeout) to fetch on‑demand per‑process memory context stats by sending a signal and waiting on a signal + condition variable + LWLock handshake; stores variable data in DSM/DSA with dsa_allocate/dsa_pin segments, aggregates overflow into a single cumulative line to cap RAM, and traverses contexts breadth‑first. Output includes total_bytes, free_bytes, free_chunks, num_agg_contexts and path; demo shows get_summary=true collapsing deeper nodes (CacheMemoryContext aggregates 98 contexts) and the feature returns useful live snapshots with tunable latency/memory tradeoffs.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 1:06Types of monitoring systems
  3. 4:12Components of a monitoring feature
  4. 6:17Need for monitoring of memory contexts statistics
  5. 10:31Explanation of DSM and CSA
  6. 15:44Details of memory context statistics monitoring feature
  7. 19:41Design iterations of memory contexts monitoring feature
  8. 23:20Memory contexts monitoring function signature and output
~/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.