Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD093C432C0 for ; Wed, 27 Nov 2019 16:24:05 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 993AC206E0 for ; Wed, 27 Nov 2019 16:24:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 993AC206E0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id EA5B86B04BC; Wed, 27 Nov 2019 11:24:04 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E55B76B04BE; Wed, 27 Nov 2019 11:24:04 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D94076B04BF; Wed, 27 Nov 2019 11:24:04 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0091.hostedemail.com [216.40.44.91]) by kanga.kvack.org (Postfix) with ESMTP id C3CF06B04BC for ; Wed, 27 Nov 2019 11:24:04 -0500 (EST) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with SMTP id 894D9500F for ; Wed, 27 Nov 2019 16:24:04 +0000 (UTC) X-FDA: 76202579208.09.slope76_7ad5d10aeba03 X-HE-Tag: slope76_7ad5d10aeba03 X-Filterd-Recvd-Size: 3942 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by imf05.hostedemail.com (Postfix) with ESMTP for ; Wed, 27 Nov 2019 16:24:03 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id p17so2344435wma.1 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=XXWG9DWj8E2zOJJKEVaLo24yg14lDkKfwnljZUDWlf54fJBCIvOgcvvS3wIymNu52B RTo00mYoOAHgUC1znvWOe8fTguJIJTaLXaouvft8zi+a4q8Wx4RtG8+DwQYGMvhG8qZY DyfZKV5xywRQKXU4ro+pKLzi6BKPMAZ6VnCNCAH+DI+n/Q5tyKFKckv7nhyJ/q8VYGrk f9rm7XQcEfrPcMN+9RQeSauzvWpXpJ2LeqKDKjUmlRi41wR4D1877qxjQSAOXCyWPWmv ufJZVD1V+a7T/og67i3pfHifUeBSloD393sX9r+FJGy9dKrTHvcJ+Faour7ygzVui0bo LDzg== X-Gm-Message-State: APjAAAXZOsxqi9kFpb9Hjn71eC0l9/UYoDcDpI0J9OKUeX/T1cDDtBm+ mWo6okn1JWZ3uIQSX9VjEv4= X-Google-Smtp-Source: APXvYqw6koBVsu5yFcWL1pdK7n5WvXeFkttdBC8iFePiyXMzO4FE1ke8OMzRk3dC4MmzI/7Nbxm8HA== 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) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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