blob: 3beeba394550baacabaaad56b7f3bdc7b32ef435 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#originally device/intel/common/memory/init.zram.rc
on boot
# Read one page at a time for swap (default is 8)
write /proc/sys/vm/page-cluster 0
# Avoid evicting pages and use zram disk
write /proc/sys/vm/swappiness 100
on post-fs-data
# Enable swaps described in the fstab
swapon_all /fstab.zram
|