Modify swapfile size from 512MiB to 1GiB
authorMichael Brown <michael.brown@discourse.org>
Tue, 22 Apr 2014 17:06:36 +0000 (13:06 -0400)
committerMichael Brown <michael.brown@discourse.org>
Tue, 22 Apr 2014 17:06:36 +0000 (13:06 -0400)
scripts/mk_swapfile

index f2871994936479b6271c96db33e4f458c0d9bda2..1bdaa9183dd48348322537036188390d2df2b52c 100755 (executable)
@@ -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