msm8937-common: post_boot: Tune/configure ZRAM memory parameters
1) Set zRam size to 1GB for 3GB and above targets Increasing the swappiness and zRam size improves zRam savings and app concurrency. 2) Corrected the vmpressure_file_min value. CRs-Fixed: 2176961 Change-Id: I4eb71110f35f67b984bea4106d6cec3c2586d024
This commit is contained in:
parent
c8c77b1c95
commit
3bf8f219e8
2 changed files with 5 additions and 5 deletions
|
@ -23,4 +23,4 @@
|
|||
|
||||
/devices/soc/7864900.sdhci/mmc_host* auto auto nosuid,nodev wait,voldmanaged=sdcard1:auto,noemulatedsd,encryptable=footer
|
||||
/devices/soc/78db000.usb/msm_hsusb_host* auto auto nosuid,nodev wait,voldmanaged=usbotg:auto
|
||||
/dev/block/zram0 none swap defaults zramsize=536870912,max_comp_streams=4
|
||||
/dev/block/zram0 none swap defaults zramsize=1073741824,max_comp_streams=4
|
||||
|
|
|
@ -135,13 +135,13 @@ on enable-low-power
|
|||
write /sys/module/process_reclaim/parameters/enable_process_reclaim 1
|
||||
write /sys/module/process_reclaim/parameters/pressure_max 70
|
||||
write /sys/module/process_reclaim/parameters/swap_opt_eff 30
|
||||
write /sys/module/process_reclaim/parameters/pressure_min 50
|
||||
write /sys/module/process_reclaim/parameters/per_swap_size 512
|
||||
write /sys/module/process_reclaim/parameters/pressure_min 10
|
||||
write /sys/module/process_reclaim/parameters/per_swap_size 1024
|
||||
|
||||
# Set lowmemorykiller tuning parameters
|
||||
write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 1
|
||||
write /sys/module/lowmemorykiller/parameters/minfree "15360,19200,23040,26880,34415,43737"
|
||||
write /sys/module/lowmemorykiller/parameters/vmpressure_file_min 53059
|
||||
write /sys/module/lowmemorykiller/parameters/minfree "18432,23040,27648,32256,55296,80640"
|
||||
write /sys/module/lowmemorykiller/parameters/vmpressure_file_min 80640
|
||||
|
||||
# Set ZCache parameters
|
||||
write /sys/module/zcache/parameters/clear_percent 3
|
||||
|
|
Loading…
Reference in a new issue