Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1490998rdb; Mon, 19 Feb 2024 19:01:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUGp4DzeIvnF5fdfBQBuGXmyMCQnb08X1CqtNRYuRlK+CQL3kscD5+Mpuk+Ur2m0Q87hE7UjqPZgmil3Z+LL8CA2RRBjEQZDJH5QAoWpQ== X-Google-Smtp-Source: AGHT+IFxjMJB3y1Q2EoCuFg9YpgeEUS52iQZCGEy7irDie1f2vMGB188d95TG3L4M6NqBz5WPVQI X-Received: by 2002:a05:620a:2b4e:b0:787:3aac:5499 with SMTP id dp14-20020a05620a2b4e00b007873aac5499mr17044891qkb.35.1708398108380; Mon, 19 Feb 2024 19:01:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708398108; cv=pass; d=google.com; s=arc-20160816; b=UYV8KEUobjJDXrsVqzu+RgOnUWcF8sh0AvdimzbAsNbp5ulIwhbEZjQRnsHYHFG3jY R9EUA+6aaKOAtJeijn+5ivymgrAUK4vGyGtTmCX3xSrRvRmoE3a/4nty20RkgPE1+dJi nZ770pGHNBY8cY3u6UTNZZEe8yLLhXAyEq+4hEigLiZxVTPt6IRmQQfcBsgjKBWqRY/U 87MunFGq2DFvONmqra25GtmG+NDXDPneop55ZQ6krt/+KuxGvtfTdnRmlwJb0EYka7Oi PrNbZIuvoR2HlVDnzjAPFJI0kQknHBS2Sr9U/qqNZZKPEchyl2BPEzLdrAceOfSfl4LA 5LfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=sDGPECVwML/ab/agq9Xvg0iE7vYihMMAiv8/y6zVFrM=; fh=g/Ud/w6OxXD/ybkKvUYMM13QBsECYA5y5Xtltfd8dnE=; b=G+t6BmIEb8ILsXIjABbSq+ozdQi10BhNeYKih1m9KWdxflWhYlJpQZn7AQ7QKUPwGv oEII1q38d/eyDimjDJEucpXgoZv/Nog4GCVsqCAep3qRBm3FizvDRiJ8GV2/I3d25i64 gotayiAI+Q4FLI1qzr5JujwvUEscEiankNieFvLnoB4alw7uvwq7bzo+6h1aqb+EDsRw ICggfH85MGt4dfTTzMARxyT+H1ZbrNZ/d6YHu0YYtenAdt/CcEnbNlh4JAsL3LlCdZQc Q3WP1Ca91JbdK5MroFo9zFPKDSM+Wfgv9byaZJ3+gV91xuiXhCFrEk6bHAFLIF0wvgiq jHhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=lWksjhKH; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-72238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72238-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id br40-20020a05620a462800b0078779d43ccfsi110229qkb.71.2024.02.19.19.01.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 19:01:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=lWksjhKH; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-72238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72238-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 05DB71C24066 for ; Tue, 20 Feb 2024 03:01:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA98D2E413; Tue, 20 Feb 2024 03:00:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="lWksjhKH" Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92C494778B for ; Tue, 20 Feb 2024 03:00:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.112 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708398048; cv=none; b=oms9CbmM0b6+MIBbbLlYajxvCLuF67IxH1UaMf6ensPzyOjcd7M2Ag/qg+9SzjbgUOvlcPHjV48L4BnjLsJseX3Vj7PxQE9hCjRevvOyYy0UvLypT9ZImZvJAuC2clPLHLpGPsW0tOOKqlzNpHKJAUrFv5EDtGaMTyQxebT979Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708398048; c=relaxed/simple; bh=GhOPCcSxUoJi2epHGFQSFy2Yuds+eqX1E67Q6+MimUc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BO8/NLKE8hJL+Oiy8ZRe4pN3E1Hf9usBD0n01NRQ+pkkBbUYZqfdOd57CoE/AAWSJJ8JEUjxwFaWFKgs3DAIIT/HZCwKSfs00liOnb/6xusux5x0SVlp5he6Xqj76+pFXcu5b3UOjlSd3sSCQ2/LkB/fQOdB2UwMTBxD5niQe0s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=lWksjhKH; arc=none smtp.client-ip=115.124.30.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1708398043; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=sDGPECVwML/ab/agq9Xvg0iE7vYihMMAiv8/y6zVFrM=; b=lWksjhKH2QtA01OstROB4iFkSHYGy6mucOD6upLTrbDGgOO/+hmKHLAw7ghOaumYlaGGARGDMrhqQXqPk2vls4RkpiqOtKesHjCABawo53rU4iUCUY+qRxXnEmUY7B22pEPz8b7v+hSS46Fqi7nULoPptTtwoNNawQzyrM3JILs= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0W0v2vEy_1708398040; Received: from 30.97.56.48(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0W0v2vEy_1708398040) by smtp.aliyun-inc.com; Tue, 20 Feb 2024 11:00:41 +0800 Message-ID: <4f0b3586-25e2-4d21-bbb6-41f644d3d77f@linux.alibaba.com> Date: Tue, 20 Feb 2024 11:00:39 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 0/4] Enable >0 order folio memory compaction To: Zi Yan , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Huang, Ying" , Ryan Roberts , "Matthew Wilcox (Oracle)" , David Hildenbrand , "Yin, Fengwei" , Yu Zhao , Vlastimil Babka , "Kirill A . Shutemov" , Johannes Weiner , Kemeng Shi , Mel Gorman , Rohan Puri , Mcgrof Chamberlain , Adam Manzanares , "Vishal Moola (Oracle)" References: <20240216170432.1268753-1-zi.yan@sent.com> <20240219180617.89a0daaba45ce124ef01be50@linux-foundation.org> <9E3E6CD6-45DD-4E7F-B6DC-0897F38D5E81@nvidia.com> From: Baolin Wang In-Reply-To: <9E3E6CD6-45DD-4E7F-B6DC-0897F38D5E81@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024/2/20 10:31, Zi Yan wrote: > On 19 Feb 2024, at 21:06, Andrew Morton wrote: > >> On Fri, 16 Feb 2024 12:04:28 -0500 Zi Yan wrote: >> >>> Baolin's patch >> >> Baolin writes many patches and patches have names, please use them! > Sorry for not being specific. I mean this fixup: > https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?h=mm-everything-2024-02-16-01-35&id=97f749c7c82f677f89bbf4f10de7816ce9b071fe > > to this patch: > https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?h=mm-everything-2024-02-16-01-35&id=ea87b0558293a5ad597bea606fe261f7b2650cda > > > The patch was based on top of my early version of this patchset, thus > uses "cc->nr_migratepages -= 1 << order;" and > "cc->nr_migratepages += 1 << order;", but now it is applied before > mine. The change should be "cc->nr_migratepages--;" and > "cc->nr_migratepages++;", respectively. > >> >>> on nr_migratepages was based on this one, a better fixup >>> for it might be below. Since before my patchset, compaction only deals with >>> order-0 pages. >> >> I don't understand what this means. The patchset you sent applies OK >> to mm-unstable so what else is there to do? > > Your above fixup to Baolin's patch needs to be changed to the patch below > and my "mm/compaction: add support for >0 order folio memory compaction" will > need to be adjusted accordingly to be applied on top. > > Let me know if anything is unclear. Hi Andrew, To avoid conflicts, you can drop these two patches, and I will send a new version with fixing the issue pointed by Vlastimilb on top of "mm/compaction: add support for >0 order folio memory compaction". https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?h=mm-everything-2024-02-16-01-35&id=97f749c7c82f677f89bbf4f10de7816ce9b071fe https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?h=mm-everything-2024-02-16-01-35&id=ea87b0558293a5ad597bea606fe261f7b2650cda