From 9ba570b2cfcac10c3eaf5f2291012d841e337f83 Mon Sep 17 00:00:00 2001 From: Pijus Kamandulis Date: Sat, 8 Jun 2019 13:49:09 +0300 Subject: [PATCH] Create swap.sh --- performance/swap.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 performance/swap.sh diff --git a/performance/swap.sh b/performance/swap.sh new file mode 100644 index 0000000..39a16a7 --- /dev/null +++ b/performance/swap.sh @@ -0,0 +1,5 @@ +#!/bin/sh +fallocate -l 2G /swapfile +chmod 600 /swapfile +mkswap /swapfile +swapon /swapfile