8b0ec20d6f
This introduces some new buckets that will be used by the activity manager, and adjusts the default levels to match what we had been setting for Droid. It turns out Passion has been using the old levels, which makes no sense for how much memory it has. Also it is a problem with these definitions spreading to other projects for different devices, so I am going to update the defaults to be appropriate for our newer devices, and put here a file to tune them down for something like the sapphire. Change-Id: Ia4f33c4c3b94aeb3656f60b9222072a1d11e9e68
19 lines
608 B
Text
19 lines
608 B
Text
# Adjustments to the out-of-memory killer, for devices that are
|
|
# tight on memory. These should not be used if not needed, as they
|
|
# can result in more paging.
|
|
|
|
on early-boot
|
|
|
|
setprop ro.FOREGROUND_APP_MEM 1536
|
|
setprop ro.VISIBLE_APP_MEM 2048
|
|
setprop ro.PERCEPTIBLE_APP_MEM 2048
|
|
setprop ro.HEAVY_WEIGHT_APP_MEM 2048
|
|
setprop ro.SECONDARY_SERVER_MEM 4096
|
|
setprop ro.BACKUP_APP_MEM 4096
|
|
setprop ro.HOME_APP_MEM 4096
|
|
setprop ro.HIDDEN_APP_MEM 5120
|
|
setprop ro.EMPTY_APP_MEM 6144
|
|
|
|
on boot
|
|
|
|
write /sys/module/lowmemorykiller/parameters/minfree 1536,2048,3072,4096,5120,6144
|