Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1672241ioo; Sun, 22 May 2022 23:52:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6DKu+pmM3+hc5RxOdUTu/C1e3wZaKhbqln2tLMdSx2GmhMeyVlhx81pCTfW/PDWeasZ7w X-Received: by 2002:a17:902:ef49:b0:15e:b6ed:4832 with SMTP id e9-20020a170902ef4900b0015eb6ed4832mr21054728plx.173.1653288722278; Sun, 22 May 2022 23:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653288722; cv=none; d=google.com; s=arc-20160816; b=zJEQ8LxKS3jMjE+jZEQPVkleW2cidjAwF6HqxUUt1c4ewLIpOsTVxa+UPegom19h4k G/tr0KQ4Tdg3eGRzNS5FBn0YEKp0lev+mUETvTIDtuhqe4CxKfJIe724UfcQRfRwevVr I6Xvsi7E11JfZNLf43En6uOVDEa0BNJzdPAGBPd3i8avNfwx494ON+gJbfp8zQZlhOBn vt5pVnJVBXutdf3IoxQlNooBpmdpqCZRo/hsv5uDE5nnCvc5v+Twg0OY7r3VTrdO60yJ LW56qt3w5aE1ZVUZohARPBNtCfb47a2SAn/jUha+/xVOeUI7SuU7FAxxwAYG0h2SGuKq nPdw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fFacJbvwa5BeiY3szVOg+2bHWvSVuVrSCav3PMs3Wy4=; b=CGdb8KG8Eger+kXXpYjwjiX+9aX2PRXWTgesTM4YzRym0Bjv6cEVe/PpGqWx3x4oWL /wlZ6yeoVpqf3Tvjq71XzIHckVhAE5qDuutJ0e2YqM1ozFD+aDTkgXV74AISdmM1FISB CsA4krpmD7M2R0X7R5YUpgLN528cHBvWebYlDqDFWqPaBxvxtAud7GX0qkrsiDI9jFvJ swUpfQHgjXsRSZ6M/9SJnsO4dMBBatj3uJa7MsfQsfh7yYqn23Hme9AAXA2+kLinIV6U tULV6INCldE3x4jztQWLGCsDz2RY3kd7u1xiXbzRQD9lUIyYRrTFP310VYNA8W4UA2pF ZxGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FTtqHS4A; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k3-20020a17090aaa0300b001cb8365e641si4387446pjq.52.2022.05.22.23.52.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:52:02 -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=@gmail.com header.s=20210112 header.b=FTtqHS4A; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 286AD54F81; Sun, 22 May 2022 23:20:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351952AbiETRAL (ORCPT + 99 others); Fri, 20 May 2022 13:00:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242208AbiETRAJ (ORCPT ); Fri, 20 May 2022 13:00:09 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BF1217CCB0 for ; Fri, 20 May 2022 10:00:09 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id v14so7355017qtc.3 for ; Fri, 20 May 2022 10:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=fFacJbvwa5BeiY3szVOg+2bHWvSVuVrSCav3PMs3Wy4=; b=FTtqHS4Ab3DM4iXG5smV6wqAV7NigY5YOsrNfdM9EDqDL5th5wGo+wZVRy8FzYswDT SDGetT+iY1qj8QP7mFHxOIrcrxoTg1NqhzsPapXSFVu5aIeW1EAtipIjCmrRcUz29+Bf hWHp4zj09YNJkFNnFMW8OiKSexYuzZGbIkol9548EZJ9Rf41Y30NSDUob2I7XkCeZl4O pfSVSMFREIQS6MrbI490t5eTt2FG/rgno1k87u3e7A+WECLqsnH9niksYJaD+/E5R528 P/0JMNG2HVIKLA4xI7BcX1v1jJ5kDukehFUYmZ7xykFZntaS5Z58ilBHB5ZecS0fTxju EZ3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=fFacJbvwa5BeiY3szVOg+2bHWvSVuVrSCav3PMs3Wy4=; b=AsT21lnR78uprTHDRU+ffdCQsGav3EdKbytEUU66TkJwhGrpv/N/4WkqYzIxDwrKHU v4XOS6Hr/nyfGpj2f+JQ299NK+MSJkyLeSsK/04N3/BXYYakBQ8HiF43EcUTSWtRiWyR j+YZeGbB+48uHAxzxbNrMX6tsOetMRS1uRyWAEIk+wBJqAIBSRXqVl9iJjugXTY2peJZ VtPwhfhpS0imjrKG1uuNKNfQrOSswqXMTWes2ATsJTcb3tTzp4157RCgZUF2y0QxXq1c rI/ZBXDd9Hsk/nwOPVPkA/F0QoV1EMh+OgNabkmdGg/xBGkd/CLdNLNiDXXw4gll/fI7 3sdQ== X-Gm-Message-State: AOAM531t5QKa7qHDK1SnYEFt1mL1mKVw6MtTnugPT62TRsdLvCI+CNIk SHmmco9ZcvlMYkYNOZHKCg== X-Received: by 2002:ac8:7f01:0:b0:2f9:1c7d:c68 with SMTP id f1-20020ac87f01000000b002f91c7d0c68mr3619868qtk.504.1653066008225; Fri, 20 May 2022 10:00:08 -0700 (PDT) Received: from moria.home.lan (c-73-219-103-14.hsd1.vt.comcast.net. [73.219.103.14]) by smtp.gmail.com with ESMTPSA id k12-20020ac8478c000000b002f3d7c13a24sm13041qtq.4.2022.05.20.10.00.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 10:00:07 -0700 (PDT) Date: Fri, 20 May 2022 13:00:05 -0400 From: Kent Overstreet To: Christophe JAILLET Cc: Roman Gushchin , Andrew Morton , linux-mm@kvack.org, Dave Chinner , linux-kernel@vger.kernel.org, Hillf Danton Subject: Re: [PATCH v3 2/6] mm: shrinkers: introduce debugfs interface for memory shrinkers Message-ID: <20220520170005.a3dlxk6a2qbrjdoq@moria.home.lan> References: <20220509183820.573666-1-roman.gushchin@linux.dev> <20220509183820.573666-3-roman.gushchin@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 06:58:12PM +0200, Christophe JAILLET wrote: > Le 09/05/2022 à 20:38, Roman Gushchin a écrit : > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > > index 3fd7a2e9eaf1..5fa65a649798 100644 > > --- a/lib/Kconfig.debug > > +++ b/lib/Kconfig.debug > > @@ -733,6 +733,15 @@ config SLUB_STATS > > out which slabs are relevant to a particular load. > > Try running: slabinfo -DA > > +config SHRINKER_DEBUG > > + default y > > The previous version of the serie had default 'n'. > Is it intentional to have it now activated by default? It looked more like a > tuning functionality when fine grained mangement of shrinker is needed. I think having this on by default if you've already enabled debugfs is smart - it doesn't add runtime overhead, just a bit of code, and things that make the system more observable are great to have on by default.