Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1200565rdb; Wed, 6 Dec 2023 11:14:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtznU2Qeaz23t0pHzIJ0PFRYPxS89xfj92MeKOnBcTCsn5C9TvtQ+gMHpIy24vB4WZItTU X-Received: by 2002:a17:90b:1987:b0:286:c55a:d9e0 with SMTP id mv7-20020a17090b198700b00286c55ad9e0mr1269249pjb.32.1701890049124; Wed, 06 Dec 2023 11:14:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701890049; cv=none; d=google.com; s=arc-20160816; b=fx6IHJwEkK+81ROPT38AeXHKyR2me4QztalH8FwM7eEGs0DdkHppJvqDMfKMTODmtn nEr+XYahwya+p9k7/j0EOeEIZVgR7+DNAicIlYU8/Ur7DwuSfEHUC3QLHGs5UuComwz2 GgHwfgQZSkPLviCZb17op5kJBNc9jgfzP4vLj9EoeRB30k6RcGKCxGo8LqDrESLxa1S2 L398Y3tZWTa5tgXCDEA4zb3935YItLGlqFLCqHGZiw0Jg6sWIx6fAfa82XBgL1k/4MQ5 tk1/xpbwbwsaG58TpF/sR4kDTGyHPomqwbuPYBXnqswMjMcJMm0vQhK4ipRvs1KihNjY Htuw== 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=aQlIzioB/NXQ5qBnXhi85XEv3cm+9ys274pnHM2/1Jg=; fh=ymSEEDJTB9biKRpp+DnRB8O3sL0cAKhLiqpI2WIezXc=; b=a+oVlvYvV+rIqnVDqJlxRRgmooQ7+3P8C41cSHb+qhc4gUzmPzciuPVPyA+Inw+Lwk xa1ErvLvvASScAf9FffEuUFI+lq/wbAaPrWIJ1xD0MRN2YaLL94Iu3rLNmfhhj9mUWDm omseH4gdoH7UKeTNxhCplZ+5fQRIu2CxUa6RgqDvp6SY2YoJ4eEFFh2Sg7y3VcI0WEB2 +BP8rN0D8IQ5SppRPMdtSba+edmGeJ6PVkUERq2HPmo4Ib9b7F3gcDy4cQydEprdd2vV ONyNGBnIJyIGG/I2yM5TOqCiPlP2N43ZflUA3MWMsAnQdDg9KMA3mycYdKOIa4rjdF1W M8Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=BNDnEkV+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id hg22-20020a17090b301600b00286a26df523si239995pjb.188.2023.12.06.11.14.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 11:14:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=BNDnEkV+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id B612880E8572; Wed, 6 Dec 2023 11:14:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442775AbjLFTNv (ORCPT + 99 others); Wed, 6 Dec 2023 14:13:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379272AbjLFTNt (ORCPT ); Wed, 6 Dec 2023 14:13:49 -0500 Received: from out-186.mta1.migadu.com (out-186.mta1.migadu.com [95.215.58.186]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60723193 for ; Wed, 6 Dec 2023 11:13:55 -0800 (PST) Date: Wed, 6 Dec 2023 14:13:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1701890033; 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=aQlIzioB/NXQ5qBnXhi85XEv3cm+9ys274pnHM2/1Jg=; b=BNDnEkV+1sMya0F/B4bmg/yD0HnFaLSKKcZDsYMka3CyS5M9ffOsfxIo8H2/Bd1mtJVTXk IOm9asmccJ+vXO7OqdIo9cwX/02GM9D398nfToOX0/c17JhWRjK2MgwuD08EtQKCEgzgmf ez8Q6G0jtQnSoL9WKK3vQ3zKZx7K7yc= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Dave Chinner Cc: Roman Gushchin , 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: <20231206191349.x52nm3ercxelh3dx@moria.home.lan> References: <20231129231147.7msiocerq7phxnyu@moria.home.lan> <04f63966-af72-43ef-a65c-ff927064a3e4@bytedance.com> <20231130032149.ynap4ai47dj62fy3@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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 06 Dec 2023 11:14:06 -0800 (PST) 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.