~/talk

PostgreSQL container groups, aka cgroups down the road

Talkat PGConf.dev 2025 · 2025-05-13..05-16· [databases, linux-and-operating-systems]
links:none on file
slides:none on file

Prototype integrates postgresql-cgroups branch with systemd cgroup v2 to create hierarchical groups (critical, workload, maintenance), uses systemd delegation and userland tools like CGTop screenshot to measure CPU, memory, IO and shows concrete gains: group-wide kill, NUMA binding via cpuset, and fast freeze/resume backends for connection throttling. It pairs cgroups with PSI and proposes eBPF hooks but currently needs root and kernel support; prototype works but shows misleading IO/memory accounting for workers until controllers are pushed to leaf groups and PostgreSQL switches from fork to clone and adds poll/PSI wait events.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:35What are control groups
  3. 4:27Cgroup V1 vs V2 differences
  4. 9:52Why PostgreSQL should use Cgroup V2
  5. 10:12Custom Cgroup hierarchy for PostgreSQL
  6. 13:24Challenges with Cgroup integration
  7. 16:49Key rules and controllers in Cgroups
  8. 20:43Trade-offs of Cgroup accounting
  9. 22:29Setting up and managing Cgroups
  10. 23:32Potential PostgreSQL improvements
  11. 24:36Q&A and closing remarks
~/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.