Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1955369pxu; Fri, 18 Dec 2020 01:53:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGu1EJz1sP1cEMiviojZtiMN6o8QIdmlmyOQqIuGOFW1wJhA2xR3FBlbxXxxGloSbbOSHL X-Received: by 2002:a17:907:720e:: with SMTP id dr14mr3139553ejc.303.1608285198869; Fri, 18 Dec 2020 01:53:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608285198; cv=none; d=google.com; s=arc-20160816; b=Ry/d0YcN80TCQkcwCuRozjeZpRm+2Uw3r/JMSuQMguQ6++rbQG7f7wnBmERUPFOPK+ j5A3wil41w2hHe+VA3EX2W0IgVOHik7gXHmSlZFlxAkRzqi8avtKM0XzruAoiX4waP3L xyBDYU5m/HIb/lExzYi1ElFvTu4FVqCr7sOTzf8Y5Qjp83djStN/VORihGiEXKZ1eM53 hkiTwwTLmyEOFZeVujmFfxNQlTFYuFPKnGCw6dWhq6JARxKWn1WxEWkhgE1P05AF22GJ +i8FMhxTmhXqUDRt0tB7RB48NiS1nuRuKdnjE2djctnlsJp+hJxt9El2h8pnEoW39ZPw Uhcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qvWpWbEVzaGdCtT7lY02iDD8k+ikMF0dcZg/sL419MU=; b=y1ZjGGbwjBw9fMs+TCorcxh4BjBDoSzgZh+uV9ZlJQRjg3+s9/GzJOgZuqMZphtKUF KRdFEz63ntEuIIV4iwGKz+rWyEvAON4332yv1oTQ6OL7R29YFs0+LN7VUuJmhBKmZR60 7AZ3uy+W4YAEMT/pu2HVD7vVEtTYbjo/RXrdjL8p54tBrw0Dwv6kCxPvsW+qepZ1dZTR gqEPfQu1bt81WWWb/zSCK9abOHeXzzjxc/QUDKqBh3v0nTukj8j14hC+NX74k4v3Cy5V K+VTuQGp2fTsMi+LqUMof6tKDCIko8/INH8fTtRft9sVHyVmIl/1h3X1UJ5h0JS4JPHd +wbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=XxjUmRts; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nq4si4518926ejb.68.2020.12.18.01.52.55; Fri, 18 Dec 2020 01:53:18 -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=@suse.com header.s=susede1 header.b=XxjUmRts; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733103AbgLRJpb (ORCPT + 99 others); Fri, 18 Dec 2020 04:45:31 -0500 Received: from mx2.suse.de ([195.135.220.15]:57294 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727254AbgLRJpa (ORCPT ); Fri, 18 Dec 2020 04:45:30 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1608284683; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qvWpWbEVzaGdCtT7lY02iDD8k+ikMF0dcZg/sL419MU=; b=XxjUmRtsLsgb930BhBZuWO8HArjYr53zHDvbqLhbU11F5AoFpegckrbl6Lp7seCfOsPrxo vJa7+rmjsW39l5Lim+zoAJPPG48d514n+n6dyL+fLEXm9WidgFnEUXaykQBsb8T9nHljwD dhrssBMDGOgEH5Nqhncc1j///AKYo/w= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9A480AC7B; Fri, 18 Dec 2020 09:44:43 +0000 (UTC) Date: Fri, 18 Dec 2020 10:44:42 +0100 From: Michal Hocko To: Pavel Tatashin Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, vbabka@suse.cz, 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, ira.weiny@intel.com, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v4 06/10] memory-hotplug.rst: add a note about ZONE_MOVABLE and page pinning Message-ID: <20201218094442.GU32193@dhcp22.suse.cz> References: <20201217185243.3288048-1-pasha.tatashin@soleen.com> <20201217185243.3288048-7-pasha.tatashin@soleen.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201217185243.3288048-7-pasha.tatashin@soleen.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 17-12-20 13:52:39, Pavel Tatashin wrote: > Document the special handling of page pinning when ZONE_MOVABLE present. > > Signed-off-by: Pavel Tatashin > Suggested-by: David Hildenbrand Acked-by: Michal Hocko > --- > 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 > -- Michal Hocko SUSE Labs