Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1955894pxu; Fri, 18 Dec 2020 01:54:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqVjdjDPspokbcY26qx2Zt7Ug1pdwbXQeOjp2/e4Fiah1u2ybuqz2z2smpK5cnjUMeu4DZ X-Received: by 2002:a50:f1c7:: with SMTP id y7mr3555729edl.184.1608285256841; Fri, 18 Dec 2020 01:54:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608285256; cv=none; d=google.com; s=arc-20160816; b=Id8T1Y5E3X4meekE3FXv1nHVgkM9ZBDjPEKoj8z6AvDdtYVyRcVBB9mg5RTsdEWZF/ lfRhOWA0q4NmAOQTZgNGohBzO+i3Xnd7caCnGtfdNM3vKPKQgCrtuoVA1wQNMxxQwCxg tsXmG/yNn9iij4sddqpwlL3RBwX46+fpRr0wSlXK5RYCg9oErAXXRqE0uyAjboVirIE7 Fes5g+DnEsXahc6sEHlMvEmZMeFUOqXWPfsR/Zah67o3zScOkJHuGM36RYz7nRQ6G0aL ZpIWiX0RGDc8nLZfrle5kBTaNBZGaxJgB5sbuCjvq+F8hzK92EQL7zNkyr18iL3qmyQJ VQ9A== 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=Kns51nghtkz6ndAww0GyVqmKXCNEXcevy0MsQVndr/Q=; b=vARJ+8qWy8Qu1x6DCp1e2RDaYn8T2VL0zVIXIcTsBMgx1t+0pqHWG6deSG52T+572l YyK/Ym6PjnmkY6BsqdNq0t4Uq6jl8qq7v6+ygC/Qd3ba58iRwdY2fsy2/2PXMJcVdchR TQXxTkkJX5FKkYj4VWVmGfZFJfiHNMVi5+cou6Mc/yDPpL2j/yeon3N54wQVVIAChD8J 7MMCMb4iZLP/HY0cSwCdHab9NRXcfFFF4QkYJ90aQfhfpHjWuozn6wXsQpMM5OZ0cq35 q5Z1iqGsKUI+VVlWPMjgFNfAW1HGPWXzV+ZCud2/b8LiFBanFbwExPbdORqsYW18F8X3 +bZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=BeXlxK9M; 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 r14si4445298eju.173.2020.12.18.01.53.54; Fri, 18 Dec 2020 01:54:16 -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=BeXlxK9M; 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 S1732708AbgLRJoN (ORCPT + 99 others); Fri, 18 Dec 2020 04:44:13 -0500 Received: from mx2.suse.de ([195.135.220.15]:56658 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbgLRJoN (ORCPT ); Fri, 18 Dec 2020 04:44:13 -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=1608284606; 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=Kns51nghtkz6ndAww0GyVqmKXCNEXcevy0MsQVndr/Q=; b=BeXlxK9M4wgEVguLtRScCNhQjzll21viDpb7mjSOySSiwfuIAFOm6LrI5elHH55KfG81Qf t2uxwmdt6qwwCserYXTFBNQKHazYMkB5euGcVgHvByC/5JFQlY3mt5eyvJl7ihJWVtnK4X 63LP2G/AU+lJ0CBSxgu5n2vySg4Nto0= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 29927ACC4; Fri, 18 Dec 2020 09:43:26 +0000 (UTC) Date: Fri, 18 Dec 2020 10:43:24 +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 05/10] mm/gup: migrate pinned pages out of movable zone Message-ID: <20201218094324.GT32193@dhcp22.suse.cz> References: <20201217185243.3288048-1-pasha.tatashin@soleen.com> <20201217185243.3288048-6-pasha.tatashin@soleen.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201217185243.3288048-6-pasha.tatashin@soleen.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 17-12-20 13:52:38, Pavel Tatashin wrote: > + * 1. Pinned pages: (long-term) pinning of movable pages is avoided > + * when pages are pinned and faulted, but it is still possible that > + * address space already has pages in ZONE_MOVABLE at the time when > + * pages are pinned (i.e. user has touches that memory before > + * pinning). In such case we try to migrate them to a different zone, > + * but if migration fails the pages can still end-up pinned in > + * ZONE_MOVABLE. In such case, memory offlining might retry a long > + * time and will only succeed once user application unpins pages. I still dislike this. Pinning can fail so there shouldn't be any reasons to break MOVABLE constrain for something that can be handled. If anything there should be a very good reasoning behind this decision documented. -- Michal Hocko SUSE Labs