From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by kanga.kvack.org (Postfix) with ESMTP id CB3C76B00E6 for ; Thu, 13 Nov 2014 16:02:14 -0500 (EST) Received: by mail-wg0-f43.google.com with SMTP id y10so17936693wgg.16 for ; Thu, 13 Nov 2014 13:02:14 -0800 (PST) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com. [2a00:1450:400c:c05::230]) by mx.google.com with ESMTPS id dm9si896605wib.3.2014.11.13.13.02.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Nov 2014 13:02:14 -0800 (PST) Received: by mail-wi0-f176.google.com with SMTP id ex7so800174wid.15 for ; Thu, 13 Nov 2014 13:02:14 -0800 (PST) From: Timofey Titovets Subject: [RESEND][PATCH V3 3/4] KSM: Add config to control mark_new_vma Date: Fri, 14 Nov 2014 00:01:57 +0300 Message-Id: <1415912518-8508-4-git-send-email-nefelim4ag@gmail.com> In-Reply-To: <1415912518-8508-1-git-send-email-nefelim4ag@gmail.com> References: <1415912518-8508-1-git-send-email-nefelim4ag@gmail.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org Cc: akpm@linux-foundation.org, Timofey Titovets Allowing to control mark_new_vma default value Allowing work ksm on early allocated vmas Signed-off-by: Timofey Titovets --- mm/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mm/Kconfig b/mm/Kconfig index 1d1ae6b..90f40a6 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -340,6 +340,13 @@ config KSM until a program has madvised that an area is MADV_MERGEABLE, and root has set /sys/kernel/mm/ksm/run to 1 (if CONFIG_SYSFS is set). +config KSM_MARK_NEW_VMA + int "Marking new vma pages as VM_MERGEABLE" + depends on KSM + default 0 + range 0 1 + help + config DEFAULT_MMAP_MIN_ADDR int "Low address space to protect from user allocation" depends on MMU -- 2.1.3 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org