Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1466971pxb; Fri, 22 Oct 2021 01:16:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwF8iQ6DL7AKGTcJj3YzgD0wNqWdHGYKHf5CwEJKu31yGyOA0XGLfh9ooGEa+KBNsH00JRB X-Received: by 2002:a05:6a00:1487:b0:44d:c51:c88b with SMTP id v7-20020a056a00148700b0044d0c51c88bmr10897619pfu.32.1634890572088; Fri, 22 Oct 2021 01:16:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634890572; cv=none; d=google.com; s=arc-20160816; b=sj1smX8+y8a7OqJXhKSLWWjktrBJNgD/bZd3OH0A8RpndfAPummoFZbtafBkYhn11I /XQYPzhYEzRkMzuevXKrRaiC6zhU07fhT1OA9Gjd+QI7ljN1d+oFehIL/c0272gkmxLb RtM02zKjk6ZefIkt376Vwvw1KOFX8b6INKWHQMcMSgX28uax5KQtU5ZQjo1NVar7jFmf bz4ZCn6Pel4rIR6mflklM0GL/aFrfNQoaVrMxvHIZkxwftdpmbJY18FPC2idp8k3VosI P314e1Hup2A+NO6etjypBmnWGgLnejj5zCtW0TzIFqY1xxizmwVjob2bxTBIpPgGEOKr 5z6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=qIKeoJ1YdsJZDCt8Y9z6xjY1AAGqS59iy0e0ZLlFaR4=; b=iuobph+wgQ8CHcLJ0EbznTOdbLgGFykV5TMo2K1Squ+QQm5eTS8IhwK3pki01wqVkr JJO62+uKPXtpKpAPd8DybAmnxGwjQtVPobgB3JiEWnvkmdHLocmdHV379AIl102mDZC/ iuOtIxWhzyCHptyJ89q0dcgkHDkKEhZvx+PKEfkn+fei2zyiet5oFF/VhVrQrcddZQru YmEJI/mXkyu8GQNtOlgt+T3SvGcxUD6AwJ1nEu/HOFGpsNkd/NcXqAyq6+ZPAlZGJfng ozLbDPRtfCjtVXxUV8HIE7iRiEf/+0mU3XWPaJpxDHHX/DlmO4P4twaenpFINGIF5+Gu mC9A== 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 j14si2908508plr.37.2021.10.22.01.15.58; Fri, 22 Oct 2021 01:16:12 -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 S232174AbhJVIRK (ORCPT + 99 others); Fri, 22 Oct 2021 04:17:10 -0400 Received: from outbound-smtp47.blacknight.com ([46.22.136.64]:34099 "EHLO outbound-smtp47.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232021AbhJVIRK (ORCPT ); Fri, 22 Oct 2021 04:17:10 -0400 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp47.blacknight.com (Postfix) with ESMTPS id E543EFB318 for ; Fri, 22 Oct 2021 09:14:51 +0100 (IST) Received: (qmail 24056 invoked from network); 22 Oct 2021 08:14:51 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.17.29]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 22 Oct 2021 08:14:51 -0000 Date: Fri, 22 Oct 2021 09:14:50 +0100 From: Mel Gorman To: NeilBrown Cc: Andrew Morton , 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 Subject: Re: [PATCH 7/8] mm/vmscan: Increase the timeout if page reclaim is not making progress Message-ID: <20211022081450.GH3959@techsingularity.net> References: <20211019090108.25501-1-mgorman@techsingularity.net> <20211019090108.25501-8-mgorman@techsingularity.net> <163486486314.17149.7181265861483962024@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <163486486314.17149.7181265861483962024@noble.neil.brown.name> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 22, 2021 at 12:07:43PM +1100, NeilBrown wrote: > On Tue, 19 Oct 2021, Mel Gorman wrote: > > 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. > > Would love to see the comparable tracing results for after the patch. > They're in the leader. The trace figures in the changelog are the ones I had at the time the patch was developed and I didn't keep them up to date to reduce overall test time. At the last set of results, some throttling was still hitting the full timeout; [....] 843 usec_timeout=500000 usect_delayed=12000 reason=VMSCAN_THROTTLE_NOPROGRESS 1299 usec_timeout=500000 usect_delayed=104000 reason=VMSCAN_THROTTLE_NOPROGRESS 2839 usec_timeout=500000 usect_delayed=8000 reason=VMSCAN_THROTTLE_NOPROGRESS 10111 usec_timeout=500000 usect_delayed=4000 reason=VMSCAN_THROTTLE_NOPROGRESS 21492 usec_timeout=500000 usect_delayed=0 reason=VMSCAN_THROTTLE_NOPROGRESS 36441 usec_timeout=500000 usect_delayed=500000 reason=VMSCAN_THROTTLE_NOPROGRESS -- Mel Gorman SUSE Labs