From patchwork Thu Jun 14 22:50:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_D=C3=ADaz?= X-Patchwork-Id: 138635 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp98767lji; Thu, 14 Jun 2018 15:52:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKbol+Zd010xMaPm1ToskbF/FazHQQiiR4KQ/5airyi/w9iKpzZSBgf3mbXepowpDqPEMlQ X-Received: by 2002:a62:701:: with SMTP id b1-v6mr11449346pfd.252.1529016753448; Thu, 14 Jun 2018 15:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529016753; cv=none; d=google.com; s=arc-20160816; b=pyOgMkJs3S49qlq1UR1i1FaJsw0fcFCOwPc1Z0WOFy+hs+2EmScehnUpZ684K1E4zY gbABq0oPEdQMADBXyKnplAwoIG2E0lNqNhxwIjOs1sLlrp8pqT4PRfSFCAsw4dtl5lgV kpBUzmGOW/DPUIY9YONPdZnzzFwfpdUBTZx7MlaKemmtJ2bonC9qGj0/cNowIN3cEqoY 5a0Gzprrs8OOD01oc673ivMVWW1kCzlmv4Jbx9kdYBUt55FMRkMF3dJ/JKu0wC1GtNAW 7RUk33ZH8SSiLA5+DUGzpee6GrmMDy/Mpk5MsLU2fH+yQQXyh/gLpCzJitkKCOCc4LvH //Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Ztr1SvESHr1XzY+6q41GxTJGHsuiBzX3nQVyt/cQyEo=; b=HOb9NzKI5HCQnUh/5y2eYMzvZOTx1Rkh6711vEjER0P/0mo3FZYl8Hm3mUOZxoO4mT VA5UROl776ts8vgdCnpcwru8XbU6/3GzPcEuupwA491x7hUveKTulqGnBoG01S9VuBBc rr28+a96x7Wq5cXyrbT5E8gI6Gm6TKMDMIaRpnODe+IVxV8LhjQcQxUbIq/GBMr3iCjV 0VLZGzr4kyrnJzXQuIqHkRxvoqdp9knu0nCXnpjvZ925ALomOtcR0BBbx5p8cogSo/GT uQiqopvQ+T1JYo0yiJiJJFP4sdX1I9sRTjQ2GnMIFDbEffVsHt90D/OeNE+t46e4nWNy MGCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VbOxeVFg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9-v6si5302192pgs.418.2018.06.14.15.52.33; Thu, 14 Jun 2018 15:52:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VbOxeVFg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965099AbeFNWwb (ORCPT + 30 others); Thu, 14 Jun 2018 18:52:31 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:45624 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965037AbeFNWwa (ORCPT ); Thu, 14 Jun 2018 18:52:30 -0400 Received: by mail-ot0-f195.google.com with SMTP id a5-v6so8978263otf.12 for ; Thu, 14 Jun 2018 15:52:29 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ztr1SvESHr1XzY+6q41GxTJGHsuiBzX3nQVyt/cQyEo=; b=VbOxeVFgTDWuOn9ZR7YasQxgNovqW1nwFc1mwnmuKhXhjnqB0P6x8HNSUqziJ2AVlS jzq2IGdAHKUtTFFfA4ydEdkt8WXDrhl1SFDJN6g8aBpD0ZknCRNrY2DmtNYldU2TPquV BrbKI1C5W2CgIF+tBUM2KMYMPS/KHiOvOneh0= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ztr1SvESHr1XzY+6q41GxTJGHsuiBzX3nQVyt/cQyEo=; b=iwowZk00jRLz5ddoSgjOATf1dX0E0Ppuy1/U+NI+NQn504bA8XRnZYj3DiuVW6gSNs HLL9fFOu4CaHFplmfN3YqHw9ceKgBRznOinHZFOR59ixYwdu7keaRaKNAa/XUKTVgu0U cqCgPw0sTVdVR41SuSXM5GvyqpkWesEbKmttPEu3IFqjrjuycMu+AjIRh1+BE6LIrhgB 05WruRfWxo37jKmoZ/tY3Z0nMvRNRuN7FBsDX6tjo4l+J7JlgAQWcxVDfSq50RPAlGsU IA4dI72JTpeZww5onnfKo9gzCOB5I9CjY94r0X2Djj0jqxFMejiZs4dVsSfihm3JUnrH bbRA== X-Gm-Message-State: APt69E1q5etSSwLTVTTPzi7p2oOHj21kfq4/LsvSQfRB22swYEMO5/4W VcvUW6UCgjveHdDIW/uXKjA3g3aUdzq7aA== X-Received: by 2002:a9d:5c84:: with SMTP id a4-v6mr369878oti.301.1529016749590; Thu, 14 Jun 2018 15:52:29 -0700 (PDT) Received: from aura.cortijodelrio.net (CableLink-187-161-191-185.PCs.InterCable.net. [187.161.191.185]) by smtp.googlemail.com with ESMTPSA id w5-v6sm2778982otg.5.2018.06.14.15.52.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jun 2018 15:52:28 -0700 (PDT) From: =?utf-8?q?Daniel_D=C3=ADaz?= To: linux-arm-kernel@lists.infradead.org Cc: anders.roxell@linaro.org, =?utf-8?q?Daniel_D=C3=ADaz?= , Russell King , Arnd Bergmann , Simon Horman , Stefan Agner , Tony Lindgren , Eric Anholt , Geert Uytterhoeven , Martin Blumenstingl , Marek Szyprowski , Kishon Vijay Abraham I , Krzysztof Kozlowski , Maxime Ripard , Marc Zyngier , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/2] arm: multi_v7_defconfig: Enable KSM. Date: Thu, 14 Jun 2018 17:50:27 -0500 Message-Id: <1529016629-2948-2-git-send-email-daniel.diaz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529016629-2948-1-git-send-email-daniel.diaz@linaro.org> References: <1529016629-2948-1-git-send-email-daniel.diaz@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As per the documentation, Kernel Samepage Merging (available since 2.6.32) is a memory-saving de-duplication feature, enabled by CONFIG_KSM=y and activated via sysfs. More information can be found here: https://www.kernel.org/doc/Documentation/vm/ksm.txt When enabled in the kernel, the default is to not do anything at all, until it is activated at run-time with: echo 1 > /sys/kernel/mm/ksm/run Signed-off-by: Daniel Díaz --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 7e1c543..79eedf4d 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -133,6 +133,7 @@ CONFIG_SMP=y CONFIG_NR_CPUS=16 CONFIG_HIGHPTE=y CONFIG_CMA=y +CONFIG_KSM=y CONFIG_SECCOMP=y CONFIG_ARM_APPENDED_DTB=y CONFIG_ARM_ATAG_DTB_COMPAT=y