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

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