From mboxrd@z Thu Jan 1 00:00:00 1970 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 9B6ECC433FE for ; Thu, 10 Nov 2022 21:08:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231893AbiKJVIL (ORCPT ); Thu, 10 Nov 2022 16:08:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232156AbiKJVHw (ORCPT ); Thu, 10 Nov 2022 16:07:52 -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 D99005985A for ; Thu, 10 Nov 2022 13:07:50 -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 789DF61E5A for ; Thu, 10 Nov 2022 21:07:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA8C1C433D6; Thu, 10 Nov 2022 21:07:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668114469; bh=3N4nFb8IOZ7MdllbuDFTvEp565pQV4206TPWRcmmQuo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KLgFCZbB1FzMOEC99Bhh0vnmm1JLBdghWNY7ikCvZr7YgsiKSoXasFSDbQzFPjn5s 0rX5UzP8SGyh2J1NHCFgU8QV7aZ2ub00AT3H6EGe88zL7Baeq9dSYlfjpI2We0JR5J xIPkxmONFxaTqU1achAe91oAIdlwesxQBXVc8UC+m4DGpgN7KZ69P08vHJrOX8G2H3 MVE1JXB6884uDPAD/4YvkosB4DF/D75oM84p014yDLpJfriRtQtSIE3fIa3oK0xlWt 5CCYoI2IWNiinmDItj5ZOaTHUcW6TA31+bZ4Pj5RnlkSI68R63mWVKW47WMpisR/P6 7hJiTA++ep/aQ== Date: Thu, 10 Nov 2022 13:07:48 -0800 From: Jaegeuk Kim To: Yangtao Li Cc: chao@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] f2fs: remove gc_urgent_high_remaining node Message-ID: References: <20221110081948.31673-1-frank.li@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221110081948.31673-1-frank.li@vivo.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/10, Yangtao Li wrote: > Hi Jaegeuk, > > > Hi, > > > I modified and integrated some patches as below. Could you please take a look? > > > https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/?h=dev&id=d34f1e7212c1965a409d4581a32a92a1c91495fc > > I've looked at the relevant changes on the branch, looks good to me. > > One small question, does the name need to be changed to gc_remaining_count? > There are already controls based on the number of gcs, maybe we can add a > gc_remaining_ms later? Control the gc mode based on the expected time. When > the count is reduced to 0 or the gc ends and the expected value is reached, > switch back to the normal mode. Please check the latest patch which replaced it with gc_remaining_trials. I think the time-based control can be managed by user side instead of kernel. > > Thx, > Yangtao