Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2392441pxb; Fri, 8 Oct 2021 06:58:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybKvTN2o7RPcrDKSAgieCu+ZSUoZlVGqBuyXxoh67BYZt19zqcRhHhqSEth8wIQq0UPKaG X-Received: by 2002:a63:3e4a:: with SMTP id l71mr4665308pga.318.1633701494969; Fri, 08 Oct 2021 06:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633701494; cv=none; d=google.com; s=arc-20160816; b=oiS4QEKCszjDyroJJAyrpzWIsIlwBPdIUJpou6Pef5uzmzO21TQhbCi3SVCiB8bxbU do+y7san6bAA966aTv21mGanzMx2wzmV+v3IJWpzOrhyg8sIqDNfQPr+r+YiTxYrx/dk ZNPwze+CcyXdACuaWJgyV++r1JMTTbuKypLa1iBmwhls8Knu3NQyLPSZTQnskEw0SclL tzdzo5wzpOIN9VaBDVt9JgyI5Z1YF1HBhjIEw9QdpKm7F/rjoeXy8oFkKUa20cDsJriD NmAcK9mIJzASRTDihNblMZdv6brfAbqPF3i0YGdOaBLmWGp2yAiEmDFtvkkSHLLnMgWe xJ7g== 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=mknR12gL2290x7ksDnzH/ABg4uVhjqZQQHq51pEv6x4=; b=qRVYKFNgvKNVULQpC6bczWz7wxePRR5ddsbdtLAJYIkq/bLEvnjRRcERn3UqN3E7ot OSmD9Phl8FCshiS7c5DF5F70lDKg4rx24yQNak1fu2AGPsM/nkxClS8l9Kwi7mb2glHL pcFRH6axGJyRG5vWLMr6o4iArTALuceTK9wMx5YpyaOGiw4YLbNX/qFsRhOyHbxbrnZ0 nDcNXNeSyZOyijZPdctxYf0QIN5muuBlLz8kj/u0Dw+o2AKb3yojbpobzAvO30aWRYBH zNA72aQBCqSCoDOkoanRwwiDg5E33ARatz9/LR6Jcoe9qiQIgexLG1RUugazPxHKqCVx KFrg== 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 s30si3613404pgo.362.2021.10.08.06.58.01; Fri, 08 Oct 2021 06:58:14 -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 S242407AbhJHN4y (ORCPT + 99 others); Fri, 8 Oct 2021 09:56:54 -0400 Received: from outbound-smtp53.blacknight.com ([46.22.136.237]:44825 "EHLO outbound-smtp53.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242348AbhJHN4v (ORCPT ); Fri, 8 Oct 2021 09:56:51 -0400 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp53.blacknight.com (Postfix) with ESMTPS id C2F27FABF4 for ; Fri, 8 Oct 2021 14:54:54 +0100 (IST) Received: (qmail 7895 invoked from network); 8 Oct 2021 13:54:54 -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:54 -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 7/8] mm/vmscan: Increase the timeout if page reclaim is not making progress Date: Fri, 8 Oct 2021 14:53:31 +0100 Message-Id: <20211008135332.19567-8-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 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 --- mm/vmscan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/vmscan.c b/mm/vmscan.c index e096e81dcbd8..7b54fec4072c 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1038,6 +1038,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; break; -- 2.31.1