Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1796213pxb; Fri, 22 Oct 2021 07:50:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw3WlNt6CPMyoQ6fR0PAEj1E8JLnH/ogkYgQoT6cLgBCNYh22ueUtIDp4AZEG+zyBh2v69 X-Received: by 2002:a17:906:d1d1:: with SMTP id bs17mr87611ejb.198.1634914252989; Fri, 22 Oct 2021 07:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634914252; cv=none; d=google.com; s=arc-20160816; b=R1lw5k2yCq0UNbph4DV4m5fkQbV3D2xgA4xWGF5RoPEmbh+EKGlAc5G3LVIG2TInKm Lwi04tNc8saTnWFwgPvd39vBF16cxE3GljX3QTfBQL6VOXFJB6ebrHZfxFMh05p6jA4p NJxPRNJWrMxtFiD/BVe3aiY7WpKTZWxeAWkXKYMJ+cwkjBCowAj/aLEZ11id2DjH5GYH Ef+m7kHe53KCmLArXMqjiD4SMftjKxsyrrCZfniCU5/U5IQNmRguo+CeA/xdvpbh9Q0A 3+FeU+xFiyE+6POPTsBhsNMZg+nKLH+upx3M4UjIwM0IJcV020jSim1+gY4lGfWsJPrj TQfg== 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=nifUZGpT2JhgJ/sNZ5AKnbU2TgxoY8IwbjO2az41lwY=; b=m8b43oqJzdhzELjNdml2Cdm27OsAixhvUSxP3kdMcY74fZowvUnJX9Whj/ZwMQRCA4 69oMItGI3srRap9DBudxdZoB4R3/uT/4FXhCDROWNXI3j1heDeXqXr77xYQL9SbBYLJR mzNNd78NIDAvxyyZ6TsA9PdxQTgqhC8+vIeym7SxcHlIrJ+DBQFu7pf9x1SEz0/W7xkS igl6sCg716vC9vS/pX4BjzmPoEMi9P7EZxWSELBw/u26HM1fsJaKKgOAUesSJftUsnJh mXCgMwrQ/ibSG2dXEpRNDRH8Iu7QKM05R+T0B8WGHqtc4jlxCelZqsdQOWaozOWu5yxS dhQA== 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 i26si10381865edt.514.2021.10.22.07.50.26; Fri, 22 Oct 2021 07:50:52 -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 S233251AbhJVOue (ORCPT + 99 others); Fri, 22 Oct 2021 10:50:34 -0400 Received: from outbound-smtp32.blacknight.com ([81.17.249.64]:49595 "EHLO outbound-smtp32.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233250AbhJVOuc (ORCPT ); Fri, 22 Oct 2021 10:50:32 -0400 Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp32.blacknight.com (Postfix) with ESMTPS id 8FAD114E034 for ; Fri, 22 Oct 2021 15:48:13 +0100 (IST) Received: (qmail 31967 invoked from network); 22 Oct 2021 14:48:13 -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:48:13 -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 7/8] mm/vmscan: Increase the timeout if page reclaim is not making progress Date: Fri, 22 Oct 2021 15:46:50 +0100 Message-Id: <20211022144651.19914-8-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 Tracing of the stutterp workload showed the following delays 1 usect_delayed=124000 reason=VMSCAN_THROTTLE_NOPROGRESS 1 usect_delayed=128000 reason=VMSCAN_THROTTLE_NOPROGRESS 1 usect_delayed=176000 reason=VMSCAN_THROTTLE_NOPROGRESS 1 usect_delayed=536000 reason=VMSCAN_THROTTLE_NOPROGRESS 1 usect_delayed=544000 reason=VMSCAN_THROTTLE_NOPROGRESS 1 usect_delayed=556000 reason=VMSCAN_THROTTLE_NOPROGRESS 1 usect_delayed=624000 reason=VMSCAN_THROTTLE_NOPROGRESS 1 usect_delayed=716000 reason=VMSCAN_THROTTLE_NOPROGRESS 1 usect_delayed=772000 reason=VMSCAN_THROTTLE_NOPROGRESS 2 usect_delayed=512000 reason=VMSCAN_THROTTLE_NOPROGRESS 16 usect_delayed=120000 reason=VMSCAN_THROTTLE_NOPROGRESS 53 usect_delayed=116000 reason=VMSCAN_THROTTLE_NOPROGRESS 116 usect_delayed=112000 reason=VMSCAN_THROTTLE_NOPROGRESS 5907 usect_delayed=108000 reason=VMSCAN_THROTTLE_NOPROGRESS 71741 usect_delayed=104000 reason=VMSCAN_THROTTLE_NOPROGRESS All the throttling hit the full timeout and then there was wakeup delays meaning that the wakeups are premature as no other reclaimer such as kswapd has made progress. This patch increases the maximum timeout. Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 66da45084af4..35b6ccaa01c3 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1042,7 +1042,7 @@ void reclaim_throttle(pg_data_t *pgdat, enum vmscan_throttle_state reason) break; case VMSCAN_THROTTLE_NOPROGRESS: - timeout = HZ/10; + timeout = HZ/2; break; case VMSCAN_THROTTLE_ISOLATED: timeout = HZ/50; -- 2.31.1