Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4369903rwd; Tue, 23 May 2023 06:58:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5tWg7odEzYCAHhDiU1hVrTy/P8D3ETGaBbCe6HmSeES3ZXmFAiGKe41v5VepIoooFD8xeI X-Received: by 2002:a05:6a20:12c7:b0:10c:1501:3c22 with SMTP id v7-20020a056a2012c700b0010c15013c22mr5624787pzg.29.1684850334208; Tue, 23 May 2023 06:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684850334; cv=none; d=google.com; s=arc-20160816; b=WQQ1+bOcgFC9k+O4koyxTKATyWKG5XOltwKRQAPUw21aLwoMDIhme5ruyK536fx/xa KBiTg+u/xRcPDch5tN2qucgmJP7kmiYGeH+ud02ta8aIPRtABDckVOAaDpSW3UT+1eHv Fi1pt7QSBkXkYPvHrbNsm76gnq0y4wm7vurfjyYYLiI6D8A+6yJmVltxXAwEc9MYGAeE uGJ/NCNq0SbTu6+gRpgmmNabU7LqdbMK5mxM4xvQEPdcL2J4X1LqoVAN0s+ZKu3DSo8f 6iKdlYwxoXOSxBefzKeYMLtixqAG/EdMA7ovjnTJ/wE7hbM78uZKsthHpqHn2uavGhWv j9Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=qPIC87J5g6JTgg3jDwQGsxHZEhqjigQMZ97ARBJTSvI=; b=z5u3WkOtC1FNP5NnFr+4d+2HnR+DslC11WS/LOPr5DkovlTq0rFvhUkEUyrYh5XY9Y w8zweA9sE3AnB3wDjCoo7W4g4+xYfqS+PlhCnrYknhkGCR6813gz3e4rphPqPz4Ki4UF LWBLxtKQhHAarrWP8S3QZdjDiyBq+c06zwYdNom1wuuGFAfLVrTxSg9ltd/5XD01JOTP lfcnXdAbGBTLHhaERoEHxwUWvO9AjK7GNVvv9TAHBrRWKRnDY1L7Gs72NR0ek5EqnyaP /DKQ6KjjjLftss7L44AQmplbsVl9lYq3t1nRsSrgv460b47Tpzl/8EMmHzVN21Tie1No Sauw== 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z189-20020a6333c6000000b005348c9eeec8si1362361pgz.570.2023.05.23.06.58.40; Tue, 23 May 2023 06:58:54 -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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235495AbjEWNrs (ORCPT + 99 others); Tue, 23 May 2023 09:47:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231325AbjEWNrq (ORCPT ); Tue, 23 May 2023 09:47:46 -0400 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0483132 for ; Tue, 23 May 2023 06:47:39 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R741e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0VjKTIpJ_1684849653; Received: from 30.0.185.76(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0VjKTIpJ_1684849653) by smtp.aliyun-inc.com; Tue, 23 May 2023 21:47:35 +0800 Message-ID: <0318d80c-4a4b-41af-1005-75947ba510d2@linux.alibaba.com> Date: Tue, 23 May 2023 21:47:47 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 0/4] Follow-up "Fix excessive CPU usage during compaction" To: Mel Gorman , Vlastimil Babka Cc: Andrew Morton , Jiri Slaby , Maxim Levitsky , Michal Hocko , Pedro Falcato , Paolo Bonzini , Chuyi Zhou , Linux-MM , LKML References: <20230515113344.6869-1-mgorman@techsingularity.net> From: Baolin Wang In-Reply-To: <20230515113344.6869-1-mgorman@techsingularity.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_IN_DEF_SPF_WL 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 Hi Mel, On 5/15/2023 7:33 PM, Mel Gorman wrote: > The series "Fix excessive CPU usage during compaction" [1] attempted to > fix a bug [2] but Vlastimil noted that the fix was incomplete [3]. While > the series was merged, fast_find_migrateblock was still disabled. This > series should fix the corner cases and allow 95e7a450b819 ("Revert > "mm/compaction: fix set skip in fast_find_migrateblock"") to be safely > reverted. Details on how many pageblocks are rescanned are in the > changelog of the last patch. > > [1] https://lore.kernel.org/r/20230125134434.18017-1-mgorman@techsingularity.net > [2] https://bugzilla.suse.com/show_bug.cgi?id=1206848 > [3] https://lore.kernel.org/r/a55cf026-a2f9-ef01-9a4c-398693e048ea@suse.cz I've run this series on my machine, which can solve the regression I met before [1], and no other issues found. So please feel free to add: Tested-by: Baolin Wang [1] https://lore.kernel.org/all/3576e3520c044beb2a81860aecb2d4f597089300.1682521303.git.baolin.wang@linux.alibaba.com/ > > mm/compaction.c | 24 ++++++++++-------------- > 1 file changed, 10 insertions(+), 14 deletions(-) >