Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp988818rwr; Wed, 26 Apr 2023 08:46:26 -0700 (PDT) X-Google-Smtp-Source: AKy350ZHcvbgSINO/OE2baklO2NtCiJ1tH7CW+ELsYPo/WCrSn1zu+laYZIxlNEFlMivIksC8SvM X-Received: by 2002:a05:6a20:4401:b0:f3:37:7d6 with SMTP id ce1-20020a056a20440100b000f3003707d6mr19924905pzb.9.1682523986246; Wed, 26 Apr 2023 08:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682523986; cv=none; d=google.com; s=arc-20160816; b=MRildMYKs+Fo5Lkv85xWK2PT/AEfo7ErNKI6WDf0/bYrU7UuVyv7HbPrqQw+VzmkrS 7O4c3Ocrw/33sc/dhLrJsj7Ev2t42b3GTLKlJrpwAULjhPXySMupVqySaW37dwWy0aVZ YYIyJ8OIcZj0FmzxdNCniEIZOqjegQUKUUY78paBQO36koOweEC9d1+VvB6d3P6l4c+Q dwnYNwP1rIwUXDCMOW2SBJMSB9giiblqZ/U4vSDPu18w1zoMqbK2oeyVvEeMADiB+f/p lGBSrbVLsp/ZcisHVCo794m7yMTU4v1CT5svwY964igvS2+Z/1pDTdb5pJrrJ/61+ccE jRLg== 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; bh=XVbcSqy/r9IwLqTVXHs1F1lzLR0xYyfHQsiQ1iD/Xlk=; b=VJuPCv25O4BO2pnxCldEwedlXcnRi/snBE8O9cqS9BqX+PLF7oNhVGtyEi3mnnivSD T7t6U1pSzaT7MNuNvDcAfyA5cpXaFZF0YlLc8ZjRjfmXaNZIsIbC2/M/jwLJI2V10iyy O/G7RQfwj4yz9nSpffSZW7LOrDxJyXwPd4WFlwCUU1pzWVOiOS29Ss+O+46oFmGp3+IQ i+VII3H18LMIfQdxgS0xLMWiJZ1CwmKsw7Jx4Uq8PaCSsoFwEvuZpIFBlHD+4RVOAtej R8AsyttNgdoCqNPrzdsocK2XC05HDi9RihE4MmRtQGquSNMBt8loOJ8Z+yGeCAFUhHly jSjQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020a632a05000000b0050af2178284si17283843pgq.819.2023.04.26.08.46.13; Wed, 26 Apr 2023 08:46:26 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240560AbjDZPdp (ORCPT + 99 others); Wed, 26 Apr 2023 11:33:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241212AbjDZPdo (ORCPT ); Wed, 26 Apr 2023 11:33:44 -0400 Received: from outbound-smtp05.blacknight.com (outbound-smtp05.blacknight.com [81.17.249.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F28CC6EBB for ; Wed, 26 Apr 2023 08:33:34 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp05.blacknight.com (Postfix) with ESMTPS id 739FBCCC7C for ; Wed, 26 Apr 2023 16:33:33 +0100 (IST) Received: (qmail 17964 invoked from network); 26 Apr 2023 15:33:33 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.21.103]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 26 Apr 2023 15:33:33 -0000 Date: Wed, 26 Apr 2023 16:33:31 +0100 From: Mel Gorman To: Vlastimil Babka Cc: Baolin Wang , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "Revert "mm/compaction: fix set skip in fast_find_migrateblock"" Message-ID: <20230426153331.dfqagb47i4xo3ouv@techsingularity.net> References: <3576e3520c044beb2a81860aecb2d4f597089300.1682521303.git.baolin.wang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 26, 2023 at 05:10:14PM +0200, Vlastimil Babka wrote: > On 4/26/23 17:03, Baolin Wang wrote: > > This reverts commit 95e7a450b8190673675836bfef236262ceff084a. > > > > When I tested thpscale with v6.3 kernel, I found the compaction efficiency > > had a great regression compared to v6.2-rc1 kernel. See below numbers: > > v6.2-rc v6.3 > > Percentage huge-3 81.35 ( 0.00%) 32.97 ( -59.47%) > > Percentage huge-5 89.92 ( 0.00%) 41.70 ( -53.63%) > > Percentage huge-7 92.41 ( 0.00%) 34.08 ( -63.12%) > > Percentage huge-12 90.29 ( 0.00%) 41.10 ( -54.49%) > > Percentage huge-18 82.38 ( 0.00%) 41.24 ( -49.95%) > > Percentage huge-24 80.34 ( 0.00%) 35.99 ( -55.20%) > > Percentage huge-30 88.90 ( 0.00%) 44.20 ( -50.28%) > > Percentage huge-32 90.69 ( 0.00%) 79.57 ( -12.25%) > > > > Ops Compaction stalls 113790.00 207099.00 > > Ops Compaction success 33983.00 19488.00 > > Ops Compaction failures 79807.00 187611.00 > > Ops Compaction efficiency 29.86 9.41 > > > > After some investigation, I found the commit 95e7a450b819 > > ("Revert mm/compaction: fix set skip in fast_find_migrateblock") caused > > the regression. This commit revert the commit 7efc3b726103 ("mm/compaction: > > fix set skip in fast_find_migrateblock") to fix a CPU stalling issue, which > > is caused by compaction stucked in repeating fast_find_migrateblock(). > > > > And now the compaction stalling issue is addressed by commit cfccd2e63e7e > > ("mm, compaction: finish pageblocks on complete migration failure"). So > > IIRC at that time I was pointing out some scenarios that could make the > problem appear even after that commit, and we wanted to revisit that > when Mel is back. > Yes, I've prototyped the fix against 6.3-rc7 and the revert is at the end but the revert on its own has the potential for causing problems. The series needs to be rebased, retested and posted. What I last tested should show up shortly at https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git/ mm-follupfastmigrate-v1r1 -- Mel Gorman SUSE Labs