Mount a 2 GiB memory-backed /dev/shm in workspaces #9
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
GuillaumeHemmen-k8s/coder-sindri-deployment!9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/dev-shm-for-jcef"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Workspaces get the container runtime default
/dev/shmof 64 MB. JetBrainsIDEs run JCEF (the embedded Chromium) out of process:
cef_serverdraws eachMarkdown preview off screen and hands the frame buffers (about 7 MB each for
a full pane) to the IDE through
/dev/shm. Once it fills,idea.logshowsFailed to initialize the Markdown previewwithERR_INSUFFICIENT_RESOURCESand the preview renders blank or only partly.
Seen on the Beewise workspace (55 MB of 64 MB used). The personal workspace
has the same 64 MB mount, since both come from this template.
Change: an
emptyDirwithmedium = "Memory"andsize_limit = "2Gi"mounted at
/dev/shm. Memory-backed pages count against the container memorylimit only when written, so idle workspaces pay nothing.
Checked with
terraform validate. Before pushing the template version toCoder, diff the active Coder version's
main.tfagainst master in case ofCoder-only edits. Workspaces pick it up on their next rebuild.
🤖 Generated with Claude Code