Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1281452img; Fri, 22 Mar 2019 21:46:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqztVIWYtEsX2eSCBJSMjehww2+A7OaOOvUCRPDZa0TvmdMSyiKpqQbvkrwWQ3Kuikr2SuMy X-Received: by 2002:a63:4750:: with SMTP id w16mr12694791pgk.256.1553316377516; Fri, 22 Mar 2019 21:46:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553316377; cv=none; d=google.com; s=arc-20160816; b=VSSGR2RKP7WEHZQsJevbgsgRCqR1Hia/GMGzbeRQe85R9bLcuQ+JQCRXOEqnwfrqOz 3eq3AenaOEHrucMaylPfqQ/9UhqQSZfR1IAuLCVeEa3LwV2LtwODeUe+qgP0DkAtO+I/ EEy4Y2huGd958uysEKHolvFi89AXK+fas8xJsp/UrrQ6NRDqwGbxeq1cz3b15/AVRbs4 jKhq1JZvkL08lWf1j2q0QOIM3fzIVBIyJJYMNU++IpGuq+7EjeUhsEJTMNnobftqxLwd 09//qrqBwsZ5xmXa7T/4ojv99yUEWbgOsE7mn3eKJeLDD152r19Ca7MAFbKSu/nmSm76 XR0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=M9ZFfxU3HA1GGesCdT2Kmzqdpeoh9T1PaRxIC8NiE8w=; b=Z0QbZVRj1dHKe8KdpbpqPRmcI5pzuD/1uU2z5yT1DbWtD/BzkPOTKdCWnminZ4Lkhq GUcwHX3iwRDvcODetcmY8K3TuV0BI4cUwiBn0zzKpHfoNk63zrEagSXj3weiOYeBAVs7 IbNDVVmSuIdb9/w/c9+NMD4Q9QFxz5iA/7Een29SkT/uRp4I6KZg6ZhjlVmDw8Wvgom9 JlXwU4mzR3YJKPlIYZUlDqzp6J4QwbbVmS1esNpyPzNSFvdEZlijMSPEgR90bq92T4xl wZrfg4vA5z9PIrq6N35RZAHpgRnC9GDdSJrQ7BlKUHknIyOjf01Kkc17vEp9ODGBYx65 Gsmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b7si8087317pgw.149.2019.03.22.21.46.02; Fri, 22 Mar 2019 21:46:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727090AbfCWEpJ (ORCPT + 99 others); Sat, 23 Mar 2019 00:45:09 -0400 Received: from out30-44.freemail.mail.aliyun.com ([115.124.30.44]:41077 "EHLO out30-44.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbfCWEpH (ORCPT ); Sat, 23 Mar 2019 00:45:07 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04446;MF=yang.shi@linux.alibaba.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---0TNPuxAM_1553316293; Received: from e19h19392.et15sqa.tbsite.net(mailfrom:yang.shi@linux.alibaba.com fp:SMTPD_---0TNPuxAM_1553316293) by smtp.aliyun-inc.com(127.0.0.1); Sat, 23 Mar 2019 12:45:04 +0800 From: Yang Shi To: mhocko@suse.com, mgorman@techsingularity.net, riel@surriel.com, hannes@cmpxchg.org, akpm@linux-foundation.org, dave.hansen@intel.com, keith.busch@intel.com, dan.j.williams@intel.com, fengguang.wu@intel.com, fan.du@intel.com, ying.huang@intel.com Cc: yang.shi@linux.alibaba.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/10] doc: add description for MPOL_HYBRID mode Date: Sat, 23 Mar 2019 12:44:34 +0800 Message-Id: <1553316275-21985-10-git-send-email-yang.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1553316275-21985-1-git-send-email-yang.shi@linux.alibaba.com> References: <1553316275-21985-1-git-send-email-yang.shi@linux.alibaba.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add description for MPOL_HYBRID mode in kernel documentation. Signed-off-by: Yang Shi --- Documentation/admin-guide/mm/numa_memory_policy.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/admin-guide/mm/numa_memory_policy.rst b/Documentation/admin-guide/mm/numa_memory_policy.rst index d78c5b3..3db8257 100644 --- a/Documentation/admin-guide/mm/numa_memory_policy.rst +++ b/Documentation/admin-guide/mm/numa_memory_policy.rst @@ -198,6 +198,16 @@ MPOL_BIND the node in the set with sufficient free memory that is closest to the node where the allocation takes place. +MPOL_HYBRID + This mode specifies that the page allocation must happen on the + nodes specified by the policy. If both DRAM and non-DRAM nodes + are specified, NUMA balancing may promote the pages from non-DRAM + nodes to the specified DRAM nodes. If only non-DRAM nodes are + specified, NUMA balancing may promote the pages to any available + DRAM nodes. Any other policy doesn't do such page promotion. The + default mode may do NUMA balancing, but non-DRAM nodes are masked + off for default mode. + MPOL_PREFERRED This mode specifies that the allocation should be attempted from the single node specified in the policy. If that -- 1.8.3.1