Skip to content

Commit

Permalink
set size of tmpfs to 80% of RAM size
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Dec 8, 2020
1 parent c97fee0 commit dd2d49b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mkramdisk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mount_ramdisk() {
set -e
local tmp1=$(mktemp) || exit 12
tar -C $1 -cf $tmp1 .
mount $2 $3 -onoatime -t tmpfs tmpfs $1 || exit 13
mount $2 $3 -onoatime,size=80% -t tmpfs tmpfs $1 || exit 13
[ X$verbose = X1 ] && echo "Ramdisk mounted onto $1"
tar -C $1 -xf $tmp1
rm -f $tmp1
Expand Down

0 comments on commit dd2d49b

Please sign in to comment.