Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1412742rwl; Fri, 24 Mar 2023 10:09:01 -0700 (PDT) X-Google-Smtp-Source: AKy350brmUmez/H/n2p8zTrRaB5jlLetkyZngpY19FCEATT7cHt39izsce8/hIoWHQigTpPape5F X-Received: by 2002:a17:90b:4a47:b0:23b:4bf6:bbee with SMTP id lb7-20020a17090b4a4700b0023b4bf6bbeemr3786994pjb.21.1679677740783; Fri, 24 Mar 2023 10:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679677740; cv=none; d=google.com; s=arc-20160816; b=dFrbBMwiP4DFVVejwS3rXf7L3IJWoafFJe3E3qkzWqj6ojdnlSzV7LRI3YLj4HqfgU fPbIM2W730SqA9uv59C34CsvxjqPCZ9NH8Ka53zU62mMUlGCn9DhwiF+R+PEFNaVDK0D XA0soZkz/Uyb221Emduim1daPqpXMmt0tgYj36ktA1Zz+DN4CSou19037x7psChajG0M nlSFehZDEYsJCTKtgrohyPiG/GTiMhxjhTvdyjRddtCZHQ7x+J8O9Q4efXpP5UUfjJkK wcP/x6VuHEUU426R7iPDgsj+8Iqxitj/xgz0HGqK7KTNlm4djomUZMa/AEgKkBRqvDDM gXjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Rh1UfmxxKDBnBiBBihPDD/nNvzAk0QzNPm35pjGVCho=; b=G04CSjnCjtyPA7+YPlEgqBOodf237KJPigadAXYtqC+5RisutyXtd3aGTrWuVvpf45 USZ5Wxstt4lFj0RzaYtbb8oJ44V07qxHbNOgmQXayo4RHUasQ7IyhzuRA8xcuKQDFnZ8 eZuW70evebQLeu9MeubKT7KooWc7Tdqy5EaaPGmdZNI5389vX127vzP1DtiMqDPF55DV moK8/fqxx4mT5jhAw8dq9iurp4jpJINjf+E3sYTmFz6mQaU+NBFCW6/txTb1xqSUJtm2 nItIq5QT2RDWoHogW22yfBXgFJJqwmk1DzAsB7gLUma6wBw57p7GalMgxAOI58mKSWMm hVng== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jb11-20020a170903258b00b001a216572122si2228333plb.285.2023.03.24.10.08.44; Fri, 24 Mar 2023 10:09:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231923AbjCXRHI (ORCPT + 99 others); Fri, 24 Mar 2023 13:07:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231346AbjCXRHH (ORCPT ); Fri, 24 Mar 2023 13:07:07 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9C7A18B2C; Fri, 24 Mar 2023 10:07:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6E8E7B822D8; Fri, 24 Mar 2023 17:07:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A11E8C433EF; Fri, 24 Mar 2023 17:07:01 +0000 (UTC) Date: Fri, 24 Mar 2023 13:06:59 -0400 From: Steven Rostedt To: Beau Belgrave Cc: Vlastimil Babka , "Masami Hiramatsu (Google)" , mathieu.desnoyers@efficios.com, dcook@linux.microsoft.com, alanau@linux.microsoft.com, brauner@kernel.org, akpm@linux-foundation.org, ebiederm@xmission.com, keescook@chromium.org, tglx@linutronix.de, linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v8 11/11] tracing/user_events: Limit global user_event count Message-ID: <20230324130659.587ecfd2@gandalf.local.home> In-Reply-To: <20230324164353.GA1790@kbox> References: <20230221211143.574-1-beaub@linux.microsoft.com> <20230221211143.574-12-beaub@linux.microsoft.com> <20230324081824.b917c2944da217e5239e1223@kernel.org> <20230324164353.GA1790@kbox> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Fri, 24 Mar 2023 09:43:53 -0700 Beau Belgrave wrote: > > It was actually merged in 5.8. So sysctl should be sufficient with that. > > But maybe it's weird to start adding sysctls, when the rest of tracing > > tunables is AFAIK under /sys/kernel/tracing/ ? > > > > During the TraceFS meetings Steven runs I was asked to add a boot > parameter and sysctl for user_events to limit the max. > > To me, it seems when user_events moves toward namespace awareness > sysctl might be easier to use from within a namespace to turn knobs. > > Happy to change to whatever, but I want to see Steven and Masami agree > on the approach before doing so. > > Steven, do you agree with Masami to move to just sysctl? We do have some tracing related sysctls already: # cd /proc/sys/kernel # ls *trace* ftrace_dump_on_oops oops_all_cpu_backtrace traceoff_on_warning ftrace_enabled stack_tracer_enabled tracepoint_printk Although I would love to deprecated ftrace_enable as that now has a control in tracefs, but it's not unprecedented to have tracing tunables as sysctl. And if we get cmdline boot parameters for free from sysctls then all the better. -- Steve