From patchwork Fri Dec 4 09:15:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huang Ying X-Patchwork-Id: 11951163 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=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no 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 347B6C433FE for ; Fri, 4 Dec 2020 09:15:57 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8781C225AB for ; Fri, 4 Dec 2020 09:15:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8781C225AB 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 A75F46B0068; Fri, 4 Dec 2020 04:15:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9FFAB6B006C; Fri, 4 Dec 2020 04:15:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8F1BF6B006E; Fri, 4 Dec 2020 04:15:55 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0194.hostedemail.com [216.40.44.194]) by kanga.kvack.org (Postfix) with ESMTP id 783916B0068 for ; Fri, 4 Dec 2020 04:15:55 -0500 (EST) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 40245B7BD for ; Fri, 4 Dec 2020 09:15:55 +0000 (UTC) X-FDA: 77555042670.16.house58_2e01afb273c3 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id 165F7100E54A6 for ; Fri, 4 Dec 2020 09:15:55 +0000 (UTC) X-HE-Tag: house58_2e01afb273c3 X-Filterd-Recvd-Size: 2970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by imf02.hostedemail.com (Postfix) with ESMTP for ; Fri, 4 Dec 2020 09:15:53 +0000 (UTC) IronPort-SDR: yrK94D2586B7rhdd8VAjpKG9UnvE5iiQB7II6NVgoIHlH8aO2ULv83hlx49h2W1F8EO3GVMn6+ fkpUciaSGUwQ== X-IronPort-AV: E=McAfee;i="6000,8403,9824"; a="237467123" X-IronPort-AV: E=Sophos;i="5.78,392,1599548400"; d="scan'208";a="237467123" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2020 01:15:47 -0800 IronPort-SDR: EwRX6H772fvKtoAZfuwHxnpbTtdkq+BjZrWJlmm8+DAxFXFT++ZPoLFyuz8SUzx2UB+1oYIBCU VTmok+nuy47g== X-IronPort-AV: E=Sophos;i="5.78,392,1599548400"; d="scan'208";a="550879466" Received: from unknown (HELO yhuang6-mobl1.ccr.corp.intel.com) ([10.254.212.254]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2020 01:15:43 -0800 From: Huang Ying To: Peter Zijlstra , Mel Gorman Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Huang Ying , "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: [PATCH -V7 0/3] numa balancing: Migrate on fault among multiple bound nodes Date: Fri, 4 Dec 2020 17:15:31 +0800 Message-Id: <20201204091534.72239-1-ying.huang@intel.com> X-Mailer: git-send-email 2.29.2 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: To make it possible to optimize cross-socket memory accessing with AutoNUMA even if the memory of the application is bound to multiple NUMA nodes. Patch [2/3] and [3/3] are NOT kernel patches. Instead, they are patches for man-pages and numactl respectively. They are sent together to make it easy to review the newly added kernel API. Changes: v7: - Make set_mempolicy() return -1 with errno is set to EINVAL if mode isn't MPOL_BIND per Mel's comments. Revise document accordingly too. v6: - Rebased on latest upstream kernel 5.10-rc5 - Added some benchmark data and example in patch description of [1/3] - Rename AutoNUMA to NUMA Balancing - Add patches to man-pages [2/3] and numactl [3/3] v5: - Remove mbind() support, because it's not clear that it's necessary. v4: - Use new flags instead of reuse MPOL_MF_LAZY. v3: - Rebased on latest upstream (v5.10-rc3) - Revised the change log. v2: - Rebased on latest upstream (v5.10-rc1) Best Regards, Huang, Ying