swap file on

Create a permanent swap file equal to RAM bytes

Create a permanent swap file equal to RAM bytes.

Yeah I know this is the lazy admin talking, but the inside wants out …

Also, notice that the line 6 sets swappiness to 10 (which is normal for a server)

The script

Deploying directly to your server

Copy this onliner and run it, as root, in your server. Confirm via free -m

 

Series Navigation<< Swap file on! Only when you need it…

Comment:

This site uses Akismet to reduce spam. Learn how your comment data is processed.