From patchwork Fri Apr 28 04:02:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 98303 Delivered-To: patches@linaro.org Received: by 10.140.109.52 with SMTP id k49csp79995qgf; Thu, 27 Apr 2017 21:02:56 -0700 (PDT) X-Received: by 10.98.103.1 with SMTP id b1mr9991376pfc.184.1493352176566; Thu, 27 Apr 2017 21:02:56 -0700 (PDT) Return-Path: Received: from mail-pf0-x22e.google.com (mail-pf0-x22e.google.com. [2607:f8b0:400e:c00::22e]) by mx.google.com with ESMTPS id 83si4783011pfr.207.2017.04.27.21.02.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Apr 2017 21:02:56 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::22e as permitted sender) client-ip=2607:f8b0:400e:c00::22e; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::22e as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x22e.google.com with SMTP id v14so42770206pfd.2 for ; Thu, 27 Apr 2017 21:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=OsxbGRCLAGeAp0vbYeYpT3fpIUlzCTPec3jMC4v2kQg=; b=VuN2XUoOQjYqP6HPEelj3U9EAbxxgEuQikD+F9dYgCm16gPhbT1EoBqmTfUl5CcvMp cQNWIENAiMPlOOKtWr6fI89X7mI9aI6S1Lu3EbWc0QnhQFSjYFHoJqQij7SXoqgv5BQF oibPShiJ744k4qRl1mSRpgSbJ2IFFcFkRCDL0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=OsxbGRCLAGeAp0vbYeYpT3fpIUlzCTPec3jMC4v2kQg=; b=RyxKSQ2Ener1720YhMaN0pceLGLLJS1OpN4KwrRoYM+VIj4Qs9uxZ7F7Js2Cj2cTcB ZkU3l5o1ey5ArJN6LFBr4CphToXfk2Dmg8T5UBls36zd3W8yjyxZLUw0L0KHSOrrSAce jQ1Y7ErYOC3ntFhpmY8T2gdeFNflMieGaKn3QyjDIPteQPGLsbpOMQDt27dutCLzhNHU +cojMPjEFtOEW8LMCO5+kQn8tlTHhEzkVGLnPzXCrENBr9jMTs/yClJ3vI3T8uWwIO2E SzwYa9cTHpFE/IQDhH9yrkHtb9XcZa6ww1lS5XwRXD6xh07Qp0aVEBZoNKz8gmSaNecb npSA== X-Gm-Message-State: AN3rC/5+iyCbPslcnfHQz8pNjGsduoBy7yfzbCGO7fHT8tbYZ5H93zZV MqEulxg7EcRF5nfDcBQ= X-Received: by 10.84.225.18 with SMTP id t18mr11893140plj.118.1493352176087; Thu, 27 Apr 2017 21:02:56 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:1002:83f0:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id j65sm7161652pfc.86.2017.04.27.21.02.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Apr 2017 21:02:54 -0700 (PDT) From: John Stultz To: Cc: John Stultz , Rob Herring , Sumit Semwal , Vishal Bhoj , Amit Pundir Subject: [PATCH 1/4] device.mk: Add options to make things perform a bit better in lowmemory situations Date: Thu, 27 Apr 2017 21:02:48 -0700 Message-Id: <1493352171-30851-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 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 Cc: Sumit Semwal Cc: Vishal Bhoj Cc: Amit Pundir Signed-off-by: John Stultz --- device.mk | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.7.4 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