Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5067369rwb; Wed, 21 Sep 2022 02:43:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6HWTuYVnmDlNCzOcpsvip9/Msd5NS2PDf0mCGEWzWX7Ala9F5s5sXcFSuMZwy3MRUAW6jD X-Received: by 2002:a17:90a:d583:b0:202:a064:3a32 with SMTP id v3-20020a17090ad58300b00202a0643a32mr8649479pju.75.1663753406314; Wed, 21 Sep 2022 02:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663753406; cv=none; d=google.com; s=arc-20160816; b=aTKdExoRQEV/UnMoyxO8mPpgtJ6hhIOkWxw/6/SnEMsgkmOrKm6/KC3EIhnGSDdOsF ktdtx2LYpX1KTh+CW+MhF7wxWjJrKb7rQ6B0YFE30NfcNK6V70vz3kWhAtvBVUENVzHV OCz/EVyqPI6ekLvxb0eIxWf5imF1NkQ5ETPO3be9/enD601/ZKhDeUHUNtHbCNleeDuP Vk9XEVss7qTmwD2kqMXwLoG5W+p/dVRlScDBSqwpxKMWRAa4qW+3Uz1UJi2ML26p0iVE z0j2uWdqhdczeMre962D7XrB28ZKV9pfsziWxLa2YSAmkmr+xj0UfVZI8zg6xCHzbHCV CjUg== 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=vp4xFvk0xAYbu+cJxmPTUbzhsOoxu1Gs8L4AXSBGcRc=; b=LyDCJncuaoreixDbhzxoejl51I8qrWc8gtHMGIYabP0Mh22Yq2XnpcTvZXzvIN84SH 7PbJvicYP43GaelD8cpc0TQ1uwGQY332g3EhXOMxaXK80rxRDzejbNbPBQwObuRigGKK SGHrxgT4Ny0Yv1OlccjyYiKc8hk8qbFkUt07KCajX/MvSMmtVZH8Bw/jLxjr2R4FVhrI sIaCAjGkJ9VLCT2n5sT64r3Y8ObDR68tGZ/j454VLp0f94KgpHuaf3I18I4Rty5ac7V7 idBYpESW85dSY8Tik5qrPGIlm0/1z8If3J1HM3uAmDpjS8vZsoKVy3P1/CP4VamZMggr /DkA== 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 q18-20020a632a12000000b0041d7e887487si1974930pgq.695.2022.09.21.02.43.14; Wed, 21 Sep 2022 02:43: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 S231194AbiIUJOE (ORCPT + 99 others); Wed, 21 Sep 2022 05:14:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231546AbiIUJNj (ORCPT ); Wed, 21 Sep 2022 05:13:39 -0400 Received: from outbound-smtp60.blacknight.com (outbound-smtp60.blacknight.com [46.22.136.244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 489818E9A7 for ; Wed, 21 Sep 2022 02:13:13 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp60.blacknight.com (Postfix) with ESMTPS id 2BB8AFABF8 for ; Wed, 21 Sep 2022 10:13:11 +0100 (IST) Received: (qmail 17661 invoked from network); 21 Sep 2022 09:13:11 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.198.246]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 21 Sep 2022 09:13:10 -0000 Date: Wed, 21 Sep 2022 10:13:03 +0100 From: Mel Gorman To: Hongchen Zhang Cc: Mel Gorman , Matthew Wilcox , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/vmscan: don't scan adjust too much if current is not kswapd Message-ID: <20220921091303.hihmb3qvfvl3s365@techsingularity.net> 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> 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 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 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. -- Mel Gorman SUSE Labs