From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795518273; b=qqkahaybAUewptz8tTTE80aLCskglqO/UKLKR4X98HWNIOgl2ly2gHxkxGdAuCXLJ1DW eOdYm1hHc+u5d+vbVOqH8VrBGshH42eyKL5aPuyZEJciScAAxHPTeuziXQ6zrdL+c/BtS 3x1RbkF4wEQDoGjcL/Cff4I/Gnj6+ftD7TOWFTFWleXzvnyZCuiL/2vGkx1qwCDNw++4a V81zSH1e4cyaT07hxCDex5FvrkqP9zm7XfZRl+74Fi2o1NqeaBsagYK5BJph6xsIAYmUz 33jeFDJPU0UfcXFBRTrpFm7GfDgrNtwYvrAXYVBFMSZ2d5/RnSgi+yhMn31QYGI9qpQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795518273; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=TTlOMlop88MYRf1Y2eOatTSKCEHNu2LBs6PIdGIA3ts=; b=SvBc0M3GpT7THaqezU1N2sJxmDW1g+uxkyKfIJbDuBvIlL0EVm/F3bcJOCdgfka10Qoo iN4wQdAS/UaKDV8o5pvnPxAsXu8qNjVYiqTwgUqBoJP81zRm0mXDFObJ193c4FBVMyN4p qECQlrfSAhZLZVSUKszDtY8vDsOK6pbsOF1GSKKWUhiBzvQ60Vsq6AmZSZirZsji1bGSh +F62u26kHBBAlMKnts+Uh0/gU5HquU26edgvStKAbx5HhCO5T5awOWwgs3xBpSNw2YSFv rIkf5VJQqNzDMZ4AW3z8FxTqOAbactbUoeqbC40hti7X+ZJsMAVpnDDOf54bHaiHnSg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Gx0jwKic; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=cI8cddPG; arc=none smtp.remote-ip=170.10.133.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3620E606A321 for ; Tue, 24 Nov 2026 11:04:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3620E606A321 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Gx0jwKic; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=cI8cddPG DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795518272; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TTlOMlop88MYRf1Y2eOatTSKCEHNu2LBs6PIdGIA3ts=; b=Gx0jwKicO6PYN0KjC0d1hd5uBlP1rWdYMXJMVgWllSqFONNKSmOaPMhq4XAJ8o/lVwllkb K3iiKZ+DB1KLOpGclifctS0oNLhHl4Rg0FACq9N7FMNFyI1W0QSgwFLdP0pD64d/jYHsB8 CYitJQprsGT+V5d9qDPt//h4zwf2AnE= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-378-xiCWFx86MpWxXpT64bMi1w-1; Tue, 24 Nov 2026 11:04:30 +0000 X-MC-Unique: xiCWFx86MpWxXpT64bMi1w-1 X-Mimecast-MFC-AGG-ID: xiCWFx86MpWxXpT64bMi1w_1795518269 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-4a799d93bc3so2073338f8f.1 for ; Tue, 24 Nov 2026 03:04:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1795518269; x=1796123069; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=TTlOMlop88MYRf1Y2eOatTSKCEHNu2LBs6PIdGIA3ts=; b=cI8cddPGERKUW1Hg1Xcj05XFux6gB6hsbwlfhHILhMVjH9xrBGWddA61SymLnf3vvk C0tuSKGgbr2dUZIk9Wdpm3CGFt0IFCzHLVS7tkSm8XJz094j24tIY0OEM8H16oIibybs L6S6/HrZ7T+MuXhJ4d1Enx5nvErwS5A+8ZqQVnHiIz0urEhlteHDoVWhk52WZq4mHYdV GTiRFrZmM13sdHQTtcXes5r11rSIVhpxzxG9bY9jXmNft1UFUV2A6zR6lcQaOW1thk1t LLtRL0UMZ/LMPh7F9fE4E3Ou7b8MdKOT/vQ38s4yYnTSNJ8QUmZHPkzC56kf1ber0Vqn EP4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795518269; x=1796123069; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=TTlOMlop88MYRf1Y2eOatTSKCEHNu2LBs6PIdGIA3ts=; b=TWrNKGA42118XSM4uI/YpBR/wJXBbUKZZ12cHgVSbndmETfwN3FG7SwNOi+OtR9lLV A/dMaIdDEquIPEfItV3pJ8Ks5sxNt3qkYAXnsZONuvHLuGKLa1iGnLXsxedyZI+oyzL3 BThBQQrQ774xBO/geNEZ+ORxhN+6zupwExifmntvO6yTlzPkY5BXfVUKQqmDQXQXtIrU 26ff27o4ASaRamKmb7nERR8Jb/ExGLjZ/FyP1VRv+7DUBuPIHUr7JfKYyLHRL5yM0Ic/ Z+EI4k9s97Gz+pM2jivZzK5PR/XPepsk1O5KtY4wkIw7fUQpevxnk8IIw0Pni/V0Pnc4 cJ0A== X-Forwarded-Encrypted: i=1; AL+hErEZ4ZMxDZyejiq9JrBxaKEyZubXoItpwrk+DU0Kitar4Hgwv2MWYexhhsOXpFLt/Xo4hg2Hc2O7yxA=@vger.kernel.org X-Gm-Message-State: APuU4Z/eqnJkIOOzbf7xuU6kvxyEQCF9zFyBuB9XmPJvL4j4blGkUoD1 sg3i37S5jTbDf+PfQKdhJ8NhnCftBmfyg/YoNqLeU/xEIuPvQAD2HXbIXxPfakYYZBIpNBIeSWB ocTJDBbhfTFCkA2VBG6a9gUSThSPr8zVirPx7160h0FNq7wexMH1vzJazVrrhYA== X-Gm-Gg: AZFdTZfHlLyXb4gU8ha0HqWFnAG/+5HSKrhdYwSyUoGVfsj1hSbwHEDcHSsVGwL5gyA 9J6775yntw51y8b4NlwbCZnVfjogvuphDcF7b97PQEA7Q3Jy4Et8EVv9335i6ndGvhyJ9AW+u3r 7gs2xz+6ZgxPdrQnb4eahGATY1SuGQOrWikHxaHGy5C5H2nz33GIM4RBeJBD+ACfbxs3d/XgiRU zeKx+iGjAmroU2hIdzbRUebDC75PwCmQpB6KZ1mehJ37thnEX3NvR1+TtRlHtB0Vpp4OeUG4igD /NePlDvUAOkgADWUXCAzDKFHiCqV9hGLZxrKP/XA34BCgdt+IzocyZw80pCsBzpql0qVF0yDlfz 4scnXMQUnHP++HCfgceAhZWEm2C6RblXismbWgJxyFMD6cWE8eGa0QrDLhGlttGIBMk3Xba0z8O EPSnI= X-Received: by 2002:a05:6000:184d:b0:48c:7386:af18 with SMTP id ffacd0b85a97d-4abacfea55cmr29663609f8f.8.1795518268959; Tue, 24 Nov 2026 03:04:28 -0800 (PST) X-Received: by 2002:a05:6000:184d:b0:48c:7386:af18 with SMTP id ffacd0b85a97d-4abacfea55cmr29663561f8f.8.1795518268563; Tue, 24 Nov 2026 03:04:28 -0800 (PST) Received: from jlelli-thinkpadt14gen4.remote.csb ([151.29.158.90]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4b34e9c3ffesm10976795f8f.19.2026.11.24.03.04.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 03:04:27 -0800 (PST) Date: Tue, 24 Nov 2026 12:04:24 +0100 From: Juri Lelli To: Sebastian Andrzej Siewior Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, rcu@vger.kernel.org, linux-doc@vger.kernel.org, Jonathan Corbet , Shuah Khan , Randy Dunlap , Ingo Molnar , Peter Zijlstra , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , luca abeni , Yuri Andriaccio , Yuri Andriaccio , "Paul E. McKenney" , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Uladzislau Rezki , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Davidlohr Bueso , Tejun Heo , Johannes Weiner , Michal =?iso-8859-1?Q?Koutn=FD?= , Qais Yousef , John Ogness Subject: Re: [PATCH v4 2/6] sched: Move DL's admission control to sysfs Message-ID: References: <20261123-sched_dl-v4-0-d523e4d960d3@linutronix.de> <20261123-sched_dl-v4-2-d523e4d960d3@linutronix.de> <20261124075332.nZysJRfS@linutronix.de> <20261124103507.4u5Sz_bU@linutronix.de> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261124103507.4u5Sz_bU@linutronix.de> On 24/11/26 11:35, Sebastian Andrzej Siewior wrote: > On 2026-11-24 10:57:54 [+0100], Juri Lelli wrote: ... > > > I assumed you use the proc interface because you don't know better. The > > > warning makes you aware that the throttling knobs and DL knobs moved to > > > sysfs. The DL bits are mirror to the sysfs interface in case you ignore > > > the warning and keep using proc. > > > If you move to using sysfs then everything is fine. From here, going > > > back to proc looks odd. > > > > Odd indeed, but I wondered if it might happen that a sysadmin configures > > things properly using the new interface and some time later, say, an old > > application that hasn't switched yet to the new interface resets/tweaks > > using the old interface? > > Therefore I wanted to remove the old interface. The legitime users would > want to change the default DL attributes. I am more afraid of those that > intend to disable RT throttling and are failing to do so. Agreed, that's the group to worry about, but they never touch sysfs, so an error after sysfs was used wouldn't reach them; the warning and the docs do. > We could also make the proc interface return -EINVAL on read/ write once > the sysfs was used. What about it? Hummm, I'm not convinced. Whether old tools work would then depend on whether somebody wrote to sysfs since boot, which isn't visible anywhere: LTP's proc_sched_rt01 would fail again, just only sometimes? Earlier you actually offered: > I could look into making the sysfs values appear in proc, too. This might be simpler. For !RT_GROUP_SCHED, procfs could become a view of the sysfs_dl_* state, with no second copy. sysctl_sched_rt_* would only be needed for RT_GROUP_SCHED (which is marked BROKEN anyway, and what we end up with depends on the HCBS discussion).