From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795518274; b=oWLhlyNcFHOm/w0VvzvViZNj4KPTEkJniOTPPui5wdRYpc3jFeEmYcevHDwW5ulFPLAL +uBu9ZzL0pMfEuSbS4c9ogA+QrxPbDKPFJkSU13CDYK4eOZSO/BJlpsn+rrNELcHw8X3F MutvXnwngmJPWuZz0GyxSRjop9iXxnJka6GR0h9XIwPTR0iOc/M1UEUTEmlP7tJP2QNjG Kpglxl1aJG2kTZu1ssOnK7lc0Y/aeOCpx/JfVMFsl/Dkm/fUtaDkPbuHPsqFV4siOJ5fv 0Ujo5BUZchGUhd7TpgIozwsbCaTRVXR0e61NapDyBYZSx9TtRJTLfzIFZ1H/U48SQMw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795518274; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: 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=lQlApkoohyY/VrY33Ngm3RLCfSW3NedwtcF2SZsSA7nxDa6iXu7MRM9GvPLaGBSb4IB3 66JKaVInE9+LLHJ5xyRRW+KQc/pqK6wKrE9rjHzLQTWfTByna4s49+j1uhgwLbRV77BVI xsqFnwqSHDTCTQkejkznAZ3FIJ+lo6yowzstyfxNR3jO3s5T0vnh4wwLN2zUJmzLsPq/i h2nXUH9OBBATjV2rSHbBy7YMXTSKoZQQ8Rz4hH3w+E2CEBGJezYGt4iUuNsp6ij83Heqh TiDPcXW+Mm/46Cg1hUDfd0JQJCQu7/a5kerbAL+o1URmWijETNl8WxcE7UREPE59fiw== 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.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 75760606A326 for ; Tue, 24 Nov 2026 11:04:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 75760606A326 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-481-sB4RCCHnNZG24KHF2Ib6pg-1; Tue, 24 Nov 2026 11:04:30 +0000 X-MC-Unique: sB4RCCHnNZG24KHF2Ib6pg-1 X-Mimecast-MFC-AGG-ID: sB4RCCHnNZG24KHF2Ib6pg_1795518269 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-4a7c864000eso2527441f8f.0 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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T2pblkI VcM+Q= X-Received: by 2002:a05:6000:184d:b0:48c:7386:af18 with SMTP id ffacd0b85a97d-4abacfea55cmr29663629f8f.8.1795518268987; 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-kernel@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).