rosemary: Enable ZRAM-writeback job

This patch enables zram-writeback job. It will run idle marking
at 60m since the device is boot. After that, it will do first
writeback after 3hour to sweep initiallized cold pages out.
After that, it periodically write out every 24hour.

Bug: 117682284
Bug: 127185055
Test: confirm with manual testing

Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I6857c79ca3ce6a3619f4b7e200d7f17a8decd659
This commit is contained in:
Randall Huang
2022-09-22 20:06:12 +01:00
committed by Matsvei Niaverau
parent 8871aad397
commit ecd0b35267
2 changed files with 8 additions and 0 deletions

View File

@@ -435,6 +435,9 @@
<item>0:2:15</item>
</string-array>
<!-- Enable Zram writeback feature to allow unused pages in zram be written to flash. -->
<bool name="config_zramWriteback">true</bool>
<!-- The bounding path of the cutout region of the main built-in display.
Must either be empty if there is no cutout region, or a string that is parsable by
{@link android.util.PathParser}.

View File

@@ -71,3 +71,8 @@ ro.mediatek.wlan.p2p=1
mediatek.wlan.ctia=0
wifi.tethering.interface=ap0
wifi.direct.interface=p2p0
# ZRAM
ro.zram.mark_idle_delay_mins=60
ro.zram.first_wb_delay_mins=180
ro.zram.periodic_wb_delay_hours=24