Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2260437rdb; Mon, 5 Feb 2024 00:17:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IFO6kwtLab7picsgsFPfM1hZQ6IJW1Ymp7RqU5cO3+yPH5EI/rz1B417+F/kc84CoaP/Dgd X-Received: by 2002:a05:6402:1ada:b0:560:8240:99ac with SMTP id ba26-20020a0564021ada00b00560824099acmr574743edb.39.1707121021995; Mon, 05 Feb 2024 00:17:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707121021; cv=pass; d=google.com; s=arc-20160816; b=X6UQmbdfolr9cp//vC/w1z2xxjROwticpX/XeNKWDiDvgpVmTmTFv3WeSDFpgh4Gv5 5jwUiilcrxJE6iWWZmi3ZWAXfwx7Rxjhq20Ug5YKdQT1gerjvymGPl5iebA5oILZddAM 9Fdt6+0PO5cXJd/r/J/lkBBkwz2iw9YdyMtSGVEGvRg3ivmmIRcJkqobRJeeata8z4q4 8cYfAk8B9g29FJLqWJhc36owDTQdKtNSocODEMPlHLwfa/jritrLKkX4PCDJh8yLx8i8 lxD4D2foaTNPmTc2LE/UQpoiKmKGfYfHkt8aRrzXjq0v2pjYNfT6syA1QL2BQnkYguHW mtsg== 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=+N4WMM1/lsjVxwoQqsoRoiQOAtzQ+zefrthX2QtoRGc=; fh=dULb4vLYXUdMpOLOwX/Uwevn8JSlHiwSOx2NGNs+L9w=; b=G4vF9Zq1LQhAkP+p699SBch2uZAil3LvTqufgnEzJPPwYrWS5vjY1351aRT6QAV+Yx Sb9kCdnvNqqLwY/UMMxfarficjM6FVaqHwyZ5/KKcSnqLAQ09XPDhyHpa0KFv9vulh0/ crU72nOT9/6ICMRZBE3Wu8AJFjJr9PiQt8WbdlrYl3cNwUiez3GmBUhUpk9rOzi3FxS4 D9JHMQNB+JKytIKeqIBuxhPNvi/JFO1Fv67GHTOhnYEBpbgYPUW2abqdWV4JyGrE0cXg ZfPLRz3kq4gl1CXnk3zwrKzolTygdzvjAkRgPr+noZcpbXTO+3zEVmBNtUde6CkmsSUZ Q8hA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=Xul78CXW; 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-52193-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52193-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com X-Forwarded-Encrypted: i=1; AJvYcCVeKYq7vGhAwx7LTEQWSL8PwkixIo1NWs8PtNXDaQbSAC9uAGysmmLjQqmtpgymrvLAefhOrVeGhGZ6b0ECj0oCoCNbS9NJMjtNklxTHA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e6-20020a056402190600b005607ac79cf3si483393edz.420.2024.02.05.00.17.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 00:17:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52193-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=Xul78CXW; 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-52193-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52193-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 952021F24E49 for ; Mon, 5 Feb 2024 08:16:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B136211193; Mon, 5 Feb 2024 08:16:45 +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="Xul78CXW" Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) (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 8781511197 for ; Mon, 5 Feb 2024 08:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707121004; cv=none; b=UHY+SSFdrYQ2qR1vTDhWYKcwhXUgm2fkAEQCXOuIHw6sNffbdp/RYN5vIvwwWNu2JbQcFeRBLfF4j3KWEkx9cjTI08S80SD6/cENN9iCTZfdC35TtdMHc8H8bZYoZQDfWXk59pp8xBeuO2VOboK4OcY2nmdTzkEdjUgUOguzMk0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707121004; c=relaxed/simple; bh=oIOpfu/j6HWmd1PYRGjBVdrnuollrvZEd8jWM9IYbv0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZQaM1H44U0nBeVcB8xQsMED3PFs3I7K3eI3d/cxBGUhYQbmDS+U7WUUwSsvJlX0+1SP8fPJEpA/MHMXa7iKkw7tg+OKwU/VjjtFZPlNFnI9eAyQsqCUu20c0Yg3v72OVIoiE0VsxSSEtWM4DgHiILLv914ZbDOz/4C08Xvq2myw= 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=Xul78CXW; arc=none smtp.client-ip=115.124.30.131 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=1707120993; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=+N4WMM1/lsjVxwoQqsoRoiQOAtzQ+zefrthX2QtoRGc=; b=Xul78CXWpmZGU2XhK2nynmg6+7YX2Gu5qhwYlSHB+Q83qP3E3sv87p3P53PVy9zxGv5kTB1A5GZr15bdCgkd1JistK4vFJJtvWmPonwGByHsV8t/+urGLM7XtZNPAxHpj8TR+xkLALeBnY+WUCa+nvJuTjevSW5euvjHriohV+w= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0W06o2VN_1707120991; Received: from 30.97.56.40(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0W06o2VN_1707120991) by smtp.aliyun-inc.com; Mon, 05 Feb 2024 16:16:32 +0800 Message-ID: <36d709fb-967c-42fa-a47a-465e29e13ef6@linux.alibaba.com> Date: Mon, 5 Feb 2024 16:16:47 +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 v3 0/3] Enable >0 order folio memory compaction To: Zi Yan , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: "Huang, Ying" , Ryan Roberts , Andrew Morton , "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: <20240202161554.565023-1-zi.yan@sent.com> From: Baolin Wang In-Reply-To: <20240202161554.565023-1-zi.yan@sent.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/3/2024 12:15 AM, Zi Yan wrote: > From: Zi Yan > > Hi all, > > This patchset enables >0 order folio memory compaction, which is one of > the prerequisitions for large folio support[1]. It includes the fix[4] for > V2 and is on top of mm-everything-2024-01-29-07-19. > > I am aware of that split free pages is necessary for folio > migration in compaction, since if >0 order free pages are never split > and no order-0 free page is scanned, compaction will end prematurely due > to migration returns -ENOMEM. Free page split becomes a must instead of > an optimization. > > lkp ncompare results for default LRU (-no-mglru) and CONFIG_LRU_GEN are > shown at the bottom (on a 8-CPU (Intel Xeon E5-2650 v4 @ 2.20GHz) 16G VM). > In sum, most of vm-scalability applications do not see performance change, > and the others see ~4% to ~26% performance boost under default LRU and > ~2% to ~6% performance boost under CONFIG_LRU_GEN. For the whole series, looks good to me. And I did not find any regression after running thpcompact. So feel free to add: Reviewed-by: Baolin Wang Tested-by: Baolin Wang