Merge "rootdir: init.rc: use default dirty writeout policy" am: a76ee8b929
Change-Id: I5c2ff99cc705e4d454539e734549e1e2e019fc8a
This commit is contained in:
commit
6fa02ca30a
1 changed files with 6 additions and 5 deletions
|
|
@ -825,6 +825,11 @@ on zygote-start && property:ro.crypto.state=encrypted && property:ro.crypto.type
|
||||||
start zygote
|
start zygote
|
||||||
start zygote_secondary
|
start zygote_secondary
|
||||||
|
|
||||||
|
on boot && property:ro.config.low_ram=true
|
||||||
|
# Tweak background writeout
|
||||||
|
write /proc/sys/vm/dirty_expire_centisecs 200
|
||||||
|
write /proc/sys/vm/dirty_background_ratio 5
|
||||||
|
|
||||||
on boot
|
on boot
|
||||||
# basic network init
|
# basic network init
|
||||||
ifup lo
|
ifup lo
|
||||||
|
|
@ -846,11 +851,7 @@ on boot
|
||||||
chown root system /sys/block/zram0/writeback
|
chown root system /sys/block/zram0/writeback
|
||||||
chmod 0664 /sys/block/zram0/writeback
|
chmod 0664 /sys/block/zram0/writeback
|
||||||
|
|
||||||
# Tweak background writeout
|
# F2FS tuning. Set cp_interval larger than dirty_expire_centisecs, 30 secs,
|
||||||
write /proc/sys/vm/dirty_expire_centisecs 200
|
|
||||||
write /proc/sys/vm/dirty_background_ratio 5
|
|
||||||
|
|
||||||
# F2FS tuning. Set cp_interval larger than dirty_expire_centisecs
|
|
||||||
# to avoid power consumption when system becomes mostly idle. Be careful
|
# to avoid power consumption when system becomes mostly idle. Be careful
|
||||||
# to make it too large, since it may bring userdata loss, if they
|
# to make it too large, since it may bring userdata loss, if they
|
||||||
# are not aware of using fsync()/sync() to prepare sudden power-cut.
|
# are not aware of using fsync()/sync() to prepare sudden power-cut.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue