Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1673106ioo; Sun, 22 May 2022 23:54:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmva3n1nhAprhuYCYkjv/pmH4VXxbovJYrkv0q6E1neHsSdMMsrDIhlVIg0Ey+Nv4Kz6ML X-Received: by 2002:a17:902:c7c1:b0:161:91ee:8506 with SMTP id r1-20020a170902c7c100b0016191ee8506mr21194396pla.91.1653288856950; Sun, 22 May 2022 23:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653288856; cv=none; d=google.com; s=arc-20160816; b=S8FcInYssR9pLC4/scX7SXjBEbEGmYv6nHlgPpzgj+0N9+S6agaVIVwLterj0ZNsVm TYTCHBBd9T0krZN3crvr0fQWXsNKNuH++4HATIMfN+az2eXpNGy1sklnn2iDbKp7IJEO 2RD/SHOYvbRlNT6Y+FE0etzDq63u2msyo7DYGBdK3jI7CXHAnLoFHqphjwab83p36Arz NJ84LXE4dfX9UgFhcQjXpRNGk+r/MusmrStHUqdgK6pVlsyLyomWNB7ebbatraCHobCU 9fHihBdQ1ashgO2lsBT4ZtsVYaHDen5GF3zUe9ZE5YEgIJ4OzGJO9nS4p6wg8gcLfalS bomg== 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=ybD2DLbTD497o3f+a8Ge6qsT4YJzfBUJVdSBO1Z5I2c=; b=dtXU/VawICyN3QkzJXL9yrxJSa1OIeowYg7LamhktotagEmvcodDvcgidHahZ3zPQI wwmCXZFjQN5OLt0C53itiPSfhE/ffaH/CxCAyh6DmBn4OnXHl43qHeNesEJRPxo4yU/+ NPC07K7V6hGB/vh8z18JvTadUogBUnWC6BtOpgPC/OaA3RVCql2+hq8slEWa0XXwPtFP wcu8BNtFoO4wl38CIhoi3Pl4+Sjot5ohblvCe4/CrNUvgrV9gyIUbjsBBulmf+kqrx52 maEVemy0HYBC2mNz/4TIYfW7MTlZ3GojeIbw/d8LWwmS5cilq1w0UYcwyR/Tsv8ltiPT o7pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=J4JGNw8X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y71-20020a638a4a000000b003fa34df0430si4876834pgd.453.2022.05.22.23.54.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:54:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=J4JGNw8X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D4A822C6; Sun, 22 May 2022 23:21:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354231AbiEUA1n (ORCPT + 99 others); Fri, 20 May 2022 20:27:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354224AbiEUA1j (ORCPT ); Fri, 20 May 2022 20:27:39 -0400 Received: from out1.migadu.com (out1.migadu.com [IPv6:2001:41d0:2:863f::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB7A75C764 for ; Fri, 20 May 2022 17:27:37 -0700 (PDT) Date: Fri, 20 May 2022 17:27:28 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1653092855; 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=ybD2DLbTD497o3f+a8Ge6qsT4YJzfBUJVdSBO1Z5I2c=; b=J4JGNw8XxMYX+iMjs9avAhMHf7thryEg324HajnxGlDAo2CgNK2UEJT+kATb7Fflw0uOhj uhvuRK6Ex1GWDxQHyhYMcFVg9iyYqB18Js1SdQejp/PVaWEbIq8ey5V9kmna4Wy7M7I3Nf o1yfHDUUz0/k/n7gaNMNX4NojUokcDE= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Kent Overstreet Cc: Andrew Morton , linux-mm@kvack.org, Dave Chinner , linux-kernel@vger.kernel.org, Hillf Danton , Christophe JAILLET Subject: Re: [PATCH v3 2/6] mm: shrinkers: introduce debugfs interface for memory shrinkers Message-ID: References: <20220509183820.573666-1-roman.gushchin@linux.dev> <20220509183820.573666-3-roman.gushchin@linux.dev> <20220520164512.dqqbb5gkmfm6f4g6@moria.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220520164512.dqqbb5gkmfm6f4g6@moria.home.lan> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 20, 2022 at 12:45:12PM -0400, Kent Overstreet wrote: > On Mon, May 09, 2022 at 11:38:16AM -0700, Roman Gushchin wrote: > > This commit introduces the /sys/kernel/debug/shrinker debugfs > > interface which provides an ability to observe the state of > > individual kernel memory shrinkers. > > > > Because the feature adds some memory overhead (which shouldn't be > > large unless there is a huge amount of registered shrinkers), it's > > guarded by a config option (enabled by default). > > > > This commit introduces the "count" interface for each shrinker > > registered in the system. > > > > The output is in the following format: > > ... > > ... > > ... > > > > To reduce the size of output on machines with many thousands cgroups, > > if the total number of objects on all nodes is 0, the line is omitted. > > > > If the shrinker is not memcg-aware or CONFIG_MEMCG is off, 0 is > > printed as cgroup inode id. If the shrinker is not numa-aware, 0's are > > printed for all nodes except the first one. > > > > This commit gives debugfs entries simple numeric names, which are not > > very convenient. The following commit in the series will provide > > shrinkers with more meaningful names. > > > > Signed-off-by: Roman Gushchin > > I think this looks reasonable > > Reviewed-by: Kent Overstreet Thank you!