Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp900942ioo; Thu, 26 May 2022 18:28:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbeCZqfWV9IoGfSIlDZIbMyJvtsTHr1a/K4dcTgyLScGyYCsOVJkEMpEtIoJizQc9rwRCU X-Received: by 2002:a17:907:e9f:b0:6ff:3a0:cdfd with SMTP id ho31-20020a1709070e9f00b006ff03a0cdfdmr15196444ejc.448.1653614928144; Thu, 26 May 2022 18:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653614928; cv=none; d=google.com; s=arc-20160816; b=skZjIZo1yjP7s1Fa6rZp+cw+UqFVe42IJtdRc4I/YpmorLeL9gi5oCBTAIwp9YJvL/ ZVx5wq5PyFprBd5oFdU7DmH2OLJ7fHMJfYdKi2gn82pGgbDKxoo8X61r8bFCIcQlFwy1 pgrQQLgCchtNQX7bOkZn5gYsSip3QIANwwHHCRw4y41l/iD/Jrif/kdEW9qKHLMJ2Uyx cFSF87FUczJhwWTp5fb1WFf/LVBaHyVoIOTxV/LWKsJbVyduKdgvsN6cAoQklgxYDcjd 3kGQYRyvi8O0Mcta240w2fCmjl0oV+KqxSEerIzOoVQ3hsMqv5Dk/NUTZrNN1e8p3kSQ KBfw== 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:dkim-signature; bh=jom1KNUFUVbdHI4yDCgycgylXLvzpYU5cnGJu6js2CM=; b=JTfLu6j+3GIcdgLxO7O/1/L4gF3S5VUQfithZ3gBR7lXy7ADNdYTHIMWU23LVpTFRa JapXNw8dYCX+8HCMYAw0XxOaKPQhYNEfvYQYWh1/GOrueOpXrXkELe4QIEyRRsmH32Kz Ypc//PpUkyyWd0+gt29o9eVQeXkPx3Nbyng0/Ul+hJsd+aQbQY+1Wijv6Gl5xjuag6K3 sRBRCWUBQ8Hg/ziFecrC/SCNRMiF3IDv8bhdKITwBukXMN+cU03dF4IAnnkYGZTO7O9k 3QTIeLiwqWta9vhYIWnubGm1BAssgY0Np68gskpZnpneXLAQFJoAbYz3Jo7u2RK2VZqZ C1VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="MMRNUHP/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a1709060e4400b006ff21423705si2789734eji.323.2022.05.26.18.28.22; Thu, 26 May 2022 18:28:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="MMRNUHP/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239160AbiEZDq5 (ORCPT + 99 others); Wed, 25 May 2022 23:46:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242009AbiEZDqc (ORCPT ); Wed, 25 May 2022 23:46:32 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 193755003F for ; Wed, 25 May 2022 20:46:30 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id c65so112595pfb.1 for ; Wed, 25 May 2022 20:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jom1KNUFUVbdHI4yDCgycgylXLvzpYU5cnGJu6js2CM=; b=MMRNUHP/S8UsNnp5EuPIxQHhG8BxklSE0xitelM4Vg7GNPTndJ46XLTWbPnLeGrakA HjxaBvB9CVdpU++lWFhFVi0hQqi7XBEeBFJb1FmKXIr+h1mB2EKMXZFz1mk0SEq8VjWT R1tc4Ky4e6KwB5Vo848Wnai0OpxR/X1nTf0iMNrgLyMU6q7n7mA5X8YtWLfcHAeHDBDE U+JOWvfI/IlcjenYh/3rRmJtTzyHB1v2XgEjqyovAEbIPpcMjB4QP8y/dvtqQmSsPQqa 5rCwn+uwTKxRosFLjRi2V7NRMrmRN5WXvExI48SNZzKaGvLRMnke/CoQ8QghFYZWFWO8 6Y1g== 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:in-reply-to; bh=jom1KNUFUVbdHI4yDCgycgylXLvzpYU5cnGJu6js2CM=; b=tOpPonIEK6BzFNGUo5WUvsMIYYJ5R2w2tG4EtXczGPd/enaEfVIJII+qseN5HAkhqU e1wZxEq5Xf/DcZv3j6cSyzjCxmKfMwzwc76CpUkY5iFxCbPQJYQxPWmki7eEFQrH0zRT eZfjmT1UuOYhAdNIwvnQm6xqzEJf6xlnJbd/3wTAs+81swckxQ2Irg/jUQFnybO6YYoG N6wlH0JdQy6TCrPiJsCDSdcyo0UBLvPIPVI5erbRi/VO1XGm1y4JFIK7f6aIN7NNC/60 WGw9hhCvcT7l5RAdbLFSkw80oi/AgUa6+XYF7j4kqEJkUfcfnXLjweE7VO6gRvsdR7Kh MQCQ== X-Gm-Message-State: AOAM532XOs8Qbmg9kkjB+zP69v+oZmYg6Xf8ZD7xKTLCnHWF1OQ8KYCK 9gDwXsCBJeQdjmyncAvreIk9YA== X-Received: by 2002:a63:83c6:0:b0:3fa:4034:57e3 with SMTP id h189-20020a6383c6000000b003fa403457e3mr16440355pge.177.1653536789612; Wed, 25 May 2022 20:46:29 -0700 (PDT) Received: from localhost ([2408:8207:18da:2310:c40c:3e14:bb57:48be]) by smtp.gmail.com with ESMTPSA id je3-20020a170903264300b0015e8d4eb249sm200094plb.147.2022.05.25.20.46.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 20:46:29 -0700 (PDT) Date: Thu, 26 May 2022 11:46:23 +0800 From: Muchun Song To: Roman Gushchin Cc: Andrew Morton , linux-mm@kvack.org, Dave Chinner , linux-kernel@vger.kernel.org, Kent Overstreet , Hillf Danton , Christophe JAILLET Subject: Re: [PATCH v4 6/6] mm: shrinkers: add scan interface for shrinker debugfs Message-ID: References: <20220525202600.2910982-1-roman.gushchin@linux.dev> <20220525202600.2910982-7-roman.gushchin@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220525202600.2910982-7-roman.gushchin@linux.dev> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, May 25, 2022 at 01:26:00PM -0700, Roman Gushchin wrote: > Add a scan interface which allows to trigger scanning of a particular > shrinker and specify memcg and numa node. It's useful for testing, > debugging and profiling of a specific scan_objects() callback. > Unlike alternatives (creating a real memory pressure and dropping > caches via /proc/sys/vm/drop_caches) this interface allows to interact > with only one shrinker at once. Also, if a shrinker is misreporting > the number of objects (as some do), it doesn't affect scanning. > > Signed-off-by: Roman Gushchin Acked-by: Muchun Song Thanks.