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 6EDB7C433FE for ; Mon, 6 Dec 2021 06:06:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237657AbhLFGKK (ORCPT ); Mon, 6 Dec 2021 01:10:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232741AbhLFGKJ (ORCPT ); Mon, 6 Dec 2021 01:10:09 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6B56C0613F8 for ; Sun, 5 Dec 2021 22:06:40 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id z21so577242lfu.8 for ; Sun, 05 Dec 2021 22:06:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vv0znKZkXJZMzsECckGi47A2Z/lLUzawdx8IEXbnGWk=; b=YsEjqepZeQvUbFx/aqXDHvbDkAi16fxHMOFnyDNfNhyWoBQvVeaAjLcoFIxE4ZFE6r e0yQfiOvKFKism80QUNMHwZJ/aTzVLwEFwZDAcQPSazF2BXWGCty9K4kE/czm/gV7K2b EDOROzNqqQ8qBhibAUtJLEvyY41oVBjI+P1L2+9UXkZ2DCdoXFZKq1ZOfD4Kf8h/dVZM qrCUT+zK0Tv6UuPUZOdNPB6trOKeGiPcBuTHEiSqIX6vKVgROLoDvg0UYEzkiE60Gb8g sHVTe99J9n1ZhiZsQ2Zy53UpR3egvHVWiTHfjNrcDWwqID3ak8hZG3fO/BVdjAuQWo/5 8x6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vv0znKZkXJZMzsECckGi47A2Z/lLUzawdx8IEXbnGWk=; b=dLZWXFQzWbESd+qAVBOuHNFl+IVr8Bg4PeEMu5uk/qMafF+/eb9ReJuTmat29OwIs9 t8B+A2fzEuY0GuZwT6qk1F+sfF4fPAF9XmURXcq84SMYkkap2EUb+95SA/BdnKgHGJyU EVcHF35lM+PyUmatZ32hRqHxuHBf6f3XytDuKxh/sO1BwAklE3NJeUAO386Njrj7zLkW 4cnf1ypGnLHW/MWl0HqL4OqNoPQHuIymExQjH/rRyjIHCxBp033GKt/jeOld4CBJit/G 2AcNUm3rohrjST8xMyDRGzmCFWNHkGvmwYx/NfP7KksH3JGGt76PedVYqKR2GrevObpX I47A== X-Gm-Message-State: AOAM531bb8JuC3xkrn4Hc2Ui1lyp/s1VwAR5AMVyoZfiRxt2IScdtkXZ 7GbbNabvqqYzqP92HM3G/58BWv0YgXT5MctAjsJRlA== X-Google-Smtp-Source: ABdhPJzDUE/FOglwH1X1yflrVsaHq5ki2OSiI7rH+J6rd9KuybYkMfGkVUfJ+ZsNJDQKf6M+bs18NYyHI8A9InkI0es= X-Received: by 2002:a05:6512:1113:: with SMTP id l19mr33552043lfg.184.1638770798873; Sun, 05 Dec 2021 22:06:38 -0800 (PST) MIME-Version: 1.0 References: <20211202150614.22440-1-mgorman@techsingularity.net> <20211202165220.GZ3366@techsingularity.net> <20211203090137.GA3366@techsingularity.net> <20211203190807.GE3366@techsingularity.net> In-Reply-To: <20211203190807.GE3366@techsingularity.net> From: Shakeel Butt Date: Sun, 5 Dec 2021 22:06:27 -0800 Message-ID: Subject: Re: [PATCH v4 1/1] mm: vmscan: Reduce throttling due to a failure to make progress To: Mel Gorman Cc: Andrew Morton , Michal Hocko , Vlastimil Babka , Alexey Avramov , Rik van Riel , Mike Galbraith , Darrick Wong , regressions@lists.linux.dev, Linux-fsdevel , Linux-MM , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 3, 2021 at 11:08 AM Mel Gorman wrote: > [...] > > I am in agreement with the motivation of the whole series. I am just > > making sure that the motivation of VMSCAN_THROTTLE_NOPROGRESS based > > throttle is more than just the congestion_wait of > > mem_cgroup_force_empty_write. > > > > The commit that primarily targets congestion_wait is 8cd7c588decf > ("mm/vmscan: throttle reclaim until some writeback completes if > congested"). The series recognises that there are other reasons why > reclaim can fail to make progress that is not directly writeback related. > I agree with throttling for VMSCAN_THROTTLE_[WRITEBACK|ISOLATED] reasons. Please explain why we should throttle for VMSCAN_THROTTLE_NOPROGRESS? Also 69392a403f49 claims "Direct reclaim primarily is throttled in the page allocator if it is failing to make progress.", can you please explain how?