work_mem: it's a trap! | My DBA Notebook

Status
✓ complete
Domain
mydbanotebook.org
Archived
2026-03-18 17:05:06

Plaintext Content

(415 bytes)
My friend Henrietta Dombrovskaya pinged me on Telegram. Her production cluster had just been killed by the OOM killer after eating 2 TB of RAM. work_mem was set to 2 MB.
Something didn’t add up.
Hetty, like me, likes playing with monster hardware. 2 TB of RAM is not unusual in her world. But losing the whole cluster to a single query during peak operations is a very different kind of problem from a 3am outage.

Archived Page Preview (Full Archive)

Page Captures

Screenshot

Page screenshot

313.5 KB

PDF Document

📄View PDF

118.2 KB

MHTML Archive

📦Download MHTML

28.7 KB

Archived Files

TypeFileSizeDedupActions
HTML (Original)raw.html17.3 KB—
HTML (With Banner)view.html20.6 KB—
HTML (Full Archive)complete.html17.7 KB—
Screenshotscreenshot.webp313.5 KB—
PDFpage.pdf118.2 KB—
MHTML Archivecomplete.mhtml28.7 KB—

Total Size: 516.0 KB

Archive Jobs (5)

JobStatusStartedCompletedDurationDetails
Fetch HTML✓ completed2026-03-18 17:04:552026-03-18 17:04:561.0s—
Monolith✓ completed2026-03-18 17:04:572026-03-18 17:04:581.000s18171 bytes
Screenshot✓ completed2026-03-18 17:04:582026-03-18 17:05:013.0s320984 bytes
PDF✓ completed2026-03-18 17:05:012026-03-18 17:05:043.0s121052 bytes
MHTML✓ completed2026-03-18 17:05:042026-03-18 17:05:062.0s29351 bytes

Archive Metadata

Archive ID530
Link ID530
Created At2026-03-18 17:04:54
Statuscomplete
Retry Count0
Is NSFWfalse
Content Typetext
Link Info
Original URLhttps://mydbanotebook.org/posts/work_mem-its-a-trap/
Normalized URLhttps://mydbanotebook.org/posts/work_mem-its-a-trap
Domainmydbanotebook.org
Last Archived At2026-03-18 17:05:06

Compare with Another Archive

Enter an archive ID to compare content differences.