sm6250-common: 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>
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I6b8f537faf2ffff1a93170aad763f2be4dcaba42
This commit is contained in:
Randall Huang 2019-03-15 17:23:50 +08:00 committed by Alexander Winkowski
parent 23d6c382f2
commit 835a05445a
No known key found for this signature in database
GPG Key ID: 72762A66704CDE44
2 changed files with 8 additions and 0 deletions

View File

@ -289,6 +289,9 @@
in hardware. --> in hardware. -->
<bool name="config_setColorTransformAccelerated">true</bool> <bool name="config_setColorTransformAccelerated">true</bool>
<!-- Enable Zram writeback feature to allow unused pages in zram be written to flash. -->
<bool name="config_zramWriteback">true</bool>
<!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService <!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService
when registering authenticators with BiometricService. Format must be ID:Modality:Strength, when registering authenticators with BiometricService. Format must be ID:Modality:Strength,
where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java, where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java,

View File

@ -201,3 +201,8 @@ ro.config.vc_call_vol_steps=10
# WiFi # WiFi
wifi.aware.interface=wifi-aware0 wifi.aware.interface=wifi-aware0
# ZRAM
ro.zram.first_wb_delay_mins=180
ro.zram.mark_idle_delay_mins=60
ro.zram.periodic_wb_delay_hours=24