summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorMartin Liu <liumartin@google.com>2020-09-07 11:08:49 +0800
committerMartin Liu <liumartin@google.com>2020-09-08 14:05:00 +0800
commit492bd6ff37fcf540646ac5895afa77fcb7d1eab5 (patch)
tree9c9bfb0bf415def9a31e66d0309d6a8a7994400e /mm
parent4b3c246eaa22621ebf217939fe515ffd2fe824b6 (diff)
mm: adjust and move zram write back policy to common
The first default zram write back time is 3 hours which is for go device to quickly save more ram. For Pixel devices, we have more working set and could bring launch time impact if we write back too fast. Thus, adjust the first time write back time to 24 hours which is aligned with periodic write back time. We also moved zram write back policy to common folder so it's easier to mantain. Bug: 166739872 Test: boot Signed-off-by: Martin Liu <liumartin@google.com> Change-Id: I2388dd6d75ab0a938fe0edae0563fd26e48c9908
Diffstat (limited to 'mm')
-rw-r--r--mm/device.mk6
-rw-r--r--mm/device_legacy.mk6
2 files changed, 12 insertions, 0 deletions
diff --git a/mm/device.mk b/mm/device.mk
index 150410e..656ecb4 100644
--- a/mm/device.mk
+++ b/mm/device.mk
@@ -6,4 +6,10 @@ PRODUCT_PACKAGES += \
mm_logd
endif
+# ZRAM writeback
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.zram.mark_idle_delay_mins=60 \
+ ro.zram.first_wb_delay_mins=1440 \
+ ro.zram.periodic_wb_delay_hours=24
+
BOARD_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/mm
diff --git a/mm/device_legacy.mk b/mm/device_legacy.mk
index 140fb85..d32648a 100644
--- a/mm/device_legacy.mk
+++ b/mm/device_legacy.mk
@@ -6,4 +6,10 @@ PRODUCT_PACKAGES += \
mm_logd
endif
+# ZRAM writeback
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.zram.mark_idle_delay_mins=60 \
+ ro.zram.first_wb_delay_mins=1440 \
+ ro.zram.periodic_wb_delay_hours=24
+
BOARD_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/mm