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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91E32C433EF for ; Tue, 21 Sep 2021 21:47:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3ECE760EFF for ; Tue, 21 Sep 2021 21:47:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3ECE760EFF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id C0C746B006C; Tue, 21 Sep 2021 17:47:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BBADE6B0071; Tue, 21 Sep 2021 17:47:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AA9DF900002; Tue, 21 Sep 2021 17:47:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0254.hostedemail.com [216.40.44.254]) by kanga.kvack.org (Postfix) with ESMTP id 9A82C6B006C for ; Tue, 21 Sep 2021 17:47:07 -0400 (EDT) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 477521822CC47 for ; Tue, 21 Sep 2021 21:47:07 +0000 (UTC) X-FDA: 78612916494.02.B56F136 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf26.hostedemail.com (Postfix) with ESMTP id DCAA020019E7 for ; Tue, 21 Sep 2021 21:47:06 +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 A7CE622231; Tue, 21 Sep 2021 21:47:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1632260825; 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=MmQGJX320SQ4PZHIT6qqIM++413uNofSb605veJtUls=; b=lo3tPEOB+9EEtY34A9L0SIPIqL8yXfjOoyht9pn3t5JrMo/ofPS9Qve5i+0IP1YTzCjwj7 Qt5bAr4Fr5aHKrtALXP1f4Fa4OEYr7IPJWdjiErbWJoMhV4RubzSGtuztoLzbzeKzwdcWa LkFM5DGifU7g8HUNPZc31k5jUcOcdFw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1632260825; 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=MmQGJX320SQ4PZHIT6qqIM++413uNofSb605veJtUls=; b=51wishEjuzRkwfkIV3k1ec7a1+4CQwhMnJYsRAX6+vvLW1sJPtJQf9+e4HLn/WfVnjGS5b 5EVYZRn/eLAq1lCw== 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 BF75413BF7; Tue, 21 Sep 2021 21:47:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id emXmHtVSSmFPJQAAMHmgww (envelope-from ); Tue, 21 Sep 2021 21:47:01 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Mel Gorman" Cc: "Linux-MM" , "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" Subject: Re: [PATCH 3/5] mm/vmscan: Throttle reclaim when no progress is being made In-reply-to: <20210921111630.GR3959@techsingularity.net> References: <20210920085436.20939-1-mgorman@techsingularity.net>, <20210920085436.20939-4-mgorman@techsingularity.net>, <163218069080.3992.14261132300912173043@noble.neil.brown.name>, <20210921111630.GR3959@techsingularity.net> Date: Wed, 22 Sep 2021 07:46:58 +1000 Message-id: <163226081891.21861.1286773174123207227@noble.neil.brown.name> X-Stat-Signature: b5twgugzmrkuyde43xepwr6ut9umufyc Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=lo3tPEOB; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=51wishEj; dmarc=pass (policy=none) header.from=suse.de; spf=pass (imf26.hostedemail.com: domain of neilb@suse.de designates 195.135.220.28 as permitted sender) smtp.mailfrom=neilb@suse.de X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: DCAA020019E7 X-HE-Tag: 1632260826-298718 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 Tue, 21 Sep 2021, Mel Gorman wrote: > On Tue, Sep 21, 2021 at 09:31:30AM +1000, NeilBrown wrote: > > On Mon, 20 Sep 2021, Mel Gorman wrote: > > > + > > > + reclaim_throttle(pgdat, VMSCAN_THROTTLE_NOPROGRESS, HZ/10); > > > > We always seem to pass "HZ/10" to reclaim_throttle(). Should we just > > hard-code that in the one place inside reclaim_throttle() itself? > > > > do_writepages passes in HZ/50. I'm not sure if these values even have > any special meaning, I think it's more likely they were pulled out of > the air based on the speed of some disk in the past and then copied. > It's another reason why I want the wakeups to be based on events within > the mm as much as possible. Yes, I saw the HZ/50 shortly after writing that email :-) I agree with your guess for the source of these numbers. I still think we should pull them all from the same piece of air. Hopefully, once these changes are properly understood and the events reliably come as expected, we can make it quite large (HZ?) with minimal cost. Thanks, NeilBrown > > -- > Mel Gorman > SUSE Labs > >