Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1077839rwb; Thu, 18 Aug 2022 18:40:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR7eEVg/py6j3lMGA/cz6szVOTWQ1fQnCz8dg1xbg0idJGGd66EN2Tua+RnuTHVxtIHo3hPc X-Received: by 2002:a63:1726:0:b0:41d:b30:46d4 with SMTP id x38-20020a631726000000b0041d0b3046d4mr4445497pgl.27.1660873205053; Thu, 18 Aug 2022 18:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660873205; cv=none; d=google.com; s=arc-20160816; b=KtFyDIkAvxbc63XC9NdzAcOmM8LbDqg/5FGfHH5IaXQs8A16rMLPCSwtcal6+5kkE1 XOBNAzyBm2zVcdSxsw07LtTI2Oe9Q8p6p18PUz/zkzThMAOfPM+MqLoCYwRbvGC5sGzo 3yFMjQnBFVOnSIt9vwF/dQxWYgmoOnplm5OBhlRg8IIZTilBvrfOUxxmg1NkYxfAUKvX Lz11TKiAKdiNBRYpvg0+PzwI2VGrheDrUuhMtjBIz9kHQeuz74z78TTwWCLSWdDAVGRW tdCTczf6q7A3bTfXVckBOVVpTox5WdK3F0duesC4zYfoIWdT74xo9jr/g0/GPhJDh66k H0Fw== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=f2530xu/ZwghAIZ7eHrD4nhXaPxs0D+iScywNNE7e08=; b=RBtxXfuS8hSIm7yXlIQ+29MAzG2F/0//gg5GHkupV4H2TasVU8dvrwrP+QIvs+pxyV +nA3ioh5RP1veYUVOPy3q8aZG+JJtUNUk8C7Keypf2BXLUKUGR4kmIDW9gDOjPUFX2/Z 8n2EfHnnQO5D1gvfo5IPcGEYABmjAn4mg7mKfr3J5Gcx9ggD81nqYszlW0/KAXGUDhf+ R+Nsi90UlTZ8iqIK9fUN4sWWH/RO0YDgmXZWfteT9mRywF5XNOzXlChrWpRcHzoCnZ0k 7hlcoQByWockY+mkFccmdnbJybG1smrsOMlX1GlGD+nNtvfBoENyhykaETYME9ylx1JA m0gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=c+gYZw5Q; 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 l10-20020a17090ac58a00b001fac1b39457si4141154pjt.163.2022.08.18.18.39.54; Thu, 18 Aug 2022 18:40:05 -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=c+gYZw5Q; 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 S240576AbiHSBiy (ORCPT + 99 others); Thu, 18 Aug 2022 21:38:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236179AbiHSBiw (ORCPT ); Thu, 18 Aug 2022 21:38:52 -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 364B767CBF; Thu, 18 Aug 2022 18:38:51 -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 3D7A33F119; Fri, 19 Aug 2022 01:38:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1660873129; bh=f2530xu/ZwghAIZ7eHrD4nhXaPxs0D+iScywNNE7e08=; h=Message-ID:Date:MIME-Version:To:Cc:References:From:Subject: In-Reply-To:Content-Type; b=c+gYZw5QfyehDzfsz0UhNSYBu0bQWeDcRdidakaJlBub6HaPIU53U/7TYIIe5JO5e 3+Rg8vsY7VSMDX76Qa2YdZqqoGl++ycyoti1oUjI7mUneGYed+MOAaD4UE3gdFDHmz bJCLGVhOTKiPSx1PnEWOirm8eTy+qP4omG3FuMUTYakPKCP1AGp9qgRG2WUDQRXWDy CdaobmW2iS0IsaFIRrlq5wMcKEyfv4hMhMGDye3t9J4CT5YQk5SIFtHyB4IdZXB2wd +JnYoXiJFBZem4qOGWdw07GoR1ulnX4DWHCoIFwKvOiTDbJj8OdFcVZpQegMV1X3sa +V3RtuMCeStXw== Message-ID: Date: Thu, 18 Aug 2022 21:38:46 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US 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> From: Joseph Salisbury Subject: Re: [RFC} Commit 8a99b6833c88 Moves Important Real-time Settings To DebugFS 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 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/