Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2627733pxb; Tue, 21 Sep 2021 04:18:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCswo1vH3TbG8m1lJN4EZs6RCxOn0eII5k4n3fNpAaJVGc87Rpp/V/QtSKMGhHTv4yCdtR X-Received: by 2002:a05:6638:a2d:: with SMTP id 13mr23046973jao.12.1632223087686; Tue, 21 Sep 2021 04:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632223087; cv=none; d=google.com; s=arc-20160816; b=iJbEDn0XqvAPMoWASxwCP2DBJ+f+7qJFsLhJXuORqaHIa1FAjl5dbuL7S/qcUCnjif fZWp52sx6v2JgxZcw0yl8lu4qM4EbyGIb9Ls0R0OGsR+o47ICjHrkfUux9L4hYw4HHxc aFm9ubtGJOwF/zsm8o1pV6QjZDieUeXs1wfIOmLJLIMka98bUGyqdDSkXgZIMCLwtNwX H3sOmFJSVHEUIHl5hv0ZZDWAmIr0C/jH4BP1ZO6arDFXaizjuDIIxauvd+xM7hjkWIEz FQSOas/6M2DsBfzO54A3q3a6CAaidsBWekwlGH+6X9TpuMSx12OmnriG0as82ePFvS2I QhoQ== 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=hM14ls0449yf6IUJMbdswRZhMIUDZKuyJBEgWrppz5k=; b=otwaEP8vayRGrI4bzDipFvaACh9TDEMCuzRg7k+X0Gu5ilTYt/G4kUdK5+hgkkwOzC F7XwV/dF4PK1Gkx34E50dH5JJ8bezlkrnJ7Od5PV+fN1U8qaa1b9cdkxbvkJGFikaD1C vmBFc/NFBR81ZV+oUZdJXX+WrV27zohSMtoFtTQJ40l7gpSuIgc0MddqPduSaUzfYZdU IFi6LMBTiBnUie6600XfF/CCPJbCL2zKI8TQl1RnfSlmlwQvnFzDYAp9NNjZeUxLhIPa o3MbAPpiZtKgDWcfmegVP/MW5ZR9w7mBqA3TW8BmcqtxM430QKx7+3MD07IkZ78VtxiF c1xQ== 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 m11si13906255iov.97.2021.09.21.04.17.52; Tue, 21 Sep 2021 04:18:07 -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 S232398AbhIULSF (ORCPT + 99 others); Tue, 21 Sep 2021 07:18:05 -0400 Received: from outbound-smtp35.blacknight.com ([46.22.139.218]:35641 "EHLO outbound-smtp35.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232401AbhIULSC (ORCPT ); Tue, 21 Sep 2021 07:18:02 -0400 Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp35.blacknight.com (Postfix) with ESMTPS id 7FA1629EF for ; Tue, 21 Sep 2021 12:16:32 +0100 (IST) Received: (qmail 24510 invoked from network); 21 Sep 2021 11:16:32 -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); 21 Sep 2021 11:16:32 -0000 Date: Tue, 21 Sep 2021 12:16:30 +0100 From: Mel Gorman To: NeilBrown 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 Message-ID: <20210921111630.GR3959@techsingularity.net> References: <20210920085436.20939-1-mgorman@techsingularity.net> <20210920085436.20939-4-mgorman@techsingularity.net> <163218069080.3992.14261132300912173043@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <163218069080.3992.14261132300912173043@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 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. -- Mel Gorman SUSE Labs