Skip to content

Commit

Permalink
Use 33% RAM for swap (was 90%). Works best for my laptop.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunchev committed Mar 19, 2013
1 parent b835ef0 commit 86d9843
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zram
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The factor is how much (from 0 to 100, percentage)
# of system RAM to allocate to ZRAM block devices
# Too big, and your system will start killing off processes
FACTOR=90
FACTOR=33
2 changes: 1 addition & 1 deletion zramstart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ num_cpus=$(grep -c processor /proc/cpuinfo)
[ "$num_cpus" != 0 ] || num_cpus=1

last_cpu=$((num_cpus - 1))
FACTOR=90
FACTOR=33
[ -f /etc/sysconfig/zram ] && source /etc/sysconfig/zram || true
factor=$FACTOR # percentage

Expand Down

0 comments on commit 86d9843

Please sign in to comment.