Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp541369pxb; Wed, 29 Sep 2021 04:48:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgqdv+WEq5zDlBwoJx8pN0pETWX3zu/H16T2XT3wZFGGR3zmjHKsjYOZE5eO3gD44X4sxj X-Received: by 2002:a17:906:7103:: with SMTP id x3mr12213356ejj.306.1632916130136; Wed, 29 Sep 2021 04:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632916130; cv=none; d=google.com; s=arc-20160816; b=JlZ1wD0H/AmVf1Vt2Xc4geN5oC07Sz1dSw0EE7mBCYv0H57NKhJwl9pJsyNQr9nAgu FRmzUTvFsD0fqrske5+Dw6qIN7k0owM25Spqt38OY6I4R9MCkzVKCQEBdkLpwvTku8fL URzgGaTzt+10yQASn14+1w9PrQs0qorlPC1kGQZzw1HLkDNR/LwFESybbTA5ZMZeQ8zx jMOB5WE6LWI3TquJcGawKneVwxpU5+70w5rarDLUsaGnQgGB7kroG2xlJRbNs8MS2qiO km8/DRZ9mNaEOm61JyYn/n02/854cB0wn9fTGvQzes2uAJlBTWkM+P0BUrT4uNeTbqTg +kDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=HpiJk6DxzbC1o+VZA0pwju2L2kvMCw3qK1VwL6TgAQk=; b=jZRJgCDD8lG6mmKBXTX+yOM2c854qbPgCYoRGiZh/DsETj9HVLtuM13JuIo3pD9ZYp rVrHS8uV4cLyN2POu1r9exBnMn8q6zGAt87HKRa7FPOVZc025y1cOICFY2GY2gGePHfT bO0Jt7Ygew3wjNzuAjMrPiF2X+pX12xcPHgrZahK66yIklbNu62Dl2xC2/H9FGq27a/i CZy90kKIors9y4k3FcN+ekpX/025MvGd6VnzLYSqT4TshGA0ir8E0X1I8y+c6fIdLjAu Cpo8QfgZ2KEg63IyFNh3puQVuiRmvB99xLehQV+yWqkJKtYskn5wW7Z7XKTadjlNA56y SPnw== 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 j4si2548215ejj.357.2021.09.29.04.48.26; Wed, 29 Sep 2021 04:48:50 -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 S245374AbhI2KMG (ORCPT + 99 others); Wed, 29 Sep 2021 06:12:06 -0400 Received: from outbound-smtp47.blacknight.com ([46.22.136.64]:53501 "EHLO outbound-smtp47.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245406AbhI2KMA (ORCPT ); Wed, 29 Sep 2021 06:12:00 -0400 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp47.blacknight.com (Postfix) with ESMTPS id AD3BCFB4AC for ; Wed, 29 Sep 2021 11:10:18 +0100 (IST) Received: (qmail 21284 invoked from network); 29 Sep 2021 10:10:18 -0000 Received: from unknown (HELO stampy.112glenside.lan) (mgorman@techsingularity.net@[84.203.17.29]) by 81.17.254.9 with ESMTPA; 29 Sep 2021 10:10:18 -0000 From: Mel Gorman To: Linux-MM Cc: NeilBrown , 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 , Mel Gorman Subject: [PATCH 5/5] mm/page_alloc: Remove the throttling logic from the page allocator Date: Wed, 29 Sep 2021 11:09:14 +0100 Message-Id: <20210929100914.14704-6-mgorman@techsingularity.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210929100914.14704-1-mgorman@techsingularity.net> References: <20210929100914.14704-1-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The page allocator stalls based on the number of pages that are waiting for writeback to start but this should now be redundant. shrink_inactive_list() will wake flusher threads if the LRU tail are unqueued dirty pages so the flusher should be active. If it fails to make progress due to pages under writeback not being completed quickly then it should stall on VMSCAN_THROTTLE_WRITEBACK. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 78e538067651..8fa0109ff417 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4795,30 +4795,11 @@ should_reclaim_retry(gfp_t gfp_mask, unsigned order, trace_reclaim_retry_zone(z, order, reclaimable, available, min_wmark, *no_progress_loops, wmark); if (wmark) { - /* - * If we didn't make any progress and have a lot of - * dirty + writeback pages then we should wait for - * an IO to complete to slow down the reclaim and - * prevent from pre mature OOM - */ - if (!did_some_progress) { - unsigned long write_pending; - - write_pending = zone_page_state_snapshot(zone, - NR_ZONE_WRITE_PENDING); - - if (2 * write_pending > reclaimable) { - congestion_wait(BLK_RW_ASYNC, HZ/10); - return true; - } - } - ret = true; - goto out; + break; } } -out: /* * Memory allocation/reclaim might be called from a WQ context and the * current implementation of the WQ concurrency control doesn't -- 2.31.1