Skip to content

Conversation

@akuzminsky
Copy link
Member

On instances with large RAM and small root volumes (e.g. c5.metal with
192 GB RAM and 30 GB root), the swap profile attempted to create a swap
file of 2x RAM (~377 GB), filling the root filesystem.

Swap size is now the minimum of:

  • 2x total RAM (traditional rule for small instances)
  • 8 GB hard cap
  • 25% of available disk space on /

Fixes #245

  On instances with large RAM and small root volumes (e.g. c5.metal with
  192 GB RAM and 30 GB root), the swap profile attempted to create a swap
  file of 2x RAM (~377 GB), filling the root filesystem.

  Swap size is now the minimum of:
  - 2x total RAM (traditional rule for small instances)
  - 8 GB hard cap
  - 25% of available disk space on /

  Fixes #245
@akuzminsky akuzminsky merged commit 82dec4a into main Feb 9, 2026
2 checks passed
@akuzminsky akuzminsky deleted the cap-swap-size-development branch February 9, 2026 02:47
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.

Profile::Swap fails on instances with large RAM and small root volume

2 participants