[1/4] device.mk: Add options to make things perform a bit better in lowmemory situations

Message ID 1493352171-30851-1-git-send-email-john.stultz@linaro.org
State New
Headers show
Series
  • [1/4] device.mk: Add options to make things perform a bit better in lowmemory situations
Related show

Commit Message

John Stultz April 28, 2017, 4:02 a.m.
With the db410c especially, the memory constraints are very
tight, so try to eek out a bit more memory by setting some
options suggested by Bero.

Cc: Rob Herring <rob.herring@linaro.org>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Vishal Bhoj <vishal.bhoj@linaro.org>
Cc: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>

---
 device.mk | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
2.7.4

Patch hide | download patch | download mbox

diff --git a/device.mk b/device.mk
index 1071301..e3afdfa 100644
--- a/device.mk
+++ b/device.mk
@@ -75,6 +75,12 @@  PRODUCT_PROPERTY_OVERRIDES += \
     dalvik.vm.heapminfree=512k \
     dalvik.vm.heapmaxfree=$(CONFIG_DALVIK_VM_HEAPMAXFREE)m
 
+
+PRODUCT_PROPERTY_OVERRIDES += \
+    ro.config.low_ram=true \
+    dalvik.vm.jit.codecachesize=0 \
+
+
 subdirs-true := lights graphics
 subdirs-$(CONFIG_WIFI) += wifi
 subdirs-$(CONFIG_ETHERNET) += ethernet