Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1700225rwb; Fri, 19 Aug 2022 08:02:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR6yoLSKeFH6Jw7Ia5wuG44ovavwwrYBVb+oXw2NAeOCspYWDiH6EgLmG8QSzA84nT7Wej7q X-Received: by 2002:a05:6402:4407:b0:43f:68b8:3358 with SMTP id y7-20020a056402440700b0043f68b83358mr6401550eda.215.1660921376142; Fri, 19 Aug 2022 08:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660921376; cv=none; d=google.com; s=arc-20160816; b=ZwMnDsq6tcCH6UtWEzZu7APdKp/hd5iABi7C5/dARW5iuo4kwLjjKzOtZ7sW0luu/B lAt74PM0IeT8WooEcMHWY24YM1WTxa7Q9ZmRo9/crSSzpvCSEHUeN7RnhZnp1IH8Op+x MbVFijZn+u1fxnah1lB+r5FCGjQ2U9ZLv5l+kv7AlFWSfPxn0USQEoywbiX5AXWnLG1Y ePPnWoS2o153yRYjAKTfKTik2QiYd9tMNQFm9nbtwM8dWVnxowIN8YshK971sZRM1SZ0 7o4eChPg6t3e7cZNfEJiYUt2BcATRkAe6c24+/fVcmk1amz/JIJF9ol37SrEK3h9YquS J1HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=jX/B2ux5/uBy+wzYzZZpmZkCJnX1pejB4rk9LuMf2Co=; b=zxOazUl+Cm/XTVPoQltma7qqQEIbsQ0FzTk9KHJXZHTYmHlrhKeilKnrd1XU+QQprH EP+RCP+oM2RgS3EDsUAQQX+e+fmmclavmgRfNf7Xc6kaZYTcCxIASNLJA7iojRh6B+K0 sz36zAXrtg7IKXpyF9CvG3lCKPNPC9M2qhiqowUrm+P2Uc1pX8KAcc6daB+jCFB3gkg5 SjsstWZDsebMXP/MeDdtnht/pdl47Cw7J3uLqDEwR/uNTsERfS5mNZghgMwMjnBl8i5r U0+auux6db7r+Ezyc3lOJu7ud/4/aPecLayDttje45PBUEUVReUunlgnl/wYLo21BhrJ MNXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=eXTYlHcx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a056402518900b0043dde72da34si3879352edd.68.2022.08.19.08.02.28; Fri, 19 Aug 2022 08:02:56 -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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=eXTYlHcx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349461AbiHSO2y (ORCPT + 99 others); Fri, 19 Aug 2022 10:28:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231433AbiHSO2u (ORCPT ); Fri, 19 Aug 2022 10:28:50 -0400 Received: from smtp-relay-canonical-0.canonical.com (smtp-relay-canonical-0.canonical.com [185.125.188.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5BB326123; Fri, 19 Aug 2022 07:28:48 -0700 (PDT) Received: from [10.172.66.188] (1.general.jsalisbury.us.vpn [10.172.66.188]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id C7D503F131; Fri, 19 Aug 2022 14:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1660919326; bh=jX/B2ux5/uBy+wzYzZZpmZkCJnX1pejB4rk9LuMf2Co=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=eXTYlHcxYaMv7YYKKK/pWWQxzFlg5AS34Q/Zu+mEmLwKItAuRGJWx00JuLbmQaGRU Y5Y2VpYws7Do9CdL8a7ZMfpSgK+gDlOlklk5Pz7aESNERyZydDDPn0zJ0WUgfaW+xP ombpwvBIeXnfslvpo1dkcVl6DeQ2oS8YDrW9ggm9d10C05CQR1LueAdCv/DSGkxoXe 0dpnU0KV26WVyO6egH1TYuakhn+U4p5GSTecw49PGEFSDHooqRXeVZXC1+A+9Sw8s6 3+JKByzsf/Iu+K1QBfMA+gn77gFvxuGRDFL0F88dQGZ+SDXLM6gidLZooMyhdQJ+y7 wF8GzhyO8xymA== Message-ID: Date: Fri, 19 Aug 2022 10:28:44 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [RFC} Commit 8a99b6833c88 Moves Important Real-time Settings To DebugFS Content-Language: en-US From: Joseph Salisbury To: Peter Zijlstra Cc: linux-rt-users@vger.kernel.org, williams@redhat.com, bigeasy@linutronix.de, valentin.schneider@arm.com, linux-kernel@vger.kernel.org, Marcelo Cerri References: <9e6a7216-9cb9-cba4-f150-1a0eaf56353c@canonical.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 8/18/22 21:38, Joseph Salisbury wrote: > > > On 8/18/22 16:31, Peter Zijlstra wrote: >> On Thu, Aug 18, 2022 at 03:53:28PM -0400, Joseph Salisbury wrote: >>> Hello, >>> >>> Some Ubuntu users are using the tuned package with a 5.15.x based >>> real-time >>> kernel.  Tuned adjusts various sysctl options based on a specified >>> profile. >>> This userspace package has stopped working > 5.13 due to the following >>> commit: >>> >>> 8a99b6833c88 "(sched: Move SCHED_DEBUG sysctl to debugfs)" >>> >>> This commit moved some important real-time sysctl knobs to debugfs in >>> 5.13-rc1.  It also appears some of the sysctl options were not moved, >>> sched_min_granularity_ns, for example. >>> >>> I was hoping to get some feedback on how to approach this. Would >>> upstream >>> real-time consider accepting a patch to the 5.15 real-time patch set >>> that >>> reverts this commit?  Or a new patch that adds the sysctl settings >>> back? >>> Any other ideas or feedback would be appreciated! >> None of those knobs were available when SCHED_DEBUG=n, so relying on >> them is your error to begin with. > We have had SCHED_DEBUG=y while this kernel is in beta, so you are > correct.  I need to investigate a different approach. >> >> Secondly, real-time? Which if those values affects anything in >> SCHED_FIFO/RR/DEADLINE ? > I am in the process of understanding how tuned[0] works. Many users > have reported success using tuned.  One use case for tuned is to > assign isolated cores to real-time processes and then move managed > IRQs out of these isolated cores.  This can be done easily with tuned > (I will research if there are other options to suggest). However, > tuned is trying to set the affected values when enabling a profile, > such as the real-time profile (Tuned offers many profiles based on a > workload type). > > I will investigate further to answer your point of what in > SCHED_FIFO/RR/DEADLINE those values affect.  It could be those values > are not needed at all. The dependency on them might be left over from > some need that no longer exists. > > Thank you again for the feedback! > > [0] https://tuned-project.org/ > I also see that the github repo[0] is at version 2.19-rc1, and the version being testing is 2.15.  Many of the issues we see may already be resolved. I will find out how I can participate in the tuned community.  At a minimum, I can start with testing and bug fixes. Thanks again for your feedback, Peter.  And sorry for the noise. Thanks, Joe [0] https://github.com/redhat-performance/tuned