Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4436132ybc; Tue, 26 Nov 2019 08:56:02 -0800 (PST) X-Google-Smtp-Source: APXvYqy6nR1yRvajWjJwqLt3C3h572GJ4uS6tXDhOyrS8uMEPCFdmpICwuKWYBsDuJWFSgBrSyDj X-Received: by 2002:a50:fb0b:: with SMTP id d11mr3233702edq.252.1574787362436; Tue, 26 Nov 2019 08:56:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574787362; cv=none; d=google.com; s=arc-20160816; b=dTPKnyvxy9zKJ5UxcYtWkm9YDkBYqcwiGlIiQ8ErUDTmfr8gMXrqfyr4vuf7svei8M +pcw22IqbjLU2cYZ1VPDVA+2ieev+7nQ/6e+sRsGdkydudcZshTw5U8JiB2sZGMPrlK2 Lax1C8a91UVmltbXPTXT7ACj3Z21bbzklRhbYkPOGAIHNzKwLiAX9EacaMW/Muvl8Jwp RsCSyW41yokurxM/YlAYleDb2FRUcOk85Wj5itr/MgYryslJ6d0H6CXxHEU8UqthYeS7 6DAFZFvXE2yyQT005qb38MeblCcJF6xzHymlsQdquz+jCDPKT8rzeFsbuFx08AxKQyCa JVVQ== 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=jTx9XvAoitX5ElOHyXfUJ5O+w+mtZmpTIHTRwny9Xek=; b=p4ZVgoiEhQCPx+vVEfqvsFrWHgiCIq/iOFRrDDJRHrhNA/d/W7WKbPhX425hyQNNRZ m48wOtUgjFVRBQlUF5R6o4hZvyl9QIvxukfv1c37SKvDhUBrF827GKXeonUW9i+4ghKj VbID8tjG6J8gMMyDXSiUwenPyEgGJAuZ7WkV5dnq42aAKj0TWLh8jqZ3/qQDlLaZefWw iWP2RmofwNCz2KuahcVx7R4F3eoV7sVzK5mamxF9Ld24lk+wxydjW+9gBvwVzRlcmSi1 wZL+PaUWL6PHhh+WVNx3ozjNt00+A0Y9CT8MR3IaE7pwhiFIMKrHwYwI6btevCfZYvOp iFvQ== 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 p57si7754975edc.295.2019.11.26.08.55.38; Tue, 26 Nov 2019 08:56:02 -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 S1728434AbfKZQya (ORCPT + 99 others); Tue, 26 Nov 2019 11:54:30 -0500 Received: from mail-wm1-f41.google.com ([209.85.128.41]:39270 "EHLO mail-wm1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727756AbfKZQya (ORCPT ); Tue, 26 Nov 2019 11:54:30 -0500 Received: by mail-wm1-f41.google.com with SMTP id t26so4158000wmi.4 for ; Tue, 26 Nov 2019 08:54:28 -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=jTx9XvAoitX5ElOHyXfUJ5O+w+mtZmpTIHTRwny9Xek=; b=hpyqvE9VeMaWI/eZXjmt+RGFOApuV/H9pWeb7ytb3XEgK/upMTknPdqtDJZ+QrruaF oj4dl5xb8mUb0PGQ3pn4NehC2HtcZjtAvX+ZGXe7qiNpN5Y+gtlPjFdrTXn0A3Nl0GLv nXwHN7hd+fje3Jw2Tiia2BkL+u6ddqshMPNpyJ+1h7JfwFlPXEEAT1TUu7l/x+zYB8Wz zYxw9m5dgtKDGXk8QFqcW4SuZT3dyD8F5rlbFJXqqnoc/TUiwksCnQJuST0she6qq7Jg QoPZVpw/xzIeWDx5bJZp1DcMfMtO75WeS9I3fHWVUwupzxXDbfU32QhYqNiE+kNztg4S h3XQ== X-Gm-Message-State: APjAAAWJNIigUJfLuSCdYSFiW3fJ0h5YdU0cpdBbR/LxbmlTjK0KEp+/ XbatrEq2s0kx4gik2AC1NFwBmAZB X-Received: by 2002:a1c:a906:: with SMTP id s6mr5400635wme.125.1574787267780; Tue, 26 Nov 2019 08:54:27 -0800 (PST) Received: from localhost (ip-37-188-250-171.eurotel.cz. [37.188.250.171]) by smtp.gmail.com with ESMTPSA id b14sm3679664wmj.18.2019.11.26.08.54.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 08:54:26 -0800 (PST) Date: Tue, 26 Nov 2019 17:54:20 +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: <20191126165420.GL20912@dhcp22.suse.cz> References: <20191126121901.GE20912@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 Tue 26-11-19 16:32:56, Cristopher Lameter wrote: > On Tue, 26 Nov 2019, Michal Hocko wrote: > > > Hi, > > I have just learnt about KOBJ_{ADD,REMOVE} sysfs events triggered on > > kmem cache creation/removal when SLUB is configured. This functionality > > goes all the way down to initial SLUB merge. I do not see any references > > in the Documentation explaining what those events are used for and > > whether there are any real users. > > > > Could you shed some more light into this? > > 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? > 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? 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. -- Michal Hocko SUSE Labs