Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2713808rdb; Fri, 8 Dec 2023 17:44:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IEU+cBQV6qrAaovhQegPLfFkPECeTR1wLAkI2es709Y/qIWl21lz5S8WNYS4ycGYXJ3AUR4 X-Received: by 2002:a05:6e02:2167:b0:35d:55d7:6c96 with SMTP id s7-20020a056e02216700b0035d55d76c96mr1300238ilv.12.1702086277331; Fri, 08 Dec 2023 17:44:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702086277; cv=none; d=google.com; s=arc-20160816; b=TeXhRvuDr9sBZc1r45FKvoS9GY8O68ksxJO9t8cz7pjiXhlA/fD21/VmV3+B3GEG66 CbvcJ80tcRQ2kKZ9zTEGNGQylRHqIRnDmtY87fuDuH63uqeCGxyO57Yct5gsEouDr7Zg QkqQBLppiAEccsoinkBFBlN6WdmhopvUf59Vt7TuO7kvbP5nFdav1aEQckVEcT++CvZV Mv+OGhARieEqJNDWlfLfSGfTIsxAi9UyAOzOWqrS1Nuug8GXmiFCE/BY/noCTQkgZ8q3 p8+zZXdpcYJuElX0vBZjjwcnUVxG290Zo8WXQaQMz6kmuQ+IBumY8jPe1up2F7XF6K+C maIw== 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=dEa8QaNsjYl+s8o0gsHyRZ4RaaNqT3abDhzMXeL0qdo=; fh=/i9i3gPy3YjEWew0fldOTQVsbi8Jj6pp2uxIJK97LLU=; b=NtqjAkxFQUcCi14zX2/C12ZT1PqZ/t5dK9h2dl0SEsgZT4qU8bvjMTfoC0JIcyC3y9 kltutJeY3PfcoUdSw7tlN4gCnRppSY+Cm75qAU4H+jAj1cI3bfgZdfyC41dnOyY+Da/c TTB4zp1lfH2V4TZyuDgIt9RUYvogZ6EYvSdxz+ncDSIloQ815f1vhPVlnV7TT5N1ZEWy /i5IhZcBrqlV1OIkQtPHnyggisPE7il5yljqccj2nVhPdCvfRCT5ehLkJjV6P4OkiChx TApBL1gQcR/b7bhgvIBICQcIqW2OiWd75Y92KbIUFPioWzDJVAWik/aPzo/hStzoPZ9/ 1iwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=wzRy6s8v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id e15-20020a170902ed8f00b001d091a00a10si2312293plj.81.2023.12.08.17.44.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 17:44:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=wzRy6s8v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 897948271763; Fri, 8 Dec 2023 17:44:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230132AbjLIBoS (ORCPT + 99 others); Fri, 8 Dec 2023 20:44:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbjLIBoR (ORCPT ); Fri, 8 Dec 2023 20:44:17 -0500 Received: from out-173.mta1.migadu.com (out-173.mta1.migadu.com [95.215.58.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35E511700 for ; Fri, 8 Dec 2023 17:44:23 -0800 (PST) Date: Fri, 8 Dec 2023 17:44:16 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702086261; 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=dEa8QaNsjYl+s8o0gsHyRZ4RaaNqT3abDhzMXeL0qdo=; b=wzRy6s8veFnUU5bJNgdMSFLnGRzIkZYdeFCe2HgzQ9TtGun5P8swPOMFlxqhzIaQBnIJc2 dN17ldR8uKRlAw68zDGPd6vFr3H6uDROlDA4T84AjubJVeqt25Zui9OB2yfilnrYcbEf3J +GTkozjJjnjywRbLMcbVBFA+/WO5le8= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Kent Overstreet 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: 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: <20231206191349.x52nm3ercxelh3dx@moria.home.lan> 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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 08 Dec 2023 17:44:34 -0800 (PST) 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? Thanks!