Message ID | 20230802095346.87449-1-wangkefeng.wang@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp338947vqx; Wed, 2 Aug 2023 02:59:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlHJkONZ8wvpaMLQ3AXMCKLqF6MKOPxvGDehGD3H0WN+i30ken4BjVmFtEtOzZUxQ8EM/XSJ X-Received: by 2002:a05:6a00:1827:b0:687:596e:fa72 with SMTP id y39-20020a056a00182700b00687596efa72mr3944183pfa.5.1690970369810; Wed, 02 Aug 2023 02:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690970369; cv=none; d=google.com; s=arc-20160816; b=BFXnYUo4dD6+qHttOg0IbsHt3+Cu1+EYJuSY7F3AhFIOuaeKS4EggzS2R5AxEABHad Pc0UxDAqaPp2BLSJshxFcslBNYHOVr5P/ruLvJn0GRr7kDF0/31e+ylQxqDLI2MjxxYs VuN4qx3F494ysrFG9QumZZ535KXYfQ9/weT4pdoR6M2mE10dPv43LKvUo/1Ve6xI7juz CKnsnhNlifbOxXrsFaOIisDb1kK5nF5IEKmHH/CJNDJrbaJ4cQ2HICZtZw0HHRc0y4Ey PWcQpG4NEGpQ5AvG2HjJGVj2fVRXr29qAnh3lbHeoxm4PVc489AZBphUev0FuRomELm6 qagw== 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 :message-id:date:subject:cc:to:from; bh=AoDsahcJfa/0h2BvOLDizPDT6BiVsqiQgJ9OynzJVXY=; fh=frTJ5b0OruHscvMLDfKfibXYJSJ4/6aFlw/4ZMUelj0=; b=ZpxzczOowq4oOD9ADWBFoYn9R6slC2aoIaZKdPcHCYoss3LNzXsQN+ixeu+2Ywign1 CygBcLmFFuGGmumGV4ogbvgR+va/hou/e9OOoHr5qxZtFVqKSJKahI4oaZFTy5KZy6L1 D9yesBfb8R3OFe1so8pTvO4/Vn7U0HrMcZ1wKNaKvKDeWTtVsE/JPjYsxg8HfW1KQz8n XgnngcfNyKCD+xn7J12jWNEijzU3+gra8526y+PdQ82pFWIPMidcJrr+Um6Gd6g5P/Ok r5fcgKMUbif52TYC9I2pj52f5+/9L+RPicCneJAOTUesq9I/7qx60tA2W9NHsWNNxrpm Ruvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a63f508000000b005641af57bfdsi8761993pgh.144.2023.08.02.02.59.15; Wed, 02 Aug 2023 02:59:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234105AbjHBJpj (ORCPT <rfc822;maxi.paulin@gmail.com> + 99 others); Wed, 2 Aug 2023 05:45:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232126AbjHBJpd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 2 Aug 2023 05:45:33 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BEDC2D52 for <linux-kernel@vger.kernel.org>; Wed, 2 Aug 2023 02:45:21 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RG6WN4LxvzrS5N; Wed, 2 Aug 2023 17:44:16 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 2 Aug 2023 17:45:18 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org>, <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org> CC: Huang Ying <ying.huang@intel.com>, David Hildenbrand <david@redhat.com>, Matthew Wilcox <willy@infradead.org>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH 0/4] mm: migrate: more folio conversion Date: Wed, 2 Aug 2023 17:53:42 +0800 Message-ID: <20230802095346.87449-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773110946561030723 X-GMAIL-MSGID: 1773110946561030723 |
Series | mm: migrate: more folio conversion | |
Message
Kefeng Wang
Aug. 2, 2023, 9:53 a.m. UTC
This patch series converts several functions to use folio in migrate.c. Kefeng Wang (4): mm: migrate: use a folio in add_page_for_migration() mm: migrate: convert numamigrate_isolate_page() to numamigrate_isolate_folio() mm: migrate: make migrate_misplaced_page() to take a folio mm: migrate: use __folio_test_movable() mm/migrate.c | 101 +++++++++++++++++++++++++-------------------------- 1 file changed, 50 insertions(+), 51 deletions(-)
Comments
On 02.08.23 11:53, Kefeng Wang wrote:
> This patch series converts several functions to use folio in migrate.c.
Please clearly spell out in the patch descriptions when you are changing
mapcount logic and which effects that might have (both, positive and
negative) for PTE-mapped THP.
On 2023/8/2 19:47, David Hildenbrand wrote: > On 02.08.23 11:53, Kefeng Wang wrote: >> This patch series converts several functions to use folio in migrate.c. > > Please clearly spell out in the patch descriptions when you are changing > mapcount logic and which effects that might have (both, positive and > negative) for PTE-mapped THP. Oh, I see your comments on another mail[1], the folio_estimated_sharers() is not good to evaluate the sharing by multiple processes, will read more history of the mail's discussion, maybe just ignore the first three patches. Thank. [1] [PATCH 0/2] don't use mapcount() to check large folio sharing >
On 02.08.23 14:38, Kefeng Wang wrote: > > > On 2023/8/2 19:47, David Hildenbrand wrote: >> On 02.08.23 11:53, Kefeng Wang wrote: >>> This patch series converts several functions to use folio in migrate.c. >> >> Please clearly spell out in the patch descriptions when you are changing >> mapcount logic and which effects that might have (both, positive and >> negative) for PTE-mapped THP. > > Oh, I see your comments on another mail[1], the folio_estimated_sharers() > is not good to evaluate the sharing by multiple processes, will read more > history of the mail's discussion, maybe just ignore the first three patches. It might be good enough for some cases right now. My point is that we better just clearly spell out the possible effects of such a change. (so far you didn't even mention them, and that's sub-optimal when buried in a "folio" conversion that better shouldn't change the functionality without spelling it out)