Skip to content

feat(spore): add 2GB swapfile with low swappiness - #323

Merged
stackptr merged 2 commits into
mainfrom
spore/swap
Mar 7, 2026
Merged

stackptr merged 2 commits into
mainfrom
spore/swap

Conversation

@stackptr

@stackptr stackptr commented Mar 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add a 2GB swapfile at /swapfile to spore as an OOM safety net
  • Set vm.swappiness = 1 since the VPS block device is rotational (HDD), minimizing expensive swap I/O

Test plan

  • Deploy to spore with nixos-rebuild switch
  • Verify swapfile exists: swapon --show
  • Verify swappiness: cat /proc/sys/vm/swappiness returns 1

🤖 Generated with Claude Code

stackptr and others added 2 commits March 7, 2026 08:24
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
spore's block device reports as rotational (HDD), so minimize swap
usage to avoid expensive disk I/O. Swap will only be used as a last
resort to prevent OOM kills.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@stackptr stackptr changed the title feat(spore): add 2GB swapfile feat(spore): add 2GB swapfile with low swappiness Mar 7, 2026

stackptr commented Mar 7, 2026

Copy link
Copy Markdown
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@stackptr
stackptr enabled auto-merge (squash) March 7, 2026 16:34
@stackptr
stackptr merged commit 579413c into main Mar 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant