From patchwork Thu Jun 14 22:50:26 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: 138634 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp98570lji; Thu, 14 Jun 2018 15:52:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIZcJeLi+hihbpeOcL9s1fP8zBCxKR0mYp93pe7BWNJCx0xlTJX7SdXsSPLJkSV1pkqTAyX X-Received: by 2002:a65:554b:: with SMTP id t11-v6mr4008450pgr.130.1529016733657; Thu, 14 Jun 2018 15:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529016733; cv=none; d=google.com; s=arc-20160816; b=ZQ6dcO5KkibdEX405hnx9jpyIGkZZSaIvzdMYYRbrtPp2t9wvmztJ5rgbI8tHqh/oA 4GQlJq3Mnr4zg2JvtPRAId2SBtlnQCtHoG3hBw9q93QTOjVZ2o3NcWcw8bb2rc75yHRO RlsLf/4f60oL9RcbUpNAyhA+bCZW39pE7dalB2kw6dc9f9J9xxCIiFMG43Vg3034QG1k 3rQfNKFqUvw61BtWmjFnFKQweFk54ifxVveSqG1qcz0+lFfvXa5wFw7jXNHZKz0bxRjU vT42+lIBk2vW4qTBk7wE2lnCZO/pECbqD8cHNNVq1u/UOTTkLfkHyQcaHBS6zg4Yhr69 BdJw== 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 :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=hWtsj9ozwRRuUjeEPl7/TBe9eDUFRixECnKeRkHSD3U=; b=wTj7tTMuX/bs/oByaAmsmmIg27PDJW2ZV73TcXgbJqOKKFOLyObxKOnylwdkc98Hj0 YEeLHJAK8cvE7mlbSh3ESJmy0dZ/IMCH+VhflZxIN8MucSDu167Kbtw8eitZppo9jUoW sXoZaWRWtpQHSeT71Mt2egSfeLCyXPCwn4EqO0BqukDxjZUTeWCV7NeXKzJvfZqzvyi8 beQ+V1PR50ugV8JLH3f8NmWzYPkaUcBWmhEU+gMlj9PLZCqIcCkvL6eN6CYNYIi77W3L bK3uYzy37UU9BNut5YvVAVniiZ62zyBM+Te69Xf25chN7v/y+fKVdpUO6kDtDUYna23o SQkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MHy5ohzQ; 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.13; Thu, 14 Jun 2018 15:52:13 -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=MHy5ohzQ; 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 S965078AbeFNWwK (ORCPT + 30 others); Thu, 14 Jun 2018 18:52:10 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:34840 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964995AbeFNWwJ (ORCPT ); Thu, 14 Jun 2018 18:52:09 -0400 Received: by mail-ot0-f195.google.com with SMTP id q17-v6so8999400otg.2 for ; Thu, 14 Jun 2018 15:52:09 -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:mime-version :content-transfer-encoding; bh=hWtsj9ozwRRuUjeEPl7/TBe9eDUFRixECnKeRkHSD3U=; b=MHy5ohzQYXR6tDlatYNjVtLu+k4SiSxhm3szHYX5W22GT5EXX71ct4Vt+KRBjAYbY7 cOSg0na0hW/GFvWEGt/akR0hCB8O6RMvQCnUJwVwkYZ8GGA/et+COxRutruBVLUn4Le7 8UTiJKbOrfe9adrb2cZDcwS3ND/1mSxsoLaGk= 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:mime-version :content-transfer-encoding; bh=hWtsj9ozwRRuUjeEPl7/TBe9eDUFRixECnKeRkHSD3U=; b=ADihheeQaU4/LEjztiB14h/4BR6Sy2orfc0oeltNV1NhqxaVkKtxoAy/2VeW9nvzXm ZBmvOUSKgZ1yuvGE8UjX0MHrGE3/AYBDc7fso7podXTLwcKFrSDoALZJ7KuQl0ACG/JC SJTWv4xQlphW7Gw95FxDdDnnMNv8kmw3k9xVKxNZ3DeB9ZG7jmqsHW/bKyvXrEdyfvF0 UPaIh/Cpa9bzaXfHSBZNm/BjxED9bId/QZMUEQFGMyPC3dwSmDR+DAXH0ey8GPUg2LVB Q1YQO47v8cBhxpdFAAdEDt+jM5zkqrwjkchVRLrhgzCk7sPHyZTMc78HwhXhCDrHlbNc jodQ== X-Gm-Message-State: APt69E2eXlQ3z7LqxsJ2Us3v7odiFKB6cYAXSuP9VYwZhGlHp4bYOFE5 VhuHE7/KWzMUZH8qkXJQHmANEg== X-Received: by 2002:a9d:725e:: with SMTP id a30-v6mr2679692otk.303.1529016729177; Thu, 14 Jun 2018 15:52:09 -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.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jun 2018 15:52:07 -0700 (PDT) From: =?utf-8?q?Daniel_D=C3=ADaz?= To: x86@kernel.org Cc: anders.roxell@linaro.org, =?utf-8?q?Daniel_D=C3=ADaz?= , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Josh Poimboeuf , Krzysztof Kozlowski , linux-kernel@vger.kernel.org (open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)) Subject: [PATCH 1/2] x86: x86_64_defconfig: Enable KSM. Date: Thu, 14 Jun 2018 17:50:26 -0500 Message-Id: <1529016629-2948-1-git-send-email-daniel.diaz@linaro.org> X-Mailer: git-send-email 2.7.4 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/x86/configs/x86_64_defconfig | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/arch/x86/configs/x86_64_defconfig b/arch/x86/configs/x86_64_defconfig index e32fc1f..8fd7396 100644 --- a/arch/x86/configs/x86_64_defconfig +++ b/arch/x86/configs/x86_64_defconfig @@ -48,6 +48,7 @@ CONFIG_MICROCODE_AMD=y CONFIG_X86_MSR=y CONFIG_X86_CPUID=y CONFIG_NUMA=y +CONFIG_KSM=y CONFIG_X86_CHECK_BIOS_CORRUPTION=y # CONFIG_MTRR_SANITIZER is not set CONFIG_EFI=y