From patchwork Fri Dec 11 20:21:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pasha Tatashin X-Patchwork-Id: 11969347 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.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 3A51FC1B0D8 for ; Fri, 11 Dec 2020 20:21:58 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B04C623F38 for ; Fri, 11 Dec 2020 20:21:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B04C623F38 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=soleen.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 61F6B6B0070; Fri, 11 Dec 2020 15:21:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5D2BB6B0072; Fri, 11 Dec 2020 15:21:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4E5A26B0073; Fri, 11 Dec 2020 15:21:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0182.hostedemail.com [216.40.44.182]) by kanga.kvack.org (Postfix) with ESMTP id 338FA6B0070 for ; Fri, 11 Dec 2020 15:21:54 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id F21D9181AEF21 for ; Fri, 11 Dec 2020 20:21:53 +0000 (UTC) X-FDA: 77582122506.24.watch69_530ec2927403 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin24.hostedemail.com (Postfix) with ESMTP id D961F1A4A0 for ; Fri, 11 Dec 2020 20:21:53 +0000 (UTC) X-HE-Tag: watch69_530ec2927403 X-Filterd-Recvd-Size: 4718 Received: from mail-qv1-f68.google.com (mail-qv1-f68.google.com [209.85.219.68]) by imf17.hostedemail.com (Postfix) with ESMTP for ; Fri, 11 Dec 2020 20:21:53 +0000 (UTC) Received: by mail-qv1-f68.google.com with SMTP id az16so2702499qvb.5 for ; Fri, 11 Dec 2020 12:21:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=UPZkOOUAvu9r4fFw8TJVvFyTq3W2R2uLYiLCZknh/L8=; b=hVQRD1LlUsoJuOAc051CXjk2/dVUpiNlMuxbw4uUGEPOPZ3HmFNU0C98MsLBWna3fM p2zQdMiimm2nS4zvqoYJbPMy3rDxOJTx+XQe+y6m6d4mTjkKSUZjQirRZOm4isp54fjB X6CTaymXFF+7Ab3fjNVul9yMWMIr6kRN1WcvxhcDpRFriU2mnSogEiO/p7rHtb8o1e0Z L7tevjlfqdvtjcRWrrp6QhbaEbwsiOoN0WTHrj8A/pAGwo4Y1Q7ppmtkQ8u6+vB3antE r/eK9monwWuehW5yDmeo3LUI2/qDhI+A97EIyXjbpi78G47yubvPzdmnhSdSRYH6MhL7 KBLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UPZkOOUAvu9r4fFw8TJVvFyTq3W2R2uLYiLCZknh/L8=; b=lMerj6WLHdE5tuSiwwmFzt1aehvpukNuxWxDWBOHozLuRhsMP+zNBPTXZzZsu89Wp6 GY/j2oi3+guyGxD+k6DITWlYTURF20ml2PueMYvnAbhlVF0IsPt1TLM/zpDdRUf2hI4+ SHDPPAJYF4twv1/JHEHp7ZTJ3KpR8szuKF2kRzqb+ub34VS7AiEj64yMZP48HX9Uxc3x 1Fuiele0JDtSAC9F9JCnbwPnp4kI1SbC2Y1Fol8LYW0pQ/aOBsmp0tODx5RnMaAy88Bl 1C2omc7hMtXZ9Oh3RPcopSyH5em/Qh8+a2HJV0nGPuuuhO9+LP/IrQ6IUfFi/BbAtX+n DpzA== X-Gm-Message-State: AOAM532x4VaxSkug5MiZ1gBnOMifzr7ou6DuVbnJQDS9JtNcC6aLXgJv fan+p9CbNLnJFRAOxYGP5qBFWw== X-Google-Smtp-Source: ABdhPJzzBA0IO1zEvNvTSi56jO8MgXCjXqx/kMRSbq6P0sQl3EDuH9tzpjNq07vwblX5aH/exG15Yg== X-Received: by 2002:a0c:f005:: with SMTP id z5mr18789770qvk.9.1607718112802; Fri, 11 Dec 2020 12:21:52 -0800 (PST) Received: from localhost.localdomain (c-73-69-118-222.hsd1.nh.comcast.net. [73.69.118.222]) by smtp.gmail.com with ESMTPSA id y192sm8514455qkb.12.2020.12.11.12.21.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Dec 2020 12:21:52 -0800 (PST) From: Pavel Tatashin To: pasha.tatashin@soleen.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, vbabka@suse.cz, mhocko@suse.com, david@redhat.com, osalvador@suse.de, dan.j.williams@intel.com, sashal@kernel.org, tyhicks@linux.microsoft.com, iamjoonsoo.kim@lge.com, mike.kravetz@oracle.com, rostedt@goodmis.org, mingo@redhat.com, jgg@ziepe.ca, peterz@infradead.org, mgorman@suse.de, willy@infradead.org, rientjes@google.com, jhubbard@nvidia.com, linux-doc@vger.kernel.org Subject: [PATCH v3 6/6] memory-hotplug.rst: add a note about ZONE_MOVABLE and page pinning Date: Fri, 11 Dec 2020 15:21:40 -0500 Message-Id: <20201211202140.396852-7-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201211202140.396852-1-pasha.tatashin@soleen.com> References: <20201211202140.396852-1-pasha.tatashin@soleen.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: Document the special handling of page pinning when ZONE_MOVABLE present. Signed-off-by: Pavel Tatashin Suggested-by: David Hildenbrand --- Documentation/admin-guide/mm/memory-hotplug.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/admin-guide/mm/memory-hotplug.rst b/Documentation/admin-guide/mm/memory-hotplug.rst index 5c4432c96c4b..c6618f99f765 100644 --- a/Documentation/admin-guide/mm/memory-hotplug.rst +++ b/Documentation/admin-guide/mm/memory-hotplug.rst @@ -357,6 +357,15 @@ creates ZONE_MOVABLE as following. Unfortunately, there is no information to show which memory block belongs to ZONE_MOVABLE. This is TBD. +.. note:: + Techniques that rely on long-term pinnings of memory (especially, RDMA and + vfio) are fundamentally problematic with ZONE_MOVABLE and, therefore, memory + hot remove. Pinned pages cannot reside on ZONE_MOVABLE, to guarantee that + memory can still get hot removed - be aware that pinning can fail even if + there is plenty of free memory in ZONE_MOVABLE. In addition, using + ZONE_MOVABLE might make page pinning more expensive, because pages have to be + migrated off that zone first. + .. _memory_hotplug_how_to_offline_memory: How to offline memory