From patchwork Thu Nov 26 05:32:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, Ying" X-Patchwork-Id: 11932683 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AF21C56202 for ; Thu, 26 Nov 2020 05:34:56 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A627E206F4 for ; Thu, 26 Nov 2020 05:34:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A627E206F4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C6DFA6B006E; Thu, 26 Nov 2020 00:34:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BF7B46B0070; Thu, 26 Nov 2020 00:34:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A715E6B0071; Thu, 26 Nov 2020 00:34:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0072.hostedemail.com [216.40.44.72]) by kanga.kvack.org (Postfix) with ESMTP id 8E0B46B006E for ; Thu, 26 Nov 2020 00:34:54 -0500 (EST) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 566B8362C for ; Thu, 26 Nov 2020 05:34:54 +0000 (UTC) X-FDA: 77525455308.09.spark20_5703c5c2737c Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin09.hostedemail.com (Postfix) with ESMTP id 3BD52180AD807 for ; Thu, 26 Nov 2020 05:34:54 +0000 (UTC) X-HE-Tag: spark20_5703c5c2737c X-Filterd-Recvd-Size: 3091 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by imf33.hostedemail.com (Postfix) with ESMTP for ; Thu, 26 Nov 2020 05:34:52 +0000 (UTC) IronPort-SDR: aHAuWaLFnkpfxzNRAIPZZgpzeMJBXxy4xnHNPvPB0o0oKcX900Gxp7dhy2JKcMYxoM7QTxqmuq by6HZswpI+Nw== X-IronPort-AV: E=McAfee;i="6000,8403,9816"; a="233845001" X-IronPort-AV: E=Sophos;i="5.78,371,1599548400"; d="scan'208";a="233845001" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2020 21:34:51 -0800 IronPort-SDR: S4GfgKYmKo2+aFMxzmePsg7rw8zPyM7vvNsKBWuPFBPPwXbzvuVQJrmMRc8UKXI5LQKLwmMWBm 582PwK3W9wEw== X-IronPort-AV: E=Sophos;i="5.78,371,1599548400"; d="scan'208";a="537180103" Received: from yhuang-mobile.sh.intel.com ([10.238.5.184]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2020 21:34:47 -0800 From: Huang Ying To: Peter Zijlstra Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Matthew Wilcox (Oracle)" , Rafael Aquini , Andrew Morton , Ingo Molnar , Mel Gorman , Rik van Riel , Johannes Weiner , Dave Hansen , Andi Kleen , Michal Hocko , David Rientjes , linux-api@vger.kernel.org, "Huang, Ying" Subject: [PATCH -v6 2/3] NOT kernel/man-pages man2/set_mempolicy.2: Add mode flag MPOL_F_NUMA_BALANCING Date: Thu, 26 Nov 2020 13:32:18 +0800 Message-Id: <20201126053219.234793-3-ying.huang@intel.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201126053219.234793-1-ying.huang@intel.com> References: <20201126053219.234793-1-ying.huang@intel.com> MIME-Version: 1.0 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: From: Huang Ying Signed-off-by: "Huang, Ying" --- man2/set_mempolicy.2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/man2/set_mempolicy.2 b/man2/set_mempolicy.2 index 68011eecb..fb16bb351 100644 --- a/man2/set_mempolicy.2 +++ b/man2/set_mempolicy.2 @@ -113,6 +113,11 @@ A nonempty .I nodemask specifies node IDs that are relative to the set of node IDs allowed by the process's current cpuset. +.TP +.BR MPOL_F_NUMA_BALANCING " (since Linux 5.11)" +Enable the Linux kernel NUMA balancing for the task if it is supported +by kernel. If the flag isn't supported by Linux kernel, return -1 and +errno is set to EINVAL. .PP .I nodemask points to a bit mask of node IDs that contains up to @@ -293,6 +298,9 @@ argument specified both .B MPOL_F_STATIC_NODES and .BR MPOL_F_RELATIVE_NODES . +Or, the +.B MPOL_F_NUMA_BALANCING +isn't supported by the Linux kernel. .TP .B ENOMEM Insufficient kernel memory was available.