Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1557811pxu; Sat, 12 Dec 2020 17:40:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpy2S+DruFxrnGcTcS0Pg+5S0jPW/AE5/4mcBizmXgHY2zY7iG7NQEE3SgHuBgMXJmUPGl X-Received: by 2002:a05:6402:1421:: with SMTP id c1mr18926898edx.247.1607823624223; Sat, 12 Dec 2020 17:40:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607823624; cv=none; d=google.com; s=arc-20160816; b=qgmxHMp5/eMo1nxyjO6xS6RbcBrY4+FnQUk0lMQWTaJuhpL8zNmlxKJdiEVPDZaodh yLKB2yhXct6sbYmsxu1O6B3P4oWXlG6bR5d29WyZHLEyRxjPMqhiAmxLvkCYktTv/gPf h11S8iE5dxFFIV/cTYIlfX8hNcTlxoeBqtlCdvXDA9obe5gf3g9hjOr7DiAulkDRJx5T vJTIc/dRiU9EcTMcjF819ZMoIkGxpJ35k3myGpZFcY4cV36KlIeXnwgz/S7/g26PUQ59 UUKiNuwyJuz9J0twKCz9ZKapv6/FYQRomocke/0HNZMW9K+gW7YeXspLrfbdXIj7Kwhm Qacw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=UPZkOOUAvu9r4fFw8TJVvFyTq3W2R2uLYiLCZknh/L8=; b=kywSp162COW6PiNrbDXfGnp6yIA0IaRuOV5DjMtbVkCe7ZDazNSelbknq/cdonL1YC zr0iZK7axPJW8Z8ojcizKGMcMXOgZTQ+896QIrOozPe+19M054P3OPxtbxXdTRv9Q9+C tKXMQRgnwrNYeEIy6g8bl0GQJkNka705jz3WO7Nz7emwuHFkmd+8ri99Ll3yilyRxvVr lxtbcSx/eTx3dRwk6bHHAR8Ux0CZRIlgpSKKfmlZeZmNRs7FKgAvrXIruE+WeHtitOi4 uolFCjWtOa/V9XKctQnZI5p+Oofj50KcAE6xIcyAf0RRGEe0sRomvDrkBpERSMDY5wcN XhJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=hVQRD1Ll; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si7212672edf.510.2020.12.12.17.40.01; Sat, 12 Dec 2020 17:40:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=hVQRD1Ll; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394463AbgLKUYg (ORCPT + 99 others); Fri, 11 Dec 2020 15:24:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394336AbgLKUXH (ORCPT ); Fri, 11 Dec 2020 15:23:07 -0500 Received: from mail-qv1-xf42.google.com (mail-qv1-xf42.google.com [IPv6:2607:f8b0:4864:20::f42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CA2AC061257 for ; Fri, 11 Dec 2020 12:21:53 -0800 (PST) Received: by mail-qv1-xf42.google.com with SMTP id d11so4811586qvo.11 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=epTLdfILbpyV5Kocc/SkJXgvaI526iZ/yyeASqc2KGSDbsu6iCGzgH80k4ftmbYydx N78wH/Y5JOfToybuVdlSl0qZryo9T8MvK9q9MBuGEdR5Miu05CrkSThoYEI6KxLlLYmc kRegS4SAaGUHd2OUmL7OuCfodiKdTuJx+fmQXi4vH9z09wT05lD3khk/s1qsA/l7mhar uYiO//V+AtOIWPj75sGzR+ly5x5jXVnA6ktZRDxIVEzwrZDlgwfRjd4T57e5sB9WVqSm kAY2BYP/CqbDnPPPL6AK6+YoENB6J4CNWYTzF6rO3/IvRb30cbK0e9yS2OMwKAca+hJS 7krg== X-Gm-Message-State: AOAM53163TRapcuVK/43UUK6QuMO3VGcR5NV2QPjQ3vjk48K/77um1Lv bTmSX7j3Oq7w5ub4dxmCXeeQKw== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.25.1