From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 686EBC433EF for ; Thu, 14 Oct 2021 15:38:18 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E724160FDC for ; Thu, 14 Oct 2021 15:38:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E724160FDC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 7E502900003; Thu, 14 Oct 2021 11:38:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 79417900002; Thu, 14 Oct 2021 11:38:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 65B36900003; Thu, 14 Oct 2021 11:38:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0236.hostedemail.com [216.40.44.236]) by kanga.kvack.org (Postfix) with ESMTP id 52322900002 for ; Thu, 14 Oct 2021 11:38:17 -0400 (EDT) Received: from smtpin34.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id ED62E8249980 for ; Thu, 14 Oct 2021 15:38:16 +0000 (UTC) X-FDA: 78695449392.34.8E63273 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf04.hostedemail.com (Postfix) with ESMTP id DEB3450000B6 for ; Thu, 14 Oct 2021 15:38:15 +0000 (UTC) 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 57BA02197C; Thu, 14 Oct 2021 15:38:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1634225895; 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=GxLH0z7C+H9xHqrBRI+kBoQatoT6Befch1xXUBOMRvk=; b=wbuuGwLQVKd5RGDVEuiKlyGa4uSDIPQIj3iTwLLGyLMsj1FIXqLCyC4SWZfKz9Y52rxVWX jXSR6UdtN2SQhnvuIhAzM/7S110oBFVEVXWBPV3vnUO19qOAd4fui4K9xCBADnjX1NIDKO kouz2fDzruRykAWYJYRg1X9KxXcNFmY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1634225895; 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=GxLH0z7C+H9xHqrBRI+kBoQatoT6Befch1xXUBOMRvk=; b=HWNic10Z5eyZjDRof2nMzOceoNhhVXTEui8u/gJbvPKg83g3XcTyKgV28mYXRyPhO4MWOj nV62pu27waEV4ABA== 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 2A73E13D9F; Thu, 14 Oct 2021 15:38:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id BIG+CedOaGEwHwAAMHmgww (envelope-from ); Thu, 14 Oct 2021 15:38:15 +0000 Message-ID: <76454f39-8e41-e757-3a71-c85303c6257e@suse.cz> Date: Thu, 14 Oct 2021 17:38:14 +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 6/8] mm/vmscan: Centralise timeout values for reclaim_throttle 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-7-mgorman@techsingularity.net> From: Vlastimil Babka In-Reply-To: <20211008135332.19567-7-mgorman@techsingularity.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: DEB3450000B6 X-Stat-Signature: m476n3sn6kpijs3eqhmakmyr6r354syi Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=wbuuGwLQ; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=HWNic10Z; spf=pass (imf04.hostedemail.com: domain of vbabka@suse.cz designates 195.135.220.28 as permitted sender) smtp.mailfrom=vbabka@suse.cz; dmarc=none X-HE-Tag: 1634225895-258893 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 10/8/21 15:53, Mel Gorman wrote: > Neil Brown raised concerns about callers of reclaim_throttle specifying > a timeout value. The original timeout values to congestion_wait() were > probably pulled out of thin air or copy&pasted from somewhere else. > This patch centralises the timeout values and selects a timeout based > on the reason for reclaim throttling. These figures are also pulled > out of the same thin air but better values may be derived > > Running a workload that is throttling for inappropriate periods > and tracing mm_vmscan_throttled can be used to pick a more appropriate > value. Excessive throttling would pick a lower timeout where as > excessive CPU usage in reclaim context would select a larger timeout. > Ideally a large value would always be used and the wakeups would > occur before a timeout but that requires careful testing. > > Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka