Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp252180pxb; Tue, 19 Oct 2021 02:04:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7axAuOgSoDOE9/BTzTuDrjZ68GPfpmoEkgDFOoOGoVA4600HKRB1Uq9BpghV43pj/SLw2 X-Received: by 2002:a63:b204:: with SMTP id x4mr26980315pge.212.1634634262655; Tue, 19 Oct 2021 02:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634634262; cv=none; d=google.com; s=arc-20160816; b=U/cd9lTcPYSN0blxfdjy/XtxyntdFoshtD7pXtn9a2cADsE+XlN7+2djkX832xUOLp IGqNvl4498Ty8FRZrnpm0XRchB1HshvoPF5hjnqbCLKnKNyuLMUoUQjXzIZ6ThKxcPGG 2x6unAzCGwaIYwc17Zvy9vqn4/YRwUKve9PJYh3nG2fczUlgQ+RihKL/owCPxV9EAlDb iYSYyXoYo1oGZ2NMxqZZLqCiMzMEwwghtW6Xg9/txblBF9agCuBpje3xkCpgLr5kljud idrCJ6Kd88Qwxz0vNjgPaJlW42ikdelolw6HVsBnE4hypwFafNDtbwaiFxPJnNgJGwtM t8fw== 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=9a+xInKExxosF6XM0KGwOv3qftCi42EDULkrPyl+Vn4=; b=IKvoeTFs5eBbhSyLPq0uCud2+ObvfZZs3sga5+KRsJQswRtFCbWvL1+h/4nSGCGY0K l5O8b9aPTrBjfjYnpibBBiInBNKwO0U19A5hy6lE3dYKdC+izKwqwdJ1gp8m3ZlKIkTa dirDK8DBniaU0MdZvw4QTG3Ba5IKKXeM/7ZqF7/NTn7bvdZmr61yoUAppWuqYZ7/Fqow 1x8+ommKzUnE2DqkNmq7OZiIO0gaAkdYi+wnnVLQuI7Au9WP+xHHigJrG+tw1XQQcaG5 HbkUlho6U4Y1W/9BnFL29jHik+w96zTdCloBv1sasXzM7+CFPLRDp6syOjJxaHC3jAdr cz5w== 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 t2si1662952pfj.196.2021.10.19.02.04.05; Tue, 19 Oct 2021 02:04:22 -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 S234977AbhJSJEs (ORCPT + 99 others); Tue, 19 Oct 2021 05:04:48 -0400 Received: from outbound-smtp02.blacknight.com ([81.17.249.8]:45706 "EHLO outbound-smtp02.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234993AbhJSJEn (ORCPT ); Tue, 19 Oct 2021 05:04:43 -0400 Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp02.blacknight.com (Postfix) with ESMTPS id C513C136001 for ; Tue, 19 Oct 2021 10:02:30 +0100 (IST) Received: (qmail 10197 invoked from network); 19 Oct 2021 09:02:30 -0000 Received: from unknown (HELO stampy.112glenside.lan) (mgorman@techsingularity.net@[84.203.17.29]) by 81.17.254.9 with ESMTPA; 19 Oct 2021 09:02:30 -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: Tue, 19 Oct 2021 10:01:07 +0100 Message-Id: <20211019090108.25501-8-mgorman@techsingularity.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211019090108.25501-1-mgorman@techsingularity.net> References: <20211019090108.25501-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, 2 insertions(+) diff --git a/mm/vmscan.c b/mm/vmscan.c index 1f5c467dc83c..ec2006680242 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1033,6 +1033,8 @@ void reclaim_throttle(pg_data_t *pgdat, enum vmscan_throttle_state reason) */ switch(reason) { case VMSCAN_THROTTLE_NOPROGRESS: + timeout = HZ/2; + break; case VMSCAN_THROTTLE_WRITEBACK: timeout = HZ/10; -- 2.31.1