From 8b9d6bffec661aad9cc3af934b708e8962219f91 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 22 Apr 2014 13:06:36 -0400 Subject: [PATCH] Modify swapfile size from 512MiB to 1GiB --- scripts/mk_swapfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/mk_swapfile b/scripts/mk_swapfile index f287199..1bdaa91 100755 --- a/scripts/mk_swapfile +++ b/scripts/mk_swapfile @@ -1,5 +1,5 @@ #!/bin/bash -e -# This script adds a 512MB swapfile to the system +# This script adds a 1GB swapfile to the system function do_err() { code=$? @@ -36,9 +36,9 @@ set_swappiness SWAPFILE=$(get_new_swapfile) umask 077 -dd if=/dev/zero of=$SWAPFILE bs=1k count=512k conv=excl +dd if=/dev/zero of=$SWAPFILE bs=1k count=1024k conv=excl mkswap $SWAPFILE swapon $SWAPFILE echo "$SWAPFILE swap swap auto 0 0" >> /etc/fstab -echo 512MB swapfile successfully added +echo 1GiB swapfile successfully added -- 2.25.1