forked from actuallyrizzn/sanctum-installer
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Issue: Add 2-3GB Swap Space to Bootstrap Script for Low-End Linux Installs
Problem
Low-end Linux systems (especially those with limited RAM) can experience memory pressure during installation and operation. Without adequate swap space, the system may become unresponsive or fail during resource-intensive operations.
Current Situation
The bootstrap/installer script does not automatically configure swap space, leaving systems vulnerable to out-of-memory conditions.
Proposed Solution
Add automatic swap space configuration to the bootstrap script:
- Create 2-3GB swap file during installation
- Configure swap to persist across reboots (add to
/etc/fstab) - Verify swap is active after installation
Implementation Details
The bootstrap script should:
- Check if swap already exists
- If insufficient swap (< 2GB), create a swap file:
sudo fallocate -l 2G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile
- Add to
/etc/fstabfor persistence:echo "/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab
- Verify swap is active
Benefits
- Prevents out-of-memory errors during installation
- Improves system stability on low-RAM systems
- Reduces risk of installation failures
- Better performance for memory-intensive operations
Target Systems
- VPS instances with < 2GB RAM
- Low-end cloud instances
- Development/test environments with limited resources
Priority
Medium-High - This affects system stability and installation success rate, especially for users with limited resources.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels