Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96AFFC27C76 for ; Thu, 26 Jan 2023 01:12:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235422AbjAZBME (ORCPT ); Wed, 25 Jan 2023 20:12:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbjAZBMC (ORCPT ); Wed, 25 Jan 2023 20:12:02 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 833A5305D4 for ; Wed, 25 Jan 2023 17:12:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1D99E616F6 for ; Thu, 26 Jan 2023 01:12:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 205D9C433D2; Thu, 26 Jan 2023 01:12:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1674695520; bh=1tJKpxAhIejZkUCqagAyMqyekFlm2a9vKsTefDdUQko=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SEHIvHlUl8jnqGBhCsBW+SE1kz/1D1fJ1LsUuAyFOiZ/9sVQGKEG/36iKHXexxgXL tloDqkTeZpLikItZFTRx30NAkkXWAzVGULr+kXkAWrMvIDvRCCatQ1QUvCZyBXGBUT XmcU7I5EDqxIBUD9CzgaS7RkC1qdqdYSUEusMuwk= Date: Wed, 25 Jan 2023 17:11:59 -0800 From: Andrew Morton To: Mel Gorman Cc: Vlastimil Babka , Jiri Slaby , Maxim Levitsky , Michal Hocko , Pedro Falcato , Paolo Bonzini , Chuyi Zhou , Linux-MM , LKML Subject: Re: [RFC PATCH 0/4] Fix excessive CPU usage during compaction Message-Id: <20230125171159.355a770a2e34f78d7664e1f0@linux-foundation.org> In-Reply-To: <20230125134434.18017-1-mgorman@techsingularity.net> References: <20230125134434.18017-1-mgorman@techsingularity.net> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Jan 2023 13:44:30 +0000 Mel Gorman wrote: > Commit 7efc3b726103 ("mm/compaction: fix set skip in fast_find_migrateblock") > fixed a problem where pageblocks found by fast_find_migrateblock() were > ignored. Unfortunately there were numerous bug reports complaining about high > CPU usage and massive stalls once 6.1 was released. Due to the severity, > the patch was reverted by Vlastimil as a short-term fix[1] to -stable and > is currently sitting in the Andrew's git branch mm/mm-hotfixes-unstable. > > The underlying problem for each of the bugs is suspected to be the > repeated scanning of the same pageblocks. This series should guarantee > forward progress even with commit 7efc3b726103. More information is in > the changelog for patch 4. > > If this series is accepted and merged after the revert of 7efc3b726103 > then a "revert of the revert" will be needed. If we drop Vlastimil's reversion and apply this, the whole series should be cc:stable and it isn't really designed for that. So I think either a) drop Vlastimil's reversion and persuade Mel to send us a minimal version of patch #4 for -stable consumption. Patches 1-3 of this series come later. b) go ahead with Vlastimil's revert for -stable, queue up this series for 6.3-rc1 and redo the original "fix set skip in fast_find_migrateblock" some time in the future. If we go with b) then the Fixes: tag in "[PATCH 4/4] mm, compaction: Finish pageblocks on complete migration failure" is inappropriate - fixing a reverted commit which Vlastimil's revert already fixed. I'll plan on b) for now.