Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752651AbaKKM56 (ORCPT ); Tue, 11 Nov 2014 07:57:58 -0500 Received: from mail-wg0-f42.google.com ([74.125.82.42]:51461 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752493AbaKKM54 (ORCPT ); Tue, 11 Nov 2014 07:57:56 -0500 From: Timofey Titovets To: linux-mm@kvack.org Cc: nefelim4ag@gmail.com, marco.antonio.780@gmail.com, linux-kernel@vger.kernel.org, tonyb@cybernetics.com, killertofu@gmail.com Subject: [PATCH V3 3/4] KSM: Add config to control mark_new_vma Date: Tue, 11 Nov 2014 15:57:35 +0300 Message-Id: <1415710656-29296-4-git-send-email-nefelim4ag@gmail.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1415710656-29296-1-git-send-email-nefelim4ag@gmail.com> References: <1415710656-29296-1-git-send-email-nefelim4ag@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/