universal7885: enable zram writeback

Enable Zram writeback feature to allow unused pages in zram be written to flash.

Bug: 128889899
Test: Boot to home

Change-Id: I48ae06e54a66a7d6965afbe8db3d2f157cf8a1f4
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
Jenhao Chen 2019-03-20 14:57:51 -07:00 committed by roynatech2544
commit 30db4a7d90
No known key found for this signature in database
GPG key ID: 9675C32163D88D30
3 changed files with 12 additions and 2 deletions

View file

@ -1,2 +1,8 @@
# pre-render
ro.vendor.perf.scroll_opt=true
# ZRAM writeback
ro.zram.mark_idle_delay_mins=60
ro.zram.first_wb_delay_mins=180
ro.zram.periodic_wb_delay_hours=24

View file

@ -79,7 +79,10 @@
<!-- Shutdown if the battery temperature exceeds (this value * 0.1) Celsius. -->
<integer name="config_shutdownBatteryTemperature">600</integer>
<!-- Enable Zram writeback feature to allow unused pages in zram be written to flash. -->
<bool name="config_zramWriteback">true</bool>
<!-- From Stock framework-res.apk: -->
<bool name="config_setColorTransformAccelerated">true</bool>
<bool name="config_enableNightMode">true</bool>

View file

@ -1 +1,2 @@
/dev/block/zram0 none swap defaults zramsize=100%,max_comp_streams=8
/dev/block/zram0 none swap defaults zramsize=100%,max_comp_streams=8,zram_loopback_path=/data/unencrypted/zram_swap,zram_loopback_size=512M