Skip to main content
CRUCIBLE
Loading v86 in-browser Linux terminal…
BRENDAN GREGG FLAMEGRAPH · LAB 1 POSTGRES CPU 96%

PostgreSQL 15 CPU FlameGraph · SeqScan + LWLock Buffer Pin Storm

1000 SAMPLES · CLICK FRAME TO ZOOM
all (root) — 100% total (0% self, 1000 samples)all (root)kernel — 9% total (0% self, 90 samples)kernelentry_SYSCALL_64 — 9% total (0% self, 90 samples)entry_SYSC…__x64_sys_epoll_wait — 9% total (0% self, 90 samples)__x64_sys_…tcp_poll — 9% total (9% self, 90 samples)tcp_pollpostgres — 91% total (0% self, 910 samples)postgresAutoVacuumWorker — 4.4% total (0% self, 44 samples)lazy_scan_heap — 4.4% total (0% self, 44 samples)heap_page_prune — 4.4% total (4.4% self, 44 samples)PostgresMain — 79.8% total (0% self, 798 samples)PostgresMainexec_simple_query — 79.8% total (0% self, 798 samples)exec_simple_querypg_plan_query — 3.4% total (0% self, 34 samples)standard_planner — 3.4% total (3.4% self, 34 samples)PortalRun — 76.4% total (0% self, 764 samples)PortalRunExecProcNode — 76.4% total (0% self, 764 samples)ExecProcNodeExecIndexScan — 5.2% total (0% self, 52 samples)ExecI…btgettuple — 5.2% total (0% self, 52 samples)btget…_bt_search — 5.2% total (5.2% self, 52 samples)_bt_s…ExecSeqScan — 71.2% total (0% self, 712 samples)ExecSeqScanExecQual — 11.4% total (0% self, 114 samples)ExecQualtexteq — 11.4% total (11.4% self, 114 samples)texteqheap_getnext — 59.8% total (0% self, 598 samples)heap_getnextheapgetpage — 41.2% total (0% self, 412 samples)heapgetpageReadBufferExtended — 41.2% total (0% self, 412 samples)ReadBufferExtendedLWLockAcquire_BufferMapping — 41.2% total (41.2% self, 412 samples)LWLockAcquire_BufferMappingHeapTupleSatisfiesMVCC — 18.6% total (18.6% self, 186 samples)HeapTupleSatisfiesMVCCWalWriterMain — 6.8% total (0% self, 68 samples)WalWrit…XLogBackgroundFlush — 6.8% total (0% self, 68 samples)XLogBac…__x64_sys_fdatasync — 6.8% total (6.8% self, 68 samples)__x64_s…
TOP HOT LEAF FUNCTION
LWLockAcquire_BufferMapping
Self CPU: 41.2% · Total: 41.2% (412 samples)
STAFF ROOT-CAUSE VERDICT
71% of CPU sits inside ExecSeqScan -> heapgetpage -> LWLockAcquire(BufferMapping) because a missing composite index forced full table scans across 420k dead MVCC tuples.
FIX: CREATE INDEX CONCURRENTLY idx_orders_tenant_status ON orders(tenant_id, status, created_at DESC); VACUUM ANALYZE orders;
Lock / ContentionPostgres EngineNGINX / TLSLinux KernelPython / App
INTERACTIVE GUEST PREVIEW · 12 FIRECRACKER MICROVM LABS

Inspect Real Production Topologies & Outage Configs Before Booting a Live VM

Inspect Live Topology in ArchOS →
SIMULATED P0 INCIDENT SYMPTOM
p99 spiked from 18ms → 4.8s; pg_stat_activity shows 180 queries blocked on LockRelation + PgBouncer cl_waiting climbing.
Nginx :8080FastAPI :8000PgBouncer :6432PostgreSQL 15 + pgvector :5432Redis 7 :6379
REAL VM FILE · config/pgbouncer.ini
[pgbouncer]
pool_mode = transaction
max_client_conn = 1000
default_pool_size = 32
query_wait_timeout = 3
MEMBER ACCESS GATE · SIGN IN OR UPGRADE$49/MO · PAUSE WHEN YOU LAND THE OFFER

Cloud War-Room (Air-Gapped Linux Vaults)

Spin up isolated Linux/Docker Firecracker labs, inject blind production outages, run xterm.js forensics, and mint signed SHA-256 SLA receipts.

  • 12 hardware-isolated Firecracker KVM Linux labs & Guided Quests
  • 30 production chaos scenarios + visual Cloud Infra console
  • In-browser xterm.js shell + server-verified SHA-256 receipts
SPECIMEN BLIND FAULT · M02 PGBOUNCER LOCK STORMAIR-GAPPED LINUX PTY
$ pgbouncer -c "SHOW POOLS;"
cl_active: 482 | cl_waiting: 318 | sv_active: 20 | maxwait: 14.2s

$ psql -c "SELECT pid, wait_event_type, state, left(query,48) FROM pg_stat_activity WHERE wait_event IS NOT NULL;"
  4182 | Lock | active | ALTER TABLE events ADD COLUMN meta jsonb;  <-- BLOCKER
  4199 | Lock | active | INSERT INTO events(tenant_id, payload)...  (14 blocked)