Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2720981rdb; Fri, 8 Dec 2023 18:06:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHf+5/GnSgMJgxj/n+ubPxEdRMBLyjju35pJ8yp5l64sW0/Vu+CWMhcj2noJxVF2/ly90B X-Received: by 2002:a05:6808:3192:b0:3b8:9e8d:164c with SMTP id cd18-20020a056808319200b003b89e8d164cmr1216845oib.7.1702087600299; Fri, 08 Dec 2023 18:06:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702087600; cv=none; d=google.com; s=arc-20160816; b=yq+m0Mo8HybwYpYCXMlI5/tkr7u0k12u9yUB6+7JwdJ/oomiM81P06UUok7tKBIeI2 I94MTN/OT/Fi+9ZvSKBaHRA7/fMVheFuTqjqIlKcgZvXLUkXqwKPIIDiEo4PRLsRrH4T DB5TeRIREKjg9aXrQxAD8cKXEW5ekzYiDxcxw+Sz30mSgxI3Wi28Hm+zIvZ+Du7cZpsX LPEGMV2o5sEhUm+OFPOZs23ZNCSvLAqiMDfYN1EH4USSgFQYOGtYgO2QBH4AZKfgsjdq kT0KwHJ8+qEpgwXNq9oscXIvUdbJKAk1lsAMLFpXSwojqYZpfqYFSDhc/EMS+ikyyuff GG/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=91VJ/1+lLpk39C0D6ifXxcy869tSZFI3pQXERYTVjWw=; fh=1i/Bi1yoxJ2fkM19l1ONnAR1LzzMZMSIela17cqbcHM=; b=MLRj71H0PRIlE2nUt+qKGwjCzCu1eCZ94yUtnGJC0oPD/G8yjpFbecdnIfRse+75CC 8UUmYgFANZJXscDu49sVfL7qRWaVHQc9t/s4JV/ZoR6FUqdtDwpaKUvCv0kKWq8EsiMM /ctj+ikYVErW2vR13MgrdLZPgmfDdFX0yMDd1sVLCqHCJ+gT4x69DdYm8PgY19XD/cic rURRjiUJcWeTnpD+n8yQwHSw0YmNrKRZWqghJXIyUn1dNWh8d59NCiotvw56ME6vXdtD t8CdW3kUAUi7mBqlwssE9hkmz7qYJdqV5MPOiaEFrQB2eF29YLR6MaDa1dr0x7IM+OSG Mb/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Wxoo0yrt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id m9-20020a056a00080900b006cb75e1d713si2220683pfk.193.2023.12.08.18.06.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 18:06:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Wxoo0yrt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id CFDDE80B31D5; Fri, 8 Dec 2023 18:06:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234229AbjLICE1 (ORCPT + 99 others); Fri, 8 Dec 2023 21:04:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbjLICE0 (ORCPT ); Fri, 8 Dec 2023 21:04:26 -0500 Received: from out-183.mta1.migadu.com (out-183.mta1.migadu.com [95.215.58.183]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6342EB for ; Fri, 8 Dec 2023 18:04:31 -0800 (PST) Date: Fri, 8 Dec 2023 21:04:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702087470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=91VJ/1+lLpk39C0D6ifXxcy869tSZFI3pQXERYTVjWw=; b=Wxoo0yrt6OLNSnz1f5bqGCzGTe5j8p0NYBZp99+RUQiRA1vbJEr4McfiJcDH3THPEg6MWf ZDWWhGEO0QZXO2v/3ofHw9eSf18pUCuTOLkKVrnBCaTYbz2zonFcB7lsVKcRYM6M7mGTad CtWMLSJto21OUY3XJSteHErWdM0k/jQ= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Roman Gushchin Cc: Dave Chinner , Qi Zheng , Michal Hocko , Muchun Song , Linux-MM , linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [PATCH 2/7] mm: shrinker: Add a .to_text() method for shrinkers Message-ID: <20231209020426.kqnib3xgtmfurskc@moria.home.lan> References: <20231129231147.7msiocerq7phxnyu@moria.home.lan> <04f63966-af72-43ef-a65c-ff927064a3e4@bytedance.com> <20231130032149.ynap4ai47dj62fy3@moria.home.lan> <20231206191349.x52nm3ercxelh3dx@moria.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 08 Dec 2023 18:06:38 -0800 (PST) On Fri, Dec 08, 2023 at 05:44:16PM -0800, Roman Gushchin wrote: > On Wed, Dec 06, 2023 at 02:13:49PM -0500, Kent Overstreet wrote: > 0;95;0c> On Wed, Dec 06, 2023 at 07:16:04PM +1100, Dave Chinner wrote: > > > On Fri, Dec 01, 2023 at 12:01:33PM -0800, Roman Gushchin wrote: > > > > What would be the proper solution to this problem from your point of view? > > > > What functionality/API mm can provide to make the life of fs developers > > > > better here? > > > > > > What can we do better? > > > > > > The first thing we can do better that comes to mind is to merge > > > Kent's patches that allow the shrinker owner to output debug > > > information when requested by the infrastructure. > > > > > > Then we - the shrinker implementers - have some control of our own > > > destiny. We can add whatever we need to solve shrinker and OOM > > > problems realted to our shrinkers not doing the right thing. > > > > > > But without that callout from the infrastructure and the > > > infrastructure to drive it at appropriate times, we will make zero > > > progress improving the situation. > > > > > > Yes, the code may not be perfect and, yes, it may not be useful to > > > mm developers, but for the people who have to debug shrinker related > > > problems in production systems we need all the help we can get. We > > > certainly don't care if it isn't perfect, just having something we > > > can partially tailor to our iindividual needs is far, far better > > > than the current situation of nothing at all... > > > > Of course if mm people don't want it I've got better things to do than > > fight uphill battles just to get some reviewed-by tags. Real high > > quality review feedback in this thread. > > (ignoring an attack towards all mm people, sigh) > > Kent, I think extending the shrinker debugfs interface is useful. > And in this context there is no need to limit the output to 10 items. > Also most of disagreements will vanish (sorry, if I missed something, > but looks like all concerns are related to the oom part). > Will it work for you? > > If yes, would you be able to drop the oom part (at least for now) > and resend the patchset? No: OOM debugging is the entire point of the patchset.