Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2618386pxb; Tue, 21 Sep 2021 04:05:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjxA+bRo7Ckzfq53cz9WaBZGFfFt0R7654/tjdYXxX5TObeO137aNn0SePJyr80jpdMdfu X-Received: by 2002:a1c:1b48:: with SMTP id b69mr3921464wmb.14.1632222337621; Tue, 21 Sep 2021 04:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632222337; cv=none; d=google.com; s=arc-20160816; b=hmMVzgvNvQPywEn1O3eg2hng3iWiMWcRcBamn/wobJnge7ho02cLPUzZdZgoLzwzy4 C6p/I5pjsuJGBZsUU0P4Zt34tJFaZD9r5do+2mQjjS/Uga6X8uKF+gvnbe/oMouJ4Fn+ PpfrbVOiyiuO38qXcw6pQD6h/VNxHpM3WGJeBg0G0SP5rGFU5mzj8/d8kqCovw1dr6Na JfoDqvLgGAgTJaALcpZw5ZmUzfL0We2+RPVUGw5prVROV+xYDVej4TbwkJoYRTkoEeNg Ardi2RyRWEF3kb26IbtHIJ1Ct5OBz3BVoI/DRIHVM83DjOmj3PTAt2Q0lyNXzA6skmTK iJvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=03us1dbacTxYlK/hOhcZyBo6T1ekI/RRW3LTMmu8/F0=; b=zMseNa3ZtfzRBYrZx1xV7Qi2dMbwwX57cuid7UHAwpkZYFDYQBg1y8vP1FFWqH3JfN iXudW9kxf8tbz/1tbJPs9xZ6IPKX33lQ+9nqsm11CWFMLlXBtB0BOBsdQ3ZapZk7hhOq i8qIbu7vpewY4jsIcrZPUj9+sPG0KsJ4MTe8bPQhAJCFs6sPFYU5xocjGNOZM5DwkBvu 2qieOJLhOP5/zdv7EMOFSaxW9l9r7513b+lwz8K0deTqnGJzo6RGIabxSYITRfB3l5aQ TLODaWjMsj5P1kspIyKbMn2uhACLpDcaxmdFJ/vUiqOFkEm4KPkRGkJsH/ZrCP75LFra 2vCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si26480237ejm.735.2021.09.21.04.05.12; Tue, 21 Sep 2021 04:05:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232187AbhIULFK (ORCPT + 99 others); Tue, 21 Sep 2021 07:05:10 -0400 Received: from outbound-smtp11.blacknight.com ([46.22.139.106]:37391 "EHLO outbound-smtp11.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232043AbhIULEy (ORCPT ); Tue, 21 Sep 2021 07:04:54 -0400 Received: from mail.blacknight.com (pemlinmail04.blacknight.ie [81.17.254.17]) by outbound-smtp11.blacknight.com (Postfix) with ESMTPS id CD83C1C4C3E for ; Tue, 21 Sep 2021 12:03:24 +0100 (IST) Received: (qmail 2386 invoked from network); 21 Sep 2021 11:03:24 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.17.29]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 21 Sep 2021 11:03:24 -0000 Date: Tue, 21 Sep 2021 12:03:23 +0100 From: Mel Gorman To: NeilBrown Cc: Linux-MM , Theodore Ts'o , Andreas Dilger , "Darrick J . Wong" , Matthew Wilcox , Michal Hocko , Dave Chinner , Rik van Riel , Vlastimil Babka , Johannes Weiner , Jonathan Corbet , Linux-fsdevel , LKML Subject: Re: [PATCH 2/5] mm/vmscan: Throttle reclaim and compaction when too may pages are isolated Message-ID: <20210921110323.GP3959@techsingularity.net> References: <20210920085436.20939-1-mgorman@techsingularity.net> <20210920085436.20939-3-mgorman@techsingularity.net> <163218047640.3992.16597395100064789255@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <163218047640.3992.16597395100064789255@noble.neil.brown.name> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 21, 2021 at 09:27:56AM +1000, NeilBrown wrote: > On Mon, 20 Sep 2021, Mel Gorman wrote: > > @@ -2291,8 +2302,7 @@ shrink_inactive_list(unsigned long nr_to_scan, struct lruvec *lruvec, > > return 0; > > > > /* wait a bit for the reclaimer. */ > > - msleep(100); > > - stalled = true; > > + reclaim_throttle(pgdat, VMSCAN_THROTTLE_ISOLATED, HZ/10); > > Why drop the assignment to "stalled"? > Doing that changes the character of the loop - and makes the 'stalled' > variable always 'false'. > This was a thought that was never completed. The intent was that if there are too many pages isolated that it should not return prematurely and do busy work elsewhere. It potentially means an allocation request moves to lower zones or remote nodes prematurely but I never did the full removal. Even if I had, on reflection, that type of behavioural change does not belong in this series. I've restored the "stalled = true". -- Mel Gorman SUSE Labs