Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1796084pxb; Fri, 22 Oct 2021 07:50:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIfb4LG2MKvQdYGIjkWYCEvn6Eyz6POvvzBCkkxm/tK6wLLlgDlNuhjLMw4Y5OAHo3WXxB X-Received: by 2002:a17:906:e85:: with SMTP id p5mr28436ejf.159.1634914244330; Fri, 22 Oct 2021 07:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634914244; cv=none; d=google.com; s=arc-20160816; b=yzosXmeuIpsw5bfZWio1I3E5u2TVykg2SOvIXMV3B6lzFUNALRUFQZCzXxjMkC+i/j y8dBCx0KrdaOnTsY9vqniEDeX6edQrHiErCYU1fTHu9/2mnY1GaUNCBBdTnXSX5Hw+3e XffKl7vkzt7bUl6B0MUBv80+Apl/048gcc8LmIwbQdwYCsEIn06Q1aa95YAsB5vpaSzj t5ZqIqcbrKtEOlLKhyXLMubwza+C00EKdvY1kIzEUmMEseX6F81BOGLKpB6ttZsSJp/u 2yMz+STPZZ4ggLt9MyVFDznt580oCyyb5ngFmHosqCV+3weqnEFzg1rzH4JSF1iTtFec kMxg== 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=FQkwAbFIAzmATbzZ+QxhtsUqYdy/b5wWYBep/J4viTCSz5JK8Vuf/98Q3l4QF5Q1TB Mw6kvSIiq2pNy1pe0lX++cYbd0B5iqhqeL3Xqaj9IhEDDNYoJYfeXI6UzaGEPlFIfOuR ZW82dYNvPzX4j8FPIgAvgEsMQ0aCnGpcl0hYn9mjefS0/U5t1zZXbXCc8lpTNOgTc3yA mdbsGzoGyEyfuDsdLppB+BdVotRS1z/kdZEcpqZIjCY2N6rIEq5yZtS8Qb38AbePrfm3 qk/GcDlkDJ3Wa3Mhn1Bdgn/1kicobVbUrNVXX93cNGv46SP3gtvdlj3vlaQQsOOyy6rV TceA== 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 hs9si16310936ejc.109.2021.10.22.07.50.18; Fri, 22 Oct 2021 07:50:44 -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 S233243AbhJVOuT (ORCPT + 99 others); Fri, 22 Oct 2021 10:50:19 -0400 Received: from outbound-smtp29.blacknight.com ([81.17.249.32]:42837 "EHLO outbound-smtp29.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233222AbhJVOuO (ORCPT ); Fri, 22 Oct 2021 10:50:14 -0400 Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp29.blacknight.com (Postfix) with ESMTPS id 2521518E0D9 for ; Fri, 22 Oct 2021 15:47:53 +0100 (IST) Received: (qmail 31092 invoked from network); 22 Oct 2021 14:47:52 -0000 Received: from unknown (HELO stampy.112glenside.lan) (mgorman@techsingularity.net@[84.203.17.29]) by 81.17.254.9 with ESMTPA; 22 Oct 2021 14:47:52 -0000 From: Mel Gorman To: Andrew Morton 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-MM , Linux-fsdevel , LKML , Mel Gorman Subject: [PATCH 5/8] mm/page_alloc: Remove the throttling logic from the page allocator Date: Fri, 22 Oct 2021 15:46:48 +0100 Message-Id: <20211022144651.19914-6-mgorman@techsingularity.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211022144651.19914-1-mgorman@techsingularity.net> References: <20211022144651.19914-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