Create swap.sh

This commit is contained in:
Pijus Kamandulis 2019-06-08 13:49:09 +03:00 committed by GitHub
parent 33030b030b
commit 9ba570b2cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
performance/swap.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile