Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp920335rdb; Fri, 1 Dec 2023 02:04:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IEkH/6M7HEtnRFgdYCelfKX/XdtOiCVMpH7BFhnrvRBl0XafXvd5iGDvItTMiZcsbuws5vq X-Received: by 2002:a05:6a20:549b:b0:187:758e:9781 with SMTP id i27-20020a056a20549b00b00187758e9781mr37289126pzk.17.1701425078943; Fri, 01 Dec 2023 02:04:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701425078; cv=none; d=google.com; s=arc-20160816; b=QW4/ujx18w8r/Ss5oefO/VMQzZ4dz0DfIHWrmEiVdTaCuQPDWkBnu2XgCKeJH4FWSQ OEb8hCsDoDc3sF51S+51+Td9qPtQBPZ0XoA0HzaK6QGZRbpch0eMpEEbV4oW3JLsbGYL LM9o+jns906v5AzEQvCawBdcRSOiJ7VARZv9WLVT3ysEpxrwCb+EafBHTuFdzFvLsMLJ RhJcF4fMITGKGgVry86ME0/HBGJEX4vPyMJy3nqzJGWbl+t3NPpud8oO6iV6TF7WbgNp dQeadKpa/+/DxhPGtNEElA4Im/+YjY8TXIKMkaGYx3DiPSJdypKMQFWa6mrzVL/dHOzU q/qg== 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:date; bh=fwkox4Zdf2hnZaFjI6ZH8d+qJTEEYrW+vnW9MHVZ9I0=; fh=DA+T9F8AovCHKpaTy2H/O7bcQeP85gT8yIWFSGUV5lI=; b=z8PWCzy56h5A5B4qvdgr5+7gRZqah9XYQ4FTXXMNBeswwMZhIWRO010tIT3sqAo/cz HD1uGOZOunIOFqTlf/zFjx7txfa4btDnKYSsJO2eJMlXYhPCX6rgmfq0/DvsmnX0AJSX ud5oWtKyxxHTVGMqzQzCtzsLczbof/JLKXjJ7Z1RmQxsMm/gVcKr/iGxo2Eg+YuwPPeF EF54s0OtqPCnkeOyuPZxqhRoaeR/g7SXsxd42wvCbZqEGHU/Ruajq0DPbdcF9U6BeDH+ hi28SLcBdYLmwxJM6kcbS/OxUoe6GRxOk73HvZxx9pa4c4ahMBiaj35R/7PDY6guWhly ANqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id bn4-20020a056a02030400b005b8f9dbbd5fsi3330895pgb.409.2023.12.01.02.04.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 02:04:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 92B568246E43; Fri, 1 Dec 2023 02:04:36 -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 S1378034AbjLAKEV (ORCPT + 99 others); Fri, 1 Dec 2023 05:04:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377899AbjLAKEU (ORCPT ); Fri, 1 Dec 2023 05:04:20 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DF6DB2 for ; Fri, 1 Dec 2023 02:04:26 -0800 (PST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A80CF1FD68; Fri, 1 Dec 2023 10:04:24 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 8AA851379A; Fri, 1 Dec 2023 10:04:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id kl3jHqivaWXNWgAAD6G6ig (envelope-from ); Fri, 01 Dec 2023 10:04:24 +0000 Date: Fri, 1 Dec 2023 11:04:23 +0100 From: Michal Hocko To: Kent Overstreet Cc: Roman Gushchin , Qi Zheng , Muchun Song , Linux-MM , linux-kernel@vger.kernel.org, Andrew Morton , Dave Chinner Subject: Re: [PATCH 2/7] mm: shrinker: Add a .to_text() method for shrinkers Message-ID: References: <4caadff7-1df0-45cc-9d43-e616f9e4ddb3@bytedance.com> <20231125003009.tbaxuquny43uwei3@moria.home.lan> <76A1EE85-B62C-49B3-889C-80F9A2A88040@linux.dev> <20231128035345.5c7yc7jnautjpfoc@moria.home.lan> <20231129231147.7msiocerq7phxnyu@moria.home.lan> <20231201014745.b2ud4w3ymztdtctu@moria.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231201014745.b2ud4w3ymztdtctu@moria.home.lan> X-Spamd-Bar: ++++++++++++++++++ X-Spam-Score: 18.25 X-Rspamd-Server: rspamd1 Authentication-Results: smtp-out2.suse.de; dkim=none; spf=fail (smtp-out2.suse.de: domain of mhocko@suse.com does not designate 2a07:de40:b281:104:10:150:64:97 as permitted sender) smtp.mailfrom=mhocko@suse.com; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=suse.com (policy=quarantine) X-Rspamd-Queue-Id: A80CF1FD68 X-Spamd-Result: default: False [18.25 / 50.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_FAIL(1.00)[-all]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_QUARANTINE(1.50)[suse.com : No valid SPF, No valid DKIM,quarantine]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[]; NEURAL_HAM_SHORT(-0.20)[-0.997]; RCPT_COUNT_SEVEN(0.00)[8]; NEURAL_SPAM_LONG(3.45)[0.985]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(2.20)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[34.97%] X-Spam-Status: No, score=-0.8 required=5.0 tests=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, 01 Dec 2023 02:04:36 -0800 (PST) On Thu 30-11-23 20:47:45, Kent Overstreet wrote: > On Thu, Nov 30, 2023 at 09:14:35AM +0100, Michal Hocko wrote: [...] > > All that being said, I am with you on the fact that the oom report in > > its current form could see improvements. > > I'm glad we're finally in agreement on something! > > If you want to share your own ideas on what could be improved and what > you find useful, maybe we could find some more common ground. One thing that I would consider an improvement is to have a way to subscribe drivers with excessive memory consumption or those which are struggling to dump their state. Maybe your proposal can be extended that way but the crucial point is to not dump all sorts of random shrinkers' state and end up with unwieldy reports. If, on the other hand, any particular shrinker struggles to reclaim memory and it is sitting on a lot of memory it could be able to flag itself to be involved in the dump. -- Michal Hocko SUSE Labs