Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e86ef01a authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

Reduce the checkpoint duration to 30secs



dirty_expire_centisecs is 30secs by default in Linux kernel. Let's use that
period to improve the durability in system wide.

Bug: 410100970
Bug: 288068123
Change-Id: I17c37b5ebcf44aa8feff81ba74fe2357a0ca2054
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@google.com>
parent 9ccbab0d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1091,7 +1091,7 @@ on zygote-start

on boot && property:ro.config.low_ram=true
    # Tweak background writeout
    write /proc/sys/vm/dirty_expire_centisecs 200
    write /proc/sys/vm/dirty_expire_centisecs 30
    write /proc/sys/vm/dirty_background_ratio  5

on boot && property:suspend.disable_sync_on_suspend=true
@@ -1132,7 +1132,7 @@ on boot
    # to avoid power consumption when system becomes mostly idle. Be careful
    # 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.
    write /dev/sys/fs/by-name/userdata/cp_interval 200
    write /dev/sys/fs/by-name/userdata/cp_interval 30
    write /dev/sys/fs/by-name/userdata/gc_urgent_sleep_time 50
    write /dev/sys/fs/by-name/userdata/iostat_period_ms 1000
    write /dev/sys/fs/by-name/userdata/iostat_enable 1