summaryrefslogtreecommitdiffstats
path: root/init.lowmem.rc
diff options
context:
space:
mode:
authorkyoungheon <kyoungheon@samsung.com>2010-08-18 15:07:38 -0700
committerkyoungheon <kyoungheon@samsung.com>2010-08-18 15:07:38 -0700
commitc46b48b83111bb9ca7601ea13b08fae063775b4b (patch)
treef3fbf580482e7dbf9e5a0b5e3e5de5b04adc9784 /init.lowmem.rc
parent0600d5a2e2912b4174f0ebf27f0c19ef6b2412a7 (diff)
downloaddevice_samsung_crespo-c46b48b83111bb9ca7601ea13b08fae063775b4b.zip
device_samsung_crespo-c46b48b83111bb9ca7601ea13b08fae063775b4b.tar.gz
device_samsung_crespo-c46b48b83111bb9ca7601ea13b08fae063775b4b.tar.bz2
Initial import of crespo device specific files for platform build
Change-Id: I839734650a3f82a8fc735a91c9add6e1881d567f
Diffstat (limited to 'init.lowmem.rc')
-rw-r--r--init.lowmem.rc19
1 files changed, 19 insertions, 0 deletions
diff --git a/init.lowmem.rc b/init.lowmem.rc
new file mode 100644
index 0000000..7c08054
--- /dev/null
+++ b/init.lowmem.rc
@@ -0,0 +1,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