Message ID | 20230210215023.2740545-2-shr@devkernel.io (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE650C64ED9 for <linux-mm@archiver.kernel.org>; Fri, 10 Feb 2023 21:50:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E11F6280018; Fri, 10 Feb 2023 16:50:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DBD41280003; Fri, 10 Feb 2023 16:50:58 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C1245280019; Fri, 10 Feb 2023 16:50:58 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 9A1F7280003 for <linux-mm@kvack.org>; Fri, 10 Feb 2023 16:50:58 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 758D01201DE for <linux-mm@kvack.org>; Fri, 10 Feb 2023 21:50:58 +0000 (UTC) X-FDA: 80452727796.07.9344A69 Received: from 66-220-144-178.mail-mxout.facebook.com (66-220-144-178.mail-mxout.facebook.com [66.220.144.178]) by imf07.hostedemail.com (Postfix) with ESMTP id DC7824000F for <linux-mm@kvack.org>; Fri, 10 Feb 2023 21:50:56 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=none; dmarc=none; spf=neutral (imf07.hostedemail.com: 66.220.144.178 is neither permitted nor denied by domain of shr@devkernel.io) smtp.mailfrom=shr@devkernel.io ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1676065857; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3lJe08hmVrQFw22kviPgqf1tesn8y5yO7ml9nb20jGU=; b=zeAiDHOzI8CjJyZorwt4ejw761BTRIjxymSrDFOoewwvdQ3yLZs8y6MzxyJba7kgqY7s9l fvDLQCHjOOHsAY6l4Qo08kjfwUWvKZ7iBNic7YPm6UweDwVGHx2JGRZLkrA4QIEYdiqp4I vxHP95AclUIrjvJ1kXm46ayuJlroVec= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=none; dmarc=none; spf=neutral (imf07.hostedemail.com: 66.220.144.178 is neither permitted nor denied by domain of shr@devkernel.io) smtp.mailfrom=shr@devkernel.io ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676065857; a=rsa-sha256; cv=none; b=7ZSpt/yRproY70Gbc2ywLLAwgBcR1dRAIjpLF0ybTI3INjcn6MhPwAA4tJK1KI/kK7Zj2F g0HjKKI5FV4aZVdacG6VKG0K3akHqbUIok0wSpr/+41A2UTszVYZzfSHI1tA1J+sU68e0M c2qcMDw+J4XVA+G1DgSgoIRF4BIEe8w= Received: by dev0134.prn3.facebook.com (Postfix, from userid 425415) id 656676BFC2C2; Fri, 10 Feb 2023 13:50:33 -0800 (PST) From: Stefan Roesch <shr@devkernel.io> To: kernel-team@fb.com Cc: shr@devkernel.io, linux-mm@kvack.org, riel@surriel.com, mhocko@suse.com, david@redhat.com, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, akpm@linux-foundation.org Subject: [RFC PATCH v2 01/19] mm: add new flag to enable ksm per process Date: Fri, 10 Feb 2023 13:50:05 -0800 Message-Id: <20230210215023.2740545-2-shr@devkernel.io> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230210215023.2740545-1-shr@devkernel.io> References: <20230210215023.2740545-1-shr@devkernel.io> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: DC7824000F X-Rspam-User: X-Stat-Signature: te5zht5krofg3k5eo9145jakgupr9y1w X-HE-Tag: 1676065856-169932 X-HE-Meta: U2FsdGVkX18pDAFj8+Uyos1PeOP8msapnL9+lXtoFRsoukvW8eNbQ4+dIw9xaCFhwVr1DsGB9YrRVXLcYIcakb8rDM8vJSUrw26AIDZscUkiiEvS91j7BEXmKFB9ssR9Pehp3YVlWEjIbEce8ZydHiqthx7njWDh3NmtyFmSJE+CWWJiR2ROjBzkCb+m7gbna6GkhfTLxczZHpKiPFcWUjlmOcX2HkfOrQTnhC6/g539DP6bQIpKOTbgYL3B/zhS/46yKp803Gww74hLuMlBn6/Tef1hrTcjfpK+JA1mAiGsjRfLpY9JXE/y2vSkUnQOv2m7u6WctpvinkGHUhlICiwAXyUN7c4TZ4x+tMtxD0dS12a+78Z+v35G0rzCLFHTAxh6bDc3cDkgIHLW/KHs9VOzOcgTOZ0lyFyKXKOXUu6f9jIeU8pmntn7FMrp6URI72rdLwwXOz/fosRf6Gi3iwcDw0lSmyJoZzsyrvYaNvhb6i285mhtNLs2c8jDpsdwhFBdz5Rtg4WPQB/vin3papNV4Xnwd2n7CZ/YAiB6x398ikS6NGemMQEscPWxbkiolgQZcUmwGXE2iy/MgfX2snkNDda5JfzDvPELwNUo+UKYyrXqy4q9S+n0Qg21Oi80Jwf2/MeWeJzHNJUdQ9X/yUcs3THpnt3QnwAKQQ54YbrHXJaSVvZ0vbxaxQ977GT8t/9Y8fRjpQtmZDlqKcHSFO6n7YpZ8l5+StTNJjr1bPUjewIp6HxuCmyUZyrsHGPIpJMGbuxZGFktcdMxC8Gvn0TvyvMIvI4Oec08U1OP1tMfjvCGg7MVGUnUpOpmoAaQlxayWwgUH4m48eBLQ8f5WDsQmEqu5t3Zac1WIjKwYIA9EHSmzPnOHziaB+hraT/9mXR72TvdhMOZWjNEqigweetWFk2lr9Dq0RLAQMambSxGlGTBOhMPm42gCfLjoWsHKq5YyVRoacMIxmLKvA/ V1YkvHpy xdHPo95KCi7S7IvLU9/zLTuNvyGBNci+PgZqMSOImQuLsNxwslvTBetF1fw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
mm: process/cgroup ksm support
|
expand
|
diff --git a/include/linux/sched/coredump.h b/include/linux/sched/coredump.h index 0e17ae7fbfd3..0ee96ea7a0e9 100644 --- a/include/linux/sched/coredump.h +++ b/include/linux/sched/coredump.h @@ -90,4 +90,5 @@ static inline int get_dumpable(struct mm_struct *mm) #define MMF_INIT_MASK (MMF_DUMPABLE_MASK | MMF_DUMP_FILTER_MASK |\ MMF_DISABLE_THP_MASK | MMF_HAS_MDWE_MASK) +#define MMF_VM_MERGE_ANY 29 #endif /* _LINUX_SCHED_COREDUMP_H */
This introduces the new flag MMF_VM_MERGE_ANY flag. When this flag is set, kernel samepage merging (ksm) gets enabled for all vma's of a process. Signed-off-by: Stefan Roesch <shr@devkernel.io> --- include/linux/sched/coredump.h | 1 + 1 file changed, 1 insertion(+)