Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5178021rwb; Wed, 21 Sep 2022 04:25:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4qHOK4uKXEIAsDjT9LALhPZGEw0uX0l8gCmesEgF0Saf0eoxMpCTtBYmy69V7V49jFLIuc X-Received: by 2002:a05:6402:1446:b0:44e:ec98:3e11 with SMTP id d6-20020a056402144600b0044eec983e11mr24770937edx.90.1663759510631; Wed, 21 Sep 2022 04:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663759510; cv=none; d=google.com; s=arc-20160816; b=xyadTdqU1nL4t9WHZNYdA0uqqMc4+Ed1Ld0rccEW0lUZiu66Htw9hQk+Sh1cq071rd TL77GhIirrv1FBhSGkeQVI//koEDQKrVrbtK1JOhcThEgYYMkkZCWkSPEKRjnYxJmt9J bN50qKRIYWCetRpg3fHw9csCpolvZafl438mijbOVCC3eOlX09q+0yXibLWuzFNGV9ZD +nG8A3JxNP/gHCnQeE8NZaGhfFddN2GGbdFyw3L9C6OkCaA3vMVLy3NCK092tGhjrCsU GrsxbXHxA7ar36zY1Xd4/0/zepiAZE3ylrM9NJcTdYs+htIBbDSRvzUMTOye0p58Mojb aa3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=NSiSh1obMHYvuA+1uiyqrcGYHFrEodT/dyXvAzDIB+Y=; b=vXnsYcfzbaE8pVSmD3VyGva/EuThKVSmsYHKncHG05OsMvAkz6Eul1hLHrclLzFA3t NS8/e898fY18MoXM76Lj1zgWfsmy4SfsekB702Uwa/LhnAzsg1HbW+bbYJB2qDro2mZ1 SjISz+szIPCr8XEsTySrSu/dDpfjan7OI/kFGlj8fnzDthrrs4QTJfPdyCLGzWTpV1og d1lr12axjBFM6qaXP+A9BdliQc2AP1/ZtnwvWLNNKHNs4GS7JJ45DskF47QItfG6Pdrn 3tjLbIuph2HX6pmOHP+DXbrBQN9Qcnl2r9xP38dwlKIBOKlJ5XfB0ey+f1LZqr7Q6L6K i1rA== 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 ju20-20020a17090798b400b0078005ff79e2si1544818ejc.880.2022.09.21.04.24.42; Wed, 21 Sep 2022 04:25:10 -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 S230125AbiIUKOu (ORCPT + 99 others); Wed, 21 Sep 2022 06:14:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231279AbiIUKOo (ORCPT ); Wed, 21 Sep 2022 06:14:44 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D796515A34 for ; Wed, 21 Sep 2022 03:14:42 -0700 (PDT) Received: from [10.180.13.185] (unknown [10.180.13.185]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Bx32sG5Cpj+WYfAA--.45921S3; Wed, 21 Sep 2022 18:14:32 +0800 (CST) Subject: Re: [PATCH] mm/vmscan: don't scan adjust too much if current is not kswapd To: Mel Gorman Cc: Mel Gorman , Matthew Wilcox , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220914023318.549118-1-zhanghongchen@loongson.cn> <20220914155142.bf388515a39fb45bae987231@linux-foundation.org> <6bcb4883-03d0-88eb-4c42-84fff0a9a141@loongson.cn> <54813a74-cc0e-e470-c632-78437a0d0ad4@loongson.cn> <4bd0012e-77ff-9d0d-e295-800471994aeb@loongson.cn> <20220921091303.hihmb3qvfvl3s365@techsingularity.net> From: Hongchen Zhang Message-ID: Date: Wed, 21 Sep 2022 18:14:30 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20220921091303.hihmb3qvfvl3s365@techsingularity.net> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf8Bx32sG5Cpj+WYfAA--.45921S3 X-Coremail-Antispam: 1UD129KBjvdXoWruF18AryDAFW5ur15Zw47Arb_yoWfCFg_ZF W8Ar4vkw4qqF4qqay3tr42krs7WryvkFy8X3yrXwnF9a4UKa4DXFykt3s3X3Z5tan7t3sx CFyYv345Ar9a9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbx8YjsxI4VWkCwAYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8Jw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lc7I2V7IY0VAS07AlzVAYIcxG8wCY 02Avz4vE-syl42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4 xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1D MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I 0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWU JVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07j04E _UUUUU= X-CM-SenderInfo: x2kd0w5krqwupkhqwqxorr0wxvrqhubq/ X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS 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, Thanks for your reply. On 2022/9/21 pm 5:13, Mel Gorman wrote: > On Tue, Sep 20, 2022 at 10:23:05AM +0800, Hongchen Zhang wrote: >> Hi Mel, >> >> The scan adjust algorithm was originally introduced by you from >> commmit e82e0561dae9 ("mm: vmscan: obey proportional scanning requirements >> for kswapd"), any suggestion about this fix patch? >> In short, proportional scanning is not friendly to processes other than >> kswapd. >> > > I suspect that 6eb90d649537 ("mm: vmscan: fix extreme overreclaim and swap > floods") is a more appropriate fix. While it also has a fairness impact, > it's a more general approach that is likely more robust and while > fairness is important, completely thrashing a full LRU is neither fair > nor expected. > OK,got it. Let's wait for the 6eb90d649537 ("mm: vmscan: fix extreme overreclaim and swap floods") enter the stable repository. Best Regards Hongchen Zhang