Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4849105pxb; Thu, 14 Oct 2021 13:15:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZs89fmghweA7zM1fETiZu57LfPAKiWm1VuiY28NP2j3FCTZaq3gk/fnmS7TKIZJUOUF3V X-Received: by 2002:a17:90a:9509:: with SMTP id t9mr8555244pjo.149.1634242516423; Thu, 14 Oct 2021 13:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634242516; cv=none; d=google.com; s=arc-20160816; b=xZovG8WMgeqGyQluMEsIkeFkn34eC5Jng57wg7cDYsxiIoVtkMUxmc5j9Ykq26k+vP TSPBFf1FFha74TfW+w7fPADoN9h1zr7ym1UASKDNe7v7j9LIeDRTVkBAxnQ4l6Na9S3u 8awR3Yql5kIZLw5FY1wjeGOLOnZM7TLCxbLQNlcsrbt4USE00FJEkX2RvJVErpC+gtlB 4I+ikqI9/715RfDtPmMUsRLrRXmRhfWnhDD3teSbhHSz7Jgy/wYfYmgfAxcnyZEu/Daq tsl8zaohUuuP4dMnZKj0uC96T94DpoMrsN/XLG39v8ZkomRyhRSuHxgN9bA43lMx0XXw 3Mhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=j79xXtrMUi8AABa1kn9QU6pvBky9XIZZKVmd1IQwy20=; b=HRl1vxb4uees6Ht5DtqknCwwjpMXGc2wWtQsGV5K7uS53TdI16yZg9uw0Vepy+yKrG jKf+76XP5fvEc2HHDfVr/gN6Te84xfZR8VBeDzGve+2SbMxok7dZFMrgB3+d2RdifjwZ lgjjW3y+iA2m6V+Ruyk9v2KpIFQ2JeUTIdIrs9uGBXkMvpnMk+iSnd45DG8r12vWGFN3 Q2HB1vRG/YzAeddSXJvq8D9LfpfEx9CDqAOQfcyhOXyxnnrC+yA5tQHORVbDrZ9o0iDA AtjzS3q9hAMDfOtPi8GxSfEQkPt0+OXAcH3bfpvabLX3p4+XV3pvtxAW6+LCIjhdfsh5 Qfyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=d1AbXgHQ; dkim=neutral (no key) header.i=@suse.cz header.b=WmtmJ76x; 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 q8si7217525plh.294.2021.10.14.13.15.03; Thu, 14 Oct 2021 13:15:16 -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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=d1AbXgHQ; dkim=neutral (no key) header.i=@suse.cz header.b=WmtmJ76x; 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 S231720AbhJNPlQ (ORCPT + 99 others); Thu, 14 Oct 2021 11:41:16 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:51054 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229912AbhJNPlQ (ORCPT ); Thu, 14 Oct 2021 11:41:16 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 762BC2197B; Thu, 14 Oct 2021 15:39:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1634225950; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j79xXtrMUi8AABa1kn9QU6pvBky9XIZZKVmd1IQwy20=; b=d1AbXgHQpvbbW1RpQOyZ25qrU/AG3uYxYwlF3ustTQmao6u2WhVYBf52PTII8fkNosId37 8Nel76IHVz/lubHyLhY/BXUAieD3WqODoS3RBZ0ZR//gnjaI7vYsx6LmuG6iHdGzw4ZqBe N1R8d/CXNDci2ElK0i/CDd/nyVzH6pc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1634225950; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j79xXtrMUi8AABa1kn9QU6pvBky9XIZZKVmd1IQwy20=; b=WmtmJ76xM1vy2aZBAM/qbzkEZKoSENAiIswo396RSO9AIGi8AT1FwfVnNi1oVvlWdhkyBy kZedwg8DFEjzOECg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 438D813D9F; Thu, 14 Oct 2021 15:39:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 89x4Dx5PaGGnHwAAMHmgww (envelope-from ); Thu, 14 Oct 2021 15:39:10 +0000 Message-ID: Date: Thu, 14 Oct 2021 17:39:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH 7/8] mm/vmscan: Increase the timeout if page reclaim is not making progress Content-Language: en-US To: Mel Gorman , Linux-MM Cc: NeilBrown , Theodore Ts'o , Andreas Dilger , "Darrick J . Wong" , Matthew Wilcox , Michal Hocko , Dave Chinner , Rik van Riel , Johannes Weiner , Jonathan Corbet , Linux-fsdevel , LKML References: <20211008135332.19567-1-mgorman@techsingularity.net> <20211008135332.19567-8-mgorman@techsingularity.net> From: Vlastimil Babka In-Reply-To: <20211008135332.19567-8-mgorman@techsingularity.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/8/21 15:53, 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. > > 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 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; >