~/talk

Analyzing Postgres performance problems using perf and eBPF

slides:none on file

Uses perf to find kernel-side hotspots (high CPU in TLS/crypto locks) and shows that upgrading OpenSSL 1.0.2 → 1.1 raises pgbench throughput ~4x and halves CPU. Demonstrates bpftrace scripts that count OS page-cache misses and bytes per Postgres PID, attach lwlock wait stacks, and augment pg_stat_statements with kernel-level I/O and network-send metrics. Notes tracing cost is probe-frequency dependent; lwlock probes add negligible overhead when already blocked.

AI-written summary · about

  1. 0:00Introduction
  2. 1:48Perf—a Linux kernel profiling tool
  3. 12:48bpftrace
  4. 23:08pg_stat_statements + BPF
  5. 25:32Q&A with Andres & Marco
~/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.