From: Michael Brown Date: Tue, 22 Apr 2014 17:06:36 +0000 (-0400) Subject: Modify swapfile size from 512MiB to 1GiB X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8b9d6bffec661aad9cc3af934b708e8962219f91;p=discourse_docker.git Modify swapfile size from 512MiB to 1GiB --- 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