Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1068957ybj; Thu, 7 May 2020 14:08:28 -0700 (PDT) X-Google-Smtp-Source: APiQypLRi7zNaBHVGt5Hb+3f2F7guyxHyBHsu6tUDoSuHLNIhlNKFw48cAaq0OXcJEbSQ2MyLvTT X-Received: by 2002:a17:906:cb98:: with SMTP id mf24mr2876889ejb.146.1588885707879; Thu, 07 May 2020 14:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588885707; cv=none; d=google.com; s=arc-20160816; b=crHaV8G+RszTdcaEuJHnJHNO7S6brABHvVi/WGCh7GRuocdNvuEYdh0Gn7ocqmKL43 vFvOGcfR2wFp42J22WlEtK4IqGjIFLCedbVXLsJD66s9iJziUCusvV6FrsdR7mlTErLY +bXPGTXo27nIaWvGHLK0FtCvhpQ+2DR06VnzCH9jTpJRV/mJHukpkJGIGgvbdl5OO4kG 6YbHT2ZluT+6coUALEvdNn3LuVXI8pO2sweay5mOqIsSz4athkmVwzlwEtcWDU3D393r FU23gOdfIG7/9LTzYX9b1WbXV4eaYqOKP6BcEFe9Ool6IHGFD39vX3qUHFiIxRre1nER GKRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=NEeebNbM/M0OFPawcEwiP7KQRHS26VREdoUS4zdOewE=; b=j70UfTzEmYWWQnSCPM5LU4FFPOiq3RQ11OIpD7RR09edb89alwhfXlMEpESKVQRv39 iQonUbmOkxlyRspvHL+olRJK8hK9QvCRC4VHBlr2b6NdR2Qk0CyimjY9ETXiHB3ug6V/ 7swk5rVfMjkORuTtPV/QyHPkFY4wH6t6fBH3g9qb3Sg6PT/5bgX8riDFqj0YvBzr27pV 5Cz94nv4PanndrhiGKstgAn7jNNZYk3UPXGccfZXLZV3KqnQGJlSCqHmXINpGrJsZb5z bjbcsqFi5RjdQgJGV1phSS/FThdqauw7W27Ty51lsAjnkhOf9Md//S3VTV02FmIW2zkG JY1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b="JYC32j/t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si3825813edv.549.2020.05.07.14.08.04; Thu, 07 May 2020 14:08:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b="JYC32j/t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726750AbgEGVGO (ORCPT + 99 others); Thu, 7 May 2020 17:06:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbgEGVGK (ORCPT ); Thu, 7 May 2020 17:06:10 -0400 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C215C05BD43 for ; Thu, 7 May 2020 14:06:10 -0700 (PDT) Received: by mail-qk1-x743.google.com with SMTP id s9so1320635qkm.6 for ; Thu, 07 May 2020 14:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=NEeebNbM/M0OFPawcEwiP7KQRHS26VREdoUS4zdOewE=; b=JYC32j/tVnDFyZT5cYi5BA4MS8gBSFnKpZe1g7y+WWKiAfQZ5EJtQTrCYRiguXAA2l 0vJ7cSu9q8Xr9H+/xflgKxprjziO6nUU0m7xAn8VfL6xKLvxxDNKL95b+nfZgyUxXtfY OYFZrMyS7894JTbZAsi9npqMeADUMfGvvSzL8mEc+eiwUY9CgOj9HYnA0M7QMYVPJTv7 Y2ciFMaL72giuvY6ENJegOReYfVmdOC34oZ8grdvBs6wYWx5dlara1Zb+FCCQLhN9OUv xNIpdubzwyETlxZKfGC0XPp7JAThtjvREjJjOUiA/Y7VelnvQgT1oEmJ4YrXFO9uLnnF s1Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=NEeebNbM/M0OFPawcEwiP7KQRHS26VREdoUS4zdOewE=; b=hZTiar3ySeGRRnOn3MbspsttONZ5Jnzm91t9fil/VeZOoDXI0j2nOaayBpETvqDRHU dXHpBr0FTbR8VF7H+PyIFYYtaGkcuXrw1u/fjMtK1wI4066RyeI0aX4eRTJ365VQlmNc wIUiLZb8Mzd32wxPy9T0/33gYvKNEzHW2OeSLwbDbj3IfZ9w6dY2Dbha8O66zaKqfgy0 oz0i1DEAq6eL2Qqj11PQ2DZFi1/075kio3Owp9PK/8HJZP6tUslYEXQj7yLAnrNF0cbz 0HmHVPEAP/vuWauDM+7wjfr4AMMZ7q+w1bMwrw7DUfHmR1d3MdzJAxqMzyoxlaQD6YqJ KrJw== X-Gm-Message-State: AGi0Pua3lJm8vtzN1pVzp7KAD4K06/hzURmGz8v7clajEO3MDpontUVZ BhMFrouQ6KIsKSlwcXKkBJPSVNo5a5g= X-Received: by 2002:a37:6409:: with SMTP id y9mr16506966qkb.184.1588885569875; Thu, 07 May 2020 14:06:09 -0700 (PDT) Received: from localhost (70.44.39.90.res-cmts.bus.ptd.net. [70.44.39.90]) by smtp.gmail.com with ESMTPSA id x19sm4049983qkh.42.2020.05.07.14.06.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 14:06:09 -0700 (PDT) Date: Thu, 7 May 2020 17:05:53 -0400 From: Johannes Weiner To: Roman Gushchin Cc: Andrew Morton , Michal Hocko , linux-mm@kvack.org, kernel-team@fb.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 10/19] mm: memcg/slab: deprecate memory.kmem.slabinfo Message-ID: <20200507210553.GE161043@cmpxchg.org> References: <20200422204708.2176080-1-guro@fb.com> <20200422204708.2176080-11-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200422204708.2176080-11-guro@fb.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 22, 2020 at 01:46:59PM -0700, Roman Gushchin wrote: > Deprecate memory.kmem.slabinfo. > > An empty file will be presented if corresponding config options are > enabled. > > The interface is implementation dependent, isn't present in cgroup v2, > and is generally useful only for core mm debugging purposes. In other > words, it doesn't provide any value for the absolute majority of users. > > A drgn-based replacement can be found in tools/cgroup/slabinfo.py . > It does support cgroup v1 and v2, mimics memory.kmem.slabinfo output > and also allows to get any additional information without a need > to recompile the kernel. > > If a drgn-based solution is too slow for a task, a bpf-based tracing > tool can be used, which can easily keep track of all slab allocations > belonging to a memory cgroup. > > Signed-off-by: Roman Gushchin Acked-by: Johannes Weiner