[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <163218047640.3992.16597395100064789255@noble.neil.brown.name>
Date: Tue, 21 Sep 2021 09:27:56 +1000
From: "NeilBrown" <neilb@...e.de>
To: "Mel Gorman" <mgorman@...hsingularity.net>
Cc: "Linux-MM" <linux-mm@...ck.org>, "Theodore Ts'o" <tytso@....edu>,
"Andreas Dilger" <adilger.kernel@...ger.ca>,
"Darrick J . Wong" <djwong@...nel.org>,
"Matthew Wilcox" <willy@...radead.org>,
"Michal Hocko" <mhocko@...e.com>,
"Dave Chinner" <david@...morbit.com>,
"Rik van Riel" <riel@...riel.com>,
"Vlastimil Babka" <vbabka@...e.cz>,
"Johannes Weiner" <hannes@...xchg.org>,
"Jonathan Corbet" <corbet@....net>,
"Linux-fsdevel" <linux-fsdevel@...r.kernel.org>,
"LKML" <linux-kernel@...r.kernel.org>,
"Mel Gorman" <mgorman@...hsingularity.net>
Subject: Re: [PATCH 2/5] mm/vmscan: Throttle reclaim and compaction when too
may pages are isolated
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'.
NeilBrown
Powered by blists - more mailing lists