Message ID | 20230123173748.1734238-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 58302C38142 for <linux-mm@archiver.kernel.org>; Mon, 23 Jan 2023 17:38:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 571366B0085; Mon, 23 Jan 2023 12:38:18 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 546DA6B0082; Mon, 23 Jan 2023 12:38:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 37E5B6B0085; Mon, 23 Jan 2023 12:38:18 -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 257256B0081 for <linux-mm@kvack.org>; Mon, 23 Jan 2023 12:38:18 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 0A47D41778 for <linux-mm@kvack.org>; Mon, 23 Jan 2023 17:38:18 +0000 (UTC) X-FDA: 80386772676.12.195B13A Received: from 66-220-144-178.mail-mxout.facebook.com (66-220-144-178.mail-mxout.facebook.com [66.220.144.178]) by imf06.hostedemail.com (Postfix) with ESMTP id 4744818001E for <linux-mm@kvack.org>; Mon, 23 Jan 2023 17:38:16 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=none; spf=neutral (imf06.hostedemail.com: 66.220.144.178 is neither permitted nor denied by domain of shr@devkernel.io) smtp.mailfrom=shr@devkernel.io; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1674495496; 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=GB7nbTR042OPBT5940sQcmscKilViV2E/45SbY5p8lA=; b=51hDk06G0Wy+6pRW2wsm8UeNBU3Dccto82+BuaYrUfawiy1QVirPSgY3sgStI0SxevQF8V DEqwexKgVSKj5sqhGCqSmqpvTCQJe7lgzmPVHOjuV0OJvAaeaeCOmPU6SqgaAPkv7r/VWd uxaIzeCI4aHTt0C/pMVYmswWqFpGZAw= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none; spf=neutral (imf06.hostedemail.com: 66.220.144.178 is neither permitted nor denied by domain of shr@devkernel.io) smtp.mailfrom=shr@devkernel.io; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1674495496; a=rsa-sha256; cv=none; b=ulVfOz1P+cO8eHnoOmn1pgruIH/s8fiypVA8QQ8u9HAzRU15aP/GvSGZvkWsJw+vk0U2yW IA5Aoj3koIH+tJxlupY5wij1lo4n7aoKVYBHhO15ddQPWUGtJAG3rw95Xik7+7wbkrfjya jNAXaDzEMuoH7UHgIiKR9aNTx3swlVs= Received: by dev0134.prn3.facebook.com (Postfix, from userid 425415) id 41C5F5616BD3; Mon, 23 Jan 2023 09:37:56 -0800 (PST) From: Stefan Roesch <shr@devkernel.io> To: linux-mm@kvack.org Cc: shr@devkernel.io, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: [RESEND RFC PATCH v1 01/20] mm: add new flag to enable ksm per process Date: Mon, 23 Jan 2023 09:37:29 -0800 Message-Id: <20230123173748.1734238-2-shr@devkernel.io> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230123173748.1734238-1-shr@devkernel.io> References: <20230123173748.1734238-1-shr@devkernel.io> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Stat-Signature: 5kxhtsxq5dpaw6trxk9i9jj4ezrhy79m X-Rspam-User: X-Rspamd-Queue-Id: 4744818001E X-Rspamd-Server: rspam06 X-HE-Tag: 1674495496-270133 X-HE-Meta: U2FsdGVkX194XykDdpsYc381DE4WjWcwRZcLzKQ6lnybCAjbgPQgEGimslIwdpw6wnfOVOT36EBbC8FqBfwXbv0jrvqle93oQVIK7XktaH+3PtbYYH5wLjITwWCc7NQss6n8ypCafqvcKltTvCDaWRUaPw+6o0WtoA+VqfVikX0jJD4vg5PzdbpmI2v4Eu2cSPioqbLQQ3n2YE2DE+50Eo0rubCN+PjGjQlL+Ic0v216cJYXbnLQGm3lsV08p6wnLNW8zJWSOE+p+8WCLlU3li1I9vEraD7RPJqbIGF2nqhwz4kaEUsn8XlRsIO3vNum7SAwm4qdeMHBbLwjUNs2nJLHV9PSagxsk8hBmJAm6TCWUqOfFolY9VdGk93R3CNXGWyKWH+OC5r75gU3ckE2luq/dx3VGYU2Sdl1MT0XKnRaKLsgPJaqlTpSwDHD3rTDE9gFhqgcVDW69JV1zKP/LS7C45VIJTz7Z8bChOlzV3TJisX5Bz4T3e9x17ccUVazJ+KwUZJEfXSZTNulQLvHSrtwiWDWeEcwF0diCYpEwC46TKjfzLZr9X/X80NVx9blVasubVVIbRJgaIkNrHmeywlkuf6Zw08nMNFlgDcgetlY4L1B0XEw4aSM9IjBl74XgWUHtTd/JuA6Fzsl5RLZyu/Bt7CBu9XyOkcLjys1KBXU4C+SJo8PNS+0Au2Pfc34vvsKfpUCzXVxGxZzh0paQn0izeWwkO4C9eg2oiCCuHLTtgFKvnIk0GiJyjoKsL77fXFYRPYG4yAmFRRWrlDCaZLV1k9zfhwFsJMoKaoMbBX767WQeYGVwuiDv3aOuXvWDIR3/DyCcMTVkEo1mNZRbZRLtgoY7ysL2Vt1ff1W+cyMmY+yJYSdUkfACYM2aPWyWgObWkU/kqQL+UrlIrUuUshitFN51HJBnQPgQMCKXJkzG4ypp7ONiknag2AnfNmYu01QFrl2PI++3BvAOio gXP0s4ke mvOd7iI5FK/PSQjymAMqwIDl86qCXaShWxdBnJjS22T4yZNo= 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 8270ad7ae14c..0e0de5b7469f 100644 --- a/include/linux/sched/coredump.h +++ b/include/linux/sched/coredump.h @@ -86,4 +86,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) +#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(+)