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=1795514282; b=G2KwVLxNHbPBeu54eNaueTAFfPzdDk5Hqf/h89AdM71+w8FvhW9lNrkqXwzPMeigdsRS QnVCXG58CtNq5FmNoNQZH+aCkeqaLni/mSx8B3Gx0Zg+nYZRON7qV3FD5KcuYCbsr3rgZ 5uvyZsaAW5j0lBCrOFezXFMA6xjqDqQwCn3QjLBBzLSkYDuQjIYfF9UMdXHLOM3rq42Pb TaN20L/didmhgJxivWHFXOik1CLKHMPgpGbLgyHQNMUwcQP0jWHxvayTjbqUawkxWGWB6 5schjcb8VnuYzkSqXpVU1LqK377q0oxrrqS6u7GKdpfnkAXKcEcOuKZk1ugTnGWi/uA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795514282; 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=O7+zzAT/4xNi4DFU6pAU7iVms8gCVVFUE+GIPCzfB70=; b=Xq/s79xI7Rz9NA5n9MJqJPKU0otbmURgK0/9XC6X+EnlIPw9Il1qA1DEHS8y82copBJN ZKFi3NzS88nCYSnMgEUc5edGsgIAM2EkA7xaRKPEyBQd7e1ROgyKS768s9Hgil2mRIZWQ ezglMMTQUwTqi3Qwj2qEv4xZmr0E5q7m5T2AwoIXCh4rt0hagipGOEDqA5VkBWgAVmccV wFcgWHaXNpg/bHbiomys8S0fkyMLXJGyA8x0xJBzbmjZMpUGdh0U9xZB87RO55asLWGPw U2bMyRfHJJyEXfp5KnlCoSQO1/hHz7JKZJf8E6F11Uumhmd36iwDw8jMJVuCgZjlMVQ== 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=MxPWA0Q9; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=pnfssEWE; 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 2525F606A32C for ; Tue, 24 Nov 2026 09:58:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2525F606A32C 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=MxPWA0Q9; dkim=pass (2048-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=pnfssEWE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795514281; 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=O7+zzAT/4xNi4DFU6pAU7iVms8gCVVFUE+GIPCzfB70=; b=MxPWA0Q9SwYqIAPgyCGt4m+ljZ/BXaFkaHz8o8jxhh+kIlIqPi5A0P8fbx9AIy8O8i+ru0 d34N45aOy5bVYjKR1hNCQy5/YPRWYuANATyhfBWndyzQ2A71ClqHswYMiUOxZxs3rxEEsg XvNGv918LSaR8kM1t3MSZINlNPuBspc= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-42-5FqFdW21Nq22fAC8ylHLqg-1; Tue, 24 Nov 2026 09:57:59 +0000 X-MC-Unique: 5FqFdW21Nq22fAC8ylHLqg-1 X-Mimecast-MFC-AGG-ID: 5FqFdW21Nq22fAC8ylHLqg_1795514278 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-48e0fc747a7so2927417f8f.1 for ; Tue, 24 Nov 2026 01:57:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1795514278; x=1796119078; 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=O7+zzAT/4xNi4DFU6pAU7iVms8gCVVFUE+GIPCzfB70=; b=pnfssEWEpZCgwzgeD54MxECzqUXeEltWQ5WLO9R/ICS3R3mTXVEtiximiqpXXjjdEq DRGo4AdE/KKU6TWcL5d1GzuWIILUOZkPUVvD9WwtSFWU9QwSAtpTDubLU8xNs9oAf4Gh 4GEm3+U/sl4DFhkT9Ylh8mkMkWORyxl8043aPCyNjp3pE+12zS2OVIDorWx6awltCJmL Y+E8ELAna8eF1otXS0WeYkWbi4UNjhVvrxo5Z6CANDqhNmXOoKhHmjb9Y/5mzLMfDSto Ey6f5iCp565xW7Ew+adKSGo9p0vdfJz3ZfPZL0ZF1RQCDD7kYTon66YLHAqkO8LxCBZ7 Mfug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795514278; x=1796119078; 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=O7+zzAT/4xNi4DFU6pAU7iVms8gCVVFUE+GIPCzfB70=; b=AqD4tU5pfDqukbC9DqRuxlRQTXI4theCP2ss7fNe9olU7d3LNcKQyONYpXGSOyvhNn LFFiLw+YJq6eAtI+aSDcL718LUrphCmViDy7K49JrV0o86DmyFsGlC8AbWcEDK5k0cxG D07DgrSpxDXIskgDY24WBtvriwYGDgMEGQqa0d23ch8iRJJSHBBit6Y+h0eXZ516wBsS MENAT7I35KpY6XxktG2EI2kSBS1lBZAoNguBoxXjD77YM0SHBQLDCag98hBcGTZsX/qC D8diKGIyewyWyF897gce5iQib6KtRyjDkrSGuM8iQIeV19LGCjzwcB5qH32ZMajouw6U Pp5A== X-Gm-Message-State: APuU4Z8J+mw3Hf4rBDQvhoQUhcIbuPw9lcOxdD1OjCIRR7xS3w6ciTut 7umol75LnPpB7nw2p/mgayi+5mugjN0aPvd7irv9Ps+YeV3/uK4f8UQhWrW7RjnZqPamZDV7pgG IDyQXaQPc9uLYIlMqnpw6oAc34KeCe/M56Q8Pj1ViroI9MtTtEJNaw+LGQLbP0U7ESg== X-Gm-Gg: AZFdTZdXcdOmaTFbLuUEcnUIc08DgnejThcX+fJbCez2LK/oJeLiFxGhYf5TSEKVl/U xCjqhwfgFvBmDf9+9fvclx6oxuajP2HWDDaZ7IaeCOdduoo7QQPTSsiIVlm2FvO8w2O+vUVtrWQ A1YZlK5V/xiv+qRoGNMh0WplBOrTROgr5dYBkzfEhHpx56FCyvKkjJVHFinZYnT0OTq6dGR2X2L eibka44VwjJnDdTt20MOTHtfmko4FI5jg5HUqFEspHB99JgC4nAZt6NS2wtP1T+Fpli5XY7Oddr TrFbb86xJZRESHSx+PTrPG9rFBrJq9+fXjGetnG9aw3E/EyCEjj6mLNCS7fkXN0z1G+zP2oln9D UQumv8EyENtbznorO6jgIt4MPTSPJBEbYQpiiF6S+Mzxh5eb6g/eHDftMme0NvVzaXa/r/C2zyL VeZmc= X-Received: by 2002:a05:6000:2887:b0:4b3:e5d7:215a with SMTP id ffacd0b85a97d-4b3e5d72317mr9981398f8f.24.1795514278122; Tue, 24 Nov 2026 01:57:58 -0800 (PST) X-Received: by 2002:a05:6000:2887:b0:4b3:e5d7:215a with SMTP id ffacd0b85a97d-4b3e5d72317mr9981344f8f.24.1795514277737; Tue, 24 Nov 2026 01:57:57 -0800 (PST) Received: from jlelli-thinkpadt14gen4.remote.csb ([151.29.158.90]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6ae2dcf9sm26865584f8f.32.2026.11.24.01.57.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 01:57:57 -0800 (PST) Date: Tue, 24 Nov 2026 10:57:54 +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> 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: <20261124075332.nZysJRfS@linutronix.de> On 24/11/26 08:53, Sebastian Andrzej Siewior wrote: > On 2026-11-24 08:30:50 [+0100], Juri Lelli wrote: > > Hello, > > Hi, > > > On 23/11/26 14:41, Sebastian Andrzej Siewior wrote: > > > > ... > > > > > @@ -2882,26 +2881,18 @@ static int sched_rt_handler(const struct ctl_table *table, int write, void *buff > > > if (ret) > > > goto undo; > > > > > > - ret = sched_dl_global_validate(); > > > + ret = sched_dl_try_boundary(sysctl_sched_rt_runtime, > > > + sysctl_sched_rt_period); > > > if (ret) > > > goto undo; > > > - > > > - sched_dl_do_global(); > > > > Nothing updates sysctl_sched_rt_{period,runtime} when the sysfs files > > are written, but this always passes both, so a procfs write of one knob > > resets the other to its stale sysctl value? E.g. write 2000000 to > > dl_period_us, then -1 to sched_rt_runtime_us: admission control is > > disabled as expected, but sysctl_sched_rt_period is still 1000000 and > > the period is back to 1s. > > You want this working both ways? Want is definitely too strong of a word. :) > 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?