Skip to content

Commit 86d9843

Browse files
committed
Use 33% RAM for swap (was 90%). Works best for my laptop.
1 parent b835ef0 commit 86d9843

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

zram

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# The factor is how much (from 0 to 100, percentage)
22
# of system RAM to allocate to ZRAM block devices
33
# Too big, and your system will start killing off processes
4-
FACTOR=90
4+
FACTOR=33

zramstart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ num_cpus=$(grep -c processor /proc/cpuinfo)
44
[ "$num_cpus" != 0 ] || num_cpus=1
55

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

0 commit comments

Comments
 (0)