summaryrefslogtreecommitdiffstats
path: root/rootdir/init.lowmem.rc
blob: 7c080546bdd62cb2994e9fbfcd36e75437716a22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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