projects
/
discourse_docker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
034f655
)
Modify swapfile size from 512MiB to 1GiB
author
Michael Brown
<michael.brown@discourse.org>
Tue, 22 Apr 2014 17:06:36 +0000
(13:06 -0400)
committer
Michael Brown
<michael.brown@discourse.org>
Tue, 22 Apr 2014 17:06:36 +0000
(13:06 -0400)
scripts/mk_swapfile
patch
|
blob
|
blame
|
history
diff --git
a/scripts/mk_swapfile
b/scripts/mk_swapfile
index f2871994936479b6271c96db33e4f458c0d9bda2..1bdaa9183dd48348322537036188390d2df2b52c 100755
(executable)
--- a/
scripts/mk_swapfile
+++ b/
scripts/mk_swapfile
@@
-1,5
+1,5
@@
#!/bin/bash -e
-# This script adds a
512M
B swapfile to the system
+# This script adds a
1G
B 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=
512
k conv=excl
+dd if=/dev/zero of=$SWAPFILE bs=1k count=
1024
k conv=excl
mkswap $SWAPFILE
swapon $SWAPFILE
echo "$SWAPFILE swap swap auto 0 0" >> /etc/fstab
-echo
512M
B swapfile successfully added
+echo
1Gi
B swapfile successfully added