swap-manager
script

swap-manager

Product Description

Swap Manager is a simple yet powerful Bash script for easy management of swap files and system swappiness on your Linux VPS. Designed for developers, system administrators, and enthusiasts, it provides a straightforward way to optimize system performance without complex commands.

Built for reliability and convenience, the Swap Manager script ensures your system's memory settings are configured correctly to prevent performance bottlenecks.


✨ Features​

πŸ“ Dynamic Swap File Creation β€” easily create and manage swap files of any size.
βœ… Automated Disk Space Check β€” prevents creation of swap files larger than available storage.
πŸ“ Persistent Swappiness Settings β€” configure custom or default swappiness values that persist across reboots.
πŸ“‹ Real-time Status Display β€” view current swap usage and swappiness settings at a glance.
πŸ”ƒ Easy Swap Deactivation β€” safely remove swap files with a confirmation prompt.
βš™οΈ Simple GRUB Configuration β€” option to modify GRUB for swapaccount=1 to enable swap accounting.


πŸ”§ Requirements​

  • Linux VPS (Debian/Ubuntu recommended)

  • sudo access for managing system settings

  • Basic command-line usage