Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2390984pxb; Fri, 8 Oct 2021 06:55:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLIZTC2eI4ta8fTdy2EPgT5zEL10voevos0ogsFZB5Huemu3Np2SYigKAJ4cuwC8ViDLPT X-Received: by 2002:a62:6206:0:b0:44c:bc1f:aa5a with SMTP id w6-20020a626206000000b0044cbc1faa5amr9990743pfb.5.1633701355426; Fri, 08 Oct 2021 06:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633701355; cv=none; d=google.com; s=arc-20160816; b=q1Yl01D/wNY8jSp1mVjkNCLXRchAHslI+UvWWPCvRw1GjvucZtQt+GA5Ai8Oi/sDia tGJ24yjfTF3u4walvd3lOPh7xnQCxXM4Pb8lk51MOx6S0Bk53x3A06gM940y5DTWi6H7 zCJ7Jn2M6BlV672KmRvDgOr1O/y9AgY3uy1GwJSXQwSUf/fbr9s8Xo73sJE1M3T6/56/ sNoSfmpG2Np8mw53DoeEXp2oIQpHzSkC5K+sxh2n7cdTsw4uthQ2X0B1bE/JTESjor/6 oDwcQ58NBz1LTyZiBkVWgn3aNbmjW1bFfgDK3vM2cup/2QeDZ/We6MWaYEY6tC/obWkp 98Mw== 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=0RhjZ+Kc7SMbcKUdlnXJg0wMA0YVIr3U8+tITJwTovRw1L6irS5YiiyRgaKsw+UfW/ 6k3BfRzFtFJ016yRB/BFchgiGF+uA8JAUz7ZTRNQGpPwO/K7unhBTOmam/Keyisekc4E MUgP2CILyxgRbwL5VdCFIkdOjIqaSPa1ZWpIVmOXAy+RcYlCUUmoenHOBCudj+NErV5B gpiGiZDsFiJGrzYwTefztm3BbQERIYXJ+18unqIPgDTcxHos+uWKXTPnJofFq/k2/hjn c4EBNMHbMNQ19xOtXOvWcY1fLVMki3F/4844j/9JRg7CAp1FYvCBLrNL6UVe8bpgEWac VeTg== 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 s4si3311859plg.431.2021.10.08.06.55.43; Fri, 08 Oct 2021 06:55:55 -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 S232248AbhJHN4c (ORCPT + 99 others); Fri, 8 Oct 2021 09:56:32 -0400 Received: from outbound-smtp56.blacknight.com ([46.22.136.240]:44483 "EHLO outbound-smtp56.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242369AbhJHN4a (ORCPT ); Fri, 8 Oct 2021 09:56:30 -0400 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp56.blacknight.com (Postfix) with ESMTPS id 452B9FABD2 for ; Fri, 8 Oct 2021 14:54:34 +0100 (IST) Received: (qmail 7212 invoked from network); 8 Oct 2021 13:54:33 -0000 Received: from unknown (HELO stampy.112glenside.lan) (mgorman@techsingularity.net@[84.203.17.29]) by 81.17.254.9 with ESMTPA; 8 Oct 2021 13:54:33 -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/8] mm/page_alloc: Remove the throttling logic from the page allocator Date: Fri, 8 Oct 2021 14:53:29 +0100 Message-Id: <20211008135332.19567-6-mgorman@techsingularity.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211008135332.19567-1-mgorman@techsingularity.net> References: <20211008135332.19567-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