Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.06 KB

File metadata and controls

28 lines (19 loc) · 1.06 KB

💾 Dynamic Linux Swap Optimizer

A smart shell utility to automatically detect system RAM and allocate the optimal Swap memory configuration on Ubuntu and Debian KVM servers.

Bash Platform


🎯 Why use this?

Running out of memory on game servers or database nodes can lead to abrupt OOM (Out Of Memory) kernel kills. This script:

  • Analyzes existing physical memory (RAM).
  • Creates an optimal, fast /swapfile.
  • Adjusts /etc/fstab for permanent persistence across reboots.
  • Tweaks vm.swappiness and vfs_cache_pressure for optimal performance.

📥 Run

curl -sSL https://raw.githubusercontent.com/RyzehostingNET/DynamicSwapScript/main/swap.sh | bash

🌐 Hosted by Ryzehosting

Maintained by Ryzehosting.com — Fast, reliable KVM vServers with dedicated AMD cores, enterprise DDoS mitigation, and flexible prepaid billing.