Allow write access to system_server on zram sysfs
System server needs to be able to write to idle and writeback nodes in the zram sysfs directory. Bug: 117682284 Bug: 122674343 Test: Test writeback on go ref device Change-Id: I1cd663b73a7ebb255fe7e459601e720961bbd69e
This commit is contained in:
parent
83968c53e1
commit
3a63283aff
1 changed files with 6 additions and 0 deletions
|
|
@ -643,6 +643,12 @@ on boot
|
|||
chown root system /sys/module/lowmemorykiller/parameters/minfree
|
||||
chmod 0664 /sys/module/lowmemorykiller/parameters/minfree
|
||||
|
||||
# System server manages zram writeback
|
||||
chown root system /sys/block/zram0/idle
|
||||
chmod 0664 /sys/block/zram0/idle
|
||||
chown root system /sys/block/zram0/writeback
|
||||
chmod 0664 /sys/block/zram0/writeback
|
||||
|
||||
# Tweak background writeout
|
||||
write /proc/sys/vm/dirty_expire_centisecs 200
|
||||
write /proc/sys/vm/dirty_background_ratio 5
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue