am fee2cfb0: am 9efdcd96: Fix issue #3401380: Raise OOM killer limits
* commit 'fee2cfb01165f6797d783c6a8c0b1fba4f591355': Fix issue #3401380: Raise OOM killer limits
This commit is contained in:
commit
24823cfa84
|
@ -47,3 +47,5 @@
|
|||
# ************************************************
|
||||
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
|
||||
# ************************************************
|
||||
|
||||
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/init.rc)
|
||||
|
|
|
@ -210,15 +210,28 @@ on boot
|
|||
|
||||
# Define the memory thresholds at which the above process classes will
|
||||
# be killed. These numbers are in pages (4k).
|
||||
setprop ro.FOREGROUND_APP_MEM 2048
|
||||
setprop ro.VISIBLE_APP_MEM 3072
|
||||
setprop ro.PERCEPTIBLE_APP_MEM 4096
|
||||
setprop ro.HEAVY_WEIGHT_APP_MEM 4096
|
||||
setprop ro.SECONDARY_SERVER_MEM 6144
|
||||
setprop ro.BACKUP_APP_MEM 6144
|
||||
setprop ro.HOME_APP_MEM 6144
|
||||
setprop ro.HIDDEN_APP_MEM 7168
|
||||
setprop ro.EMPTY_APP_MEM 8192
|
||||
# These are currently tuned for tablets with approx 1GB RAM.
|
||||
setprop ro.FOREGROUND_APP_MEM 8192
|
||||
setprop ro.VISIBLE_APP_MEM 10240
|
||||
setprop ro.PERCEPTIBLE_APP_MEM 12288
|
||||
setprop ro.HEAVY_WEIGHT_APP_MEM 12288
|
||||
setprop ro.SECONDARY_SERVER_MEM 14336
|
||||
setprop ro.BACKUP_APP_MEM 14336
|
||||
setprop ro.HOME_APP_MEM 14336
|
||||
setprop ro.HIDDEN_APP_MEM 16384
|
||||
setprop ro.EMPTY_APP_MEM 20480
|
||||
|
||||
# Old values for phones. Should probably be adjusted up for the next
|
||||
# phone version.
|
||||
#setprop ro.FOREGROUND_APP_MEM 2048
|
||||
#setprop ro.VISIBLE_APP_MEM 3072
|
||||
#setprop ro.PERCEPTIBLE_APP_MEM 4096
|
||||
#setprop ro.HEAVY_WEIGHT_APP_MEM 4096
|
||||
#setprop ro.SECONDARY_SERVER_MEM 6144
|
||||
#setprop ro.BACKUP_APP_MEM 6144
|
||||
#setprop ro.HOME_APP_MEM 6144
|
||||
#setprop ro.HIDDEN_APP_MEM 7168
|
||||
#setprop ro.EMPTY_APP_MEM 8192
|
||||
|
||||
# Write value must be consistent with the above properties.
|
||||
# Note that the driver only supports 6 slots, so we have combined some of
|
||||
|
|
Loading…
Reference in New Issue