Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp200326pxb; Fri, 15 Jan 2021 10:42:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxS3bFIeX7jc/VRS4v3MfXZFAA5fwwXy/rKLO9CIXEZ+2dvcavH8twpS1jr1vHGRO5Gwhxv X-Received: by 2002:a17:906:3fc1:: with SMTP id k1mr10333607ejj.58.1610736168110; Fri, 15 Jan 2021 10:42:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610736168; cv=none; d=google.com; s=arc-20160816; b=tjhKqbGiUfGxK/JRlaD+3i9rTo3K2kP9FvRMIO3CQz6kOpUP0t3Cc/+xT5EPUddi3i Q7w4bFtmvac006AB8YePnYO4O94WDd1l1swtUYWoYoiYCbUmupFI9kqUHPQieMgbwLKm NZmqcyq8gqnO/IMv5sAlhKvq7wQTaJTQ/AOWn34LkqRmS/qcUXiF9E/siowSfeYW2V1E DrHO2Yn1J53h3LHUyuhuEaHKQTqrwH9WeRqnJXqodOhLuI9+sJbL9tFmLS9Apf7ooiin fdr+7iRxlBAzGgdJ6SzJ9D14UiTjNFHaHHUqtGmH8pvF+zGpjdvFE+dnCZJ+U06OlMBG u1bA== 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=7iqMaLM5ngsObMfPwH4GTR7fbydas+V1RNx2qyihbRE=; b=WgIPrYG2TkRINmDzY7VME5qraVlZ+epL3AINgvcpiW+bYoVYsWNnzPLs2WPf6TFNlM LcAj8OSvIVmMSvtCcxmdqZm49k+j4AWcxYXg/++L2abs0SB2dyeBJTz869jDuflEh71T luUMi2Emw7DWp/NlINJnf25qrrl7D3SKw4q7DhNV23S9XTltsxkjRmlTL/VPxJ/9ogbW JBIbuw2tKFeehUd7cbo/C1LOk95qJnwoWngMDG925Wb1Bb0NJ3KJE+yb3TXZ5of5njms pWAdcGZf8IokJmgSoBP41jxyjz+j0mZh8Y9UyW9K3c0kqI0w4zYvVsam22Y3ghvy+58U MXTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=OhxHt8mm; 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 m16si4051175ejj.44.2021.01.15.10.42.23; Fri, 15 Jan 2021 10:42:48 -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=@ziepe.ca header.s=google header.b=OhxHt8mm; 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 S2387598AbhAOSkt (ORCPT + 99 others); Fri, 15 Jan 2021 13:40:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726410AbhAOSkt (ORCPT ); Fri, 15 Jan 2021 13:40:49 -0500 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E5D0C0613C1 for ; Fri, 15 Jan 2021 10:40:09 -0800 (PST) Received: by mail-qt1-x835.google.com with SMTP id d15so1300325qtw.12 for ; Fri, 15 Jan 2021 10:40:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=7iqMaLM5ngsObMfPwH4GTR7fbydas+V1RNx2qyihbRE=; b=OhxHt8mmLJBsBMtZBFbnzLbxdAsOB8Ka3zQhmpOBvqIxz1zjBrp/a47AIXhKA0t3km YlHhKjdWMqC7jNahlHbUlRUPmkRb6aO3yRCF+8ADRWKYCO7qd059e5vvQyc9p7FxMpRy yK6aElGVEG1rRRoH4i0ELby/mv6XobYfm7NJGIKaJEA8DWYgI7JeHVHHJ5l69RwW2WVM MNIBWcLwwew5ASqQAc7q4SYDX9xA6MsERsWIb//cqdNkvQpmcUggFcLkB3zoFQMDBzw9 T/XsBb0QSqYdbXf3XNPHdZZtNVQ/dL8ZHqC6DmEFhEVb5SB5csXt7sqriqrmopJy8BxM omLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7iqMaLM5ngsObMfPwH4GTR7fbydas+V1RNx2qyihbRE=; b=c+K9umHVNFN0K0Y+Byp6XoXLN323+tFWRFpL6sC1MjC+ezxKrrtue/fNoEbsT5L5qP Lil/9BqXjmLWraSuHL08dE5LDTfaw7bKxKdPuNSv6Y/r+wRI+2dXMy14SOn4hmj46+Bd iqoMbxy8y/AAGXo30o1mtTA1aQxrA23pUUPhvVw1mzu5anBEeTbN/bgaWJUTsVFN35LU 5k6EOmWX5LS7piNITPrtAvngsyVRcf5/YR7ZaEzdEw4scRRt8llWpO6yZf27XUaaKcNg htzg+oq4bo3To4pvzaPrb1qNRhGfgYCiQkv0OfOs6xcyxDkgkps1Mshx4DPyWDRSx60i Hdig== X-Gm-Message-State: AOAM532+Z/JJOB3Lq7EK5WQi6UL1TBilbAU2Nf8L3xLWA0lsssPnrQli rfPDBMaJPysP9gUj+4ciWRy6rA== X-Received: by 2002:a05:622a:4d1:: with SMTP id q17mr7113455qtx.272.1610736008331; Fri, 15 Jan 2021 10:40:08 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-115-133.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.115.133]) by smtp.gmail.com with ESMTPSA id u10sm1059825qtb.24.2021.01.15.10.40.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:40:07 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1l0U10-001hs5-Uq; Fri, 15 Jan 2021 14:40:06 -0400 Date: Fri, 15 Jan 2021 14:40:06 -0400 From: Jason Gunthorpe To: Pavel Tatashin Cc: LKML , linux-mm , Andrew Morton , Vlastimil Babka , Michal Hocko , David Hildenbrand , Oscar Salvador , Dan Williams , Sasha Levin , Tyler Hicks , Joonsoo Kim , mike.kravetz@oracle.com, Steven Rostedt , Ingo Molnar , Peter Zijlstra , Mel Gorman , Matthew Wilcox , David Rientjes , John Hubbard , Linux Doc Mailing List , Ira Weiny , linux-kselftest@vger.kernel.org Subject: Re: [PATCH v4 08/10] mm/gup: limit number of gup migration failures, honor failures Message-ID: <20210115184006.GH4605@ziepe.ca> References: <20201217185243.3288048-1-pasha.tatashin@soleen.com> <20201217185243.3288048-9-pasha.tatashin@soleen.com> <20201217205048.GL5487@ziepe.ca> <20201218141927.GM5487@ziepe.ca> <20210113195528.GD4605@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 15, 2021 at 01:10:27PM -0500, Pavel Tatashin wrote: > I've been thinking about this some more. Again, I am not sure this is > a bug. I understand split_huge_pmd() may split the PMD size page into > PTEs and leave the compound page intact. However, in order for pages[] > to have non sequential addresses in compound page, those PTEs must > also be migrated after split_huge_pmd(), Why focus on migrated? Anything could happen to those PTEs: they could be COW'd, they could be mmap/munmap'd, etc. Jason