From mboxrd@z Thu Jan 1 00:00:00 1970 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=-15.2 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_SANE_1 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 B7707C64E7C for ; Wed, 2 Dec 2020 11:45:39 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1D8DD20709 for ; Wed, 2 Dec 2020 11:45:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1D8DD20709 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 78A826B005C; Wed, 2 Dec 2020 06:45:38 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 73B518D0002; Wed, 2 Dec 2020 06:45:38 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6522F8D0001; Wed, 2 Dec 2020 06:45:38 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0039.hostedemail.com [216.40.44.39]) by kanga.kvack.org (Postfix) with ESMTP id 4CA546B005C for ; Wed, 2 Dec 2020 06:45:38 -0500 (EST) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 066481F10 for ; Wed, 2 Dec 2020 11:45:38 +0000 (UTC) X-FDA: 77548162356.20.steam89_170e7a2273b2 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id CCFC8180C07AB for ; Wed, 2 Dec 2020 11:45:37 +0000 (UTC) X-HE-Tag: steam89_170e7a2273b2 X-Filterd-Recvd-Size: 2430 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf28.hostedemail.com (Postfix) with ESMTP for ; Wed, 2 Dec 2020 11:45:37 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id F3757ACB5; Wed, 2 Dec 2020 11:45:35 +0000 (UTC) Date: Wed, 2 Dec 2020 11:45:33 +0000 From: Mel Gorman To: Huang Ying Cc: Peter Zijlstra , linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Matthew Wilcox (Oracle)" , Rafael Aquini , Andrew Morton , Ingo Molnar , Rik van Riel , Johannes Weiner , Dave Hansen , Andi Kleen , Michal Hocko , David Rientjes , linux-api@vger.kernel.org Subject: Re: [PATCH -V6 RESEND 3/3] NOT kernel/numactl: Support to enable Linux kernel NUMA balancing Message-ID: <20201202114533.GX3306@suse.de> References: <20201202084234.15797-1-ying.huang@intel.com> <20201202084234.15797-4-ying.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20201202084234.15797-4-ying.huang@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) 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: On Wed, Dec 02, 2020 at 04:42:34PM +0800, Huang Ying wrote: > A new API: numa_set_membind_balancing() is added to libnuma. It is > same as numa_set_membind() except that the Linux kernel NUMA balancing > will be enabled for the task if the feature is supported by the > kernel. > > At the same time, a new option: --balancing (-b) is added to numactl. > Which can be used before the memory policy options in the command > line. With it, the Linux kernel NUMA balancing will be enabled for > the process if the feature is supported by the kernel. > > Signed-off-by: "Huang, Ying" > index f3bb22b..109dd8f 100644 > --- a/numactl.8 > +++ b/numactl.8 > @@ -25,6 +25,8 @@ numactl \- Control NUMA policy for processes or shared memory > [ > .B \-\-all > ] [ > +.B \-\-balancing > +] [ --balancing is a bit vague, maybe --balance-bind? The intent is to hint that it's specific to MPOL_BIND at this time. -- Mel Gorman SUSE Labs