Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5724085ybc; Wed, 27 Nov 2019 08:28:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzX+H1fjgufTvwWhxiMngUeGY80hu4ooePAnJ8gBks86p4mdX9W+kiIdvfUVC/M3d22Q0XD X-Received: by 2002:aa7:cb53:: with SMTP id w19mr33134003edt.50.1574872102875; Wed, 27 Nov 2019 08:28:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574872102; cv=none; d=google.com; s=arc-20160816; b=uH7ThUiWv9v899Z2KPl4jwKn86LWmHFTaxd5KB4+R6wDQAL806oMnM28zUdGVKtmaN 9Aw39Avkg40b5ZwLuqc3Pbl4yvrMIhuLK6ojyPdvEzinQdSc+43+zrjLWh/VRoZ2rT7M TDr01PWzBorq/sseMaOh2wR4uibcU1r8EUgBBfkDel9KjP4BG7LjReW1B2aFMcPZoMLo Kh7n3alT8GkAzeghwjIrGdR5zYtd5WAQmQPeiv518HVEhBs/OS2oFBijGYv0kjGpeM6q dz/gSfxeBHdZx8jeArNdXUFIdd05a594ln0a9hzbDJGTm3PIUcmeCsxrqyxe4rN75gF6 bJog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vnpQ1IWgNHmtlkWcvo5sOfYKcJiRkrf1DJyC0wdyg/A=; b=VCkmhs+6fRTWn/Eyt5JHQW7N0GnvZIK5wK4fpspt9e4IopQdXhmo0NruBsSvr9RK0B ajfgUKwRl91ADsC2Tqggvfho7bqlkEcCqgnkH0xKKPDndkcV+M0OQtI9FDq1bE7eZf47 3yhXyVytaFcqTkoBJep9PRv5dDefyC3GNLVP0yqB1FoQ6Pnq5lH6wdfhBKIan0DFWnJQ 0mjI6+cDVUnIpczOOGf1yDQn63LHbW0cl/EV2i1fbA9s69YRsDJwCk0Rh1XOUj+d8Nhp KH5+FzxnShXPehjUCUvS/1kcJw0ll8GBqX49o16aOUsJcDnygHY/8B45X6wSycfiYdXW 5eVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15si10657794edb.293.2019.11.27.08.27.57; Wed, 27 Nov 2019 08:28:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726970AbfK0QYF (ORCPT + 99 others); Wed, 27 Nov 2019 11:24:05 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54196 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726514AbfK0QYF (ORCPT ); Wed, 27 Nov 2019 11:24:05 -0500 Received: by mail-wm1-f65.google.com with SMTP id u18so7730971wmc.3 for ; Wed, 27 Nov 2019 08:24:03 -0800 (PST) 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:user-agent; bh=vnpQ1IWgNHmtlkWcvo5sOfYKcJiRkrf1DJyC0wdyg/A=; b=RcwyNTIgz9nBqmxExLTkMLYyM15f8K5uTuf90wuXjcN5Pg+znUTGf3viUxLA2bTHG+ 87XHZ0HLBY8ghRog+j+4MUhs9ivmuU/4aBJl3TNp7v862gIMhkJ8H3pD2fpSKIZ34jUb cCUtX8tX9RhZPUgLOcLSXdBnmJ2lbe3Yd2Qtej7L8ZEBIKwD5zhBEfc1oDXuCc8xaM25 COKQ6NN8JurLAv0YahAxI5C5mSkfZJOU/wwPHbT6zXUenoQayTj0e3h5GKwnwOnRn3mR k51nPTSWvEHP8CtEpcUD5kQkG9JbZ1gYMEWv6gGadCUHrABMbwVH3RniD7GMe443aTRH 68sg== X-Gm-Message-State: APjAAAWKV9KIrOJR/r/n1Hd6toyYMcaGD6sIqyaFdcSuhbZA1rB6rx2+ H4DXLF525F1P5ALVehmgsc5vlmL0 X-Received: by 2002:a7b:c44c:: with SMTP id l12mr4938300wmi.71.1574871842910; Wed, 27 Nov 2019 08:24:02 -0800 (PST) Received: from localhost (prg-ext-pat.suse.com. [213.151.95.130]) by smtp.gmail.com with ESMTPSA id a24sm5209426wmb.29.2019.11.27.08.24.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2019 08:24:01 -0800 (PST) Date: Wed, 27 Nov 2019 17:24:00 +0100 From: Michal Hocko To: Christopher Lameter Cc: LKML , linux-mm@kvack.org Subject: Re: SLUB: purpose of sysfs events on cache creation/removal Message-ID: <20191127162400.GT20912@dhcp22.suse.cz> References: <20191126121901.GE20912@dhcp22.suse.cz> <20191126165420.GL20912@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 27-11-19 15:40:19, Cristopher Lameter wrote: > On Tue, 26 Nov 2019, Michal Hocko wrote: > > > > I have no idea about what this is. > > > > It seems to be there since the initial merge. I suspect this is just > > following a generic sysfs rule that each file has to provide those > > events? > > I have never heard of anyone using this. > > > > There have been many people who > > > reworked the sysfs support and this has been the cause for a lot of > > > breakage over the years. > > > > Remember any specifics? > > The sequencing of setup / teardown of sysfs entries has frequently been > a problem and that caused numerous issues with slab initialization as well > as kmem cache creation. Initially kmalloc DMA caches were created on > demand which caused some issues. Then there was the back and forth with > cache aliasing during kmem_cache_create() that caused another set of > instabilities. > > > I am mostly interested in potential users. In other words I am thinking > > to suppress those events. There is already ke knob to control existence > > of memcg caches but I do not see anything like this for root caches. > > > > I am not aware of any users but the deployments of Linux are so diverse > these days that I am not sure that there are no users. Would you mind a patch that would add a kernel command line parameter that would work like memcg_sysfs_enabled? The default for the config would be on. Or it would be preferrable to simply drop only events? -- Michal Hocko SUSE Labs