Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1337320rdb; Fri, 1 Dec 2023 13:25:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZMpfUeWNlskNpIDmaYjxY16pDDmJ0WdHq0yOj35+sx/TmLysJdC2aDdcRVSmJgdlOM02l X-Received: by 2002:a05:6a20:7b17:b0:18f:97c:6178 with SMTP id s23-20020a056a207b1700b0018f097c6178mr134608pzh.117.1701465927537; Fri, 01 Dec 2023 13:25:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701465927; cv=none; d=google.com; s=arc-20160816; b=Rt/WvBvAkZHAXXLVcUDAhHsTW5MJ8W59oNCrOwyI12dmdA5Hz6WYKC1As4FXIAUCbb oRCylnKcXKwoAqY+f0slU8jFB2sZIr5HZuiVN3r+bZJ0oJjvCcMDyyG8GwPg8j2Cuw5k 6wDwC+VufOLIk0rsCKMwywFx9QMokwkiEGUfsfhpyhGcB9RDDU1Y6hn8k9VT1gEkOZ1I tVuT1fPqWSP0ww3hrfcG4DGP/is3OKBWtA1zQNND8u1K/+J0+/GmApwWOiopBeqRykPj KEliPx9EmPHLesQWGhJtGKgKRIS7m7YnSF+rdxTyHukB8vjbq8cSoIoFOXCop8rOKCd4 FxNQ== 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=YSgoe7iZYKiPM6BcayB3V39+srzlSNOnYElv/By5ffY=; fh=sP08z9fNV69tvFjtJ+r75WmUf6uZHuzd+w00qqhGM8s=; b=MaxA2CjUcy3VJUL3T84+a4/xWu9o9WJD8LWJTZvO5tmC2RT2TfwDmdgvfXzPgT7jDF nxoDDrQ/LVXtkTCNwUyUK40TF2uVIUJ1CdEG0ZVwCvKBfZqm88bAigDgGuv6gcirGDDN EUdaT4aEEvxO0S7d36TbruS3FW+aFC6zkEUx2ZH1hTx96yGDFzzCF/cXX6F92HsGafv7 NetVI/M5Nw8ybqTQFEi+k4YIAB12T7dRzTzzojXPtXZYpu/7WZUCqHRuJI8f04vhJwji z1Xt2s9gJ92xRTNBvVFgHRr++QaSjLqDRVjzOzo98KW70bqVfm+DmoH4u7RQZqSdqipq AIKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="gc6yl/zt"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d24-20020a630e18000000b005c2783b71cfsi3964137pgl.810.2023.12.01.13.25.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 13:25:27 -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; dkim=pass header.i=@linux.dev header.s=key1 header.b="gc6yl/zt"; 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=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 2C5CE8295778; Fri, 1 Dec 2023 13:25:25 -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 S1379666AbjLAVZK (ORCPT + 99 others); Fri, 1 Dec 2023 16:25:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjLAVZI (ORCPT ); Fri, 1 Dec 2023 16:25:08 -0500 Received: from out-178.mta0.migadu.com (out-178.mta0.migadu.com [IPv6:2001:41d0:1004:224b::b2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 085FF10DF for ; Fri, 1 Dec 2023 13:25:12 -0800 (PST) Date: Fri, 1 Dec 2023 16:25:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1701465910; 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=YSgoe7iZYKiPM6BcayB3V39+srzlSNOnYElv/By5ffY=; b=gc6yl/ztFUNQwfobq42K6NCtYZpPRWQcxOzOmE7jxwtoeLHyrvyMd+3AawaE+RRDfsI+oa x1nSJ9mFZ06h1JB/74dFCH94XCysnPMjaOJvykGEEygt3xpwKrkU386cB3+AAuje8cgRk1 pKuqNn/erKapz5JzDwV9+5fVCMmiyos= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Michal Hocko 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: <20231201212506.skgzaoafi5zgi3pi@moria.home.lan> References: <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: 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, 01 Dec 2023 13:25:25 -0800 (PST) On Fri, Dec 01, 2023 at 11:04:23AM +0100, Michal Hocko wrote: > 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. Remember the memory allocation profiling patchset? The one where you kept complaining about "maintenancy overhead"? We can plug that into the show_mem report too, and list the top 10 allocations by file and line number. > 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. Great, since as was mentioned in the original commit message it's not "all sorts of random shrinkers", but top 10 by objects reported, what I've got here should make you happy.