From patchwork Wed Jan 20 06:12:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, Ying" X-Patchwork-Id: 12031467 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 A8DB1C433E0 for ; Wed, 20 Jan 2021 06:13:26 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 14ABF2313C for ; Wed, 20 Jan 2021 06:13:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 14ABF2313C 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 0EA9C6B0005; Wed, 20 Jan 2021 01:13:25 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 074586B0006; Wed, 20 Jan 2021 01:13:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E7D0E6B0007; Wed, 20 Jan 2021 01:13:24 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0055.hostedemail.com [216.40.44.55]) by kanga.kvack.org (Postfix) with ESMTP id CD9B06B0005 for ; Wed, 20 Jan 2021 01:13:24 -0500 (EST) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 80455364C for ; Wed, 20 Jan 2021 06:13:24 +0000 (UTC) X-FDA: 77725136328.04.tiger60_48177ef27558 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id 609218011452 for ; Wed, 20 Jan 2021 06:13:24 +0000 (UTC) X-HE-Tag: tiger60_48177ef27558 X-Filterd-Recvd-Size: 2960 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by imf10.hostedemail.com (Postfix) with ESMTP for ; Wed, 20 Jan 2021 06:13:22 +0000 (UTC) IronPort-SDR: /DlVbwBDkfLGPLz6vqNuHMLUCwncAJHp1NHb7hFyTZdVWJlXfQwE0fbEeS3F38DOWqNh0DSHwq vK3n/AN/Ukrg== X-IronPort-AV: E=McAfee;i="6000,8403,9869"; a="158825999" X-IronPort-AV: E=Sophos;i="5.79,360,1602572400"; d="scan'208";a="158825999" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2021 22:13:20 -0800 IronPort-SDR: cb/LPdqap+NBCBq8dn8vJUVttOnSwklJfB9TdxDaLVeKn0SURH1SP3VtA7RNRInWqFmRQmrZ1B R8jsSofSnEHQ== X-IronPort-AV: E=Sophos;i="5.79,360,1602572400"; d="scan'208";a="384449244" Received: from yhuang6-mobl1.sh.intel.com ([10.238.6.89]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2021 22:13:17 -0800 From: Huang Ying To: Andrew Morton , Mel Gorman Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Huang Ying , "Matthew Wilcox (Oracle)" , Rafael Aquini , Ingo Molnar , Rik van Riel , Johannes Weiner , Dave Hansen , Andi Kleen , Michal Hocko , David Rientjes , linux-api@vger.kernel.org Subject: [PATCH -V9 0/3] numa balancing: Migrate on fault among multiple bound nodes Date: Wed, 20 Jan 2021 14:12:32 +0800 Message-Id: <20210120061235.148637-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: v9: - Rebased on latest mmotm kernel v5.11-rc3-mmots-2021-01-12-02-00 v8: - Rebased on latest upstream kernel v5.11-rc2 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 v5.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