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=1795533615; b=o191UpWYmquVyVTXI3NLId5gHvgqVm9ceK2xAP9pyJP9nQJb4zIC/2fB9JDL0BqdCMDC iL8mUkILOLd5tkYcX3Qe08y9m5ZyRsasANq4PPfjq2zsEMOwHBFKoAXi4yBG+U5JTa0Hq lwksTrT+ULidp66/KeBp83h4q4ntn37QlLN8MLbl94419EUOZLSEbrxEMp/qruzF7006t zx3R7dzEcGKdxdq+uvu8/IERVM7ipE4KdSebwH/QmGluJzDECgeVrO7NE1pH+1U0ZvUOg +FZmzX6z8ZE225sPrUHJxtWJAkVOXYPSA5KN7JTVPgwOs0Us85qk6ZMDK9s1+6nOwKQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795533615; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:X-Scanned-By; bh=iOPu+6NiMDC/b3ju45EqsPsXdKCHiL1eY1o26WitY9s=; b=QLc0rL0hGqchdrqxKD0NoIHWdGcB/QHSnw5xZmwoYcmFL4ze8xCq3VpCxp5MLtyek9xZ 9WZly79rP8iVdDHaxHSc5M99Pl1CoyHuXNnZO2hhM09IVeG8coJFSAFuIX0Sz3YljXjLF pZzH0tebxTru1uzSbsppTGWD27qJ5T1uH0ILW9NRhcwuo1MMgQ60i5/4x7urIzZYaOHKw UyejJ7xHZOwMJ0CzwtPeCSL3enNnKGo5BbjEOL9ye9+NI9LxaDofnPvs1nqMTkEJ9H5Qc YbDfkd+0nPf0stxH2aaZRvfc9s4A5Ag53s1FoCZSp3HWgPeJJcoU6beaPUbJTYcC9GA== 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=WgbXIFSu; 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 E56EF606A31E for ; Tue, 24 Nov 2026 15:20:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E56EF606A31E 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=WgbXIFSu DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795533614; 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=iOPu+6NiMDC/b3ju45EqsPsXdKCHiL1eY1o26WitY9s=; b=WgbXIFSuiZ3Xa2TXGSCpOb+yYGsg8eDohJeW2rRbBmZY2XPdQcYzCnSzVmZ4RbyvB4jniI NlccMt4h1bPnLqEtcZKxje4JgtiiZ5vG2MV5AS+teAy9IFNHG841JGHgMOZj68dvCJZobv NUfNQyiwrVR01/FN0Xrjmh+Yic4VWdA= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-399-htAi2dU3ObOwTYEJTuqWmQ-1; Tue, 24 Nov 2026 15:20:09 +0000 X-MC-Unique: htAi2dU3ObOwTYEJTuqWmQ-1 X-Mimecast-MFC-AGG-ID: htAi2dU3ObOwTYEJTuqWmQ_1795533605 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (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 mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id AF5B119774EE; Tue, 24 Nov 2026 15:20:04 +0000 (UTC) Received: from pauld.westford.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 538E71800551; Tue, 24 Nov 2026 15:19:58 +0000 (UTC) Date: Tue, 24 Nov 2026 10:19:55 -0500 From: Phil Auld To: Juri Lelli Cc: Sebastian Andrzej Siewior , 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 3/6] sched: Add sysfs files for the per-CPU fair_server knobs Message-ID: <20261124151955.GA1855213@pauld.westford.csb> References: <20261123-sched_dl-v4-0-d523e4d960d3@linutronix.de> <20261123-sched_dl-v4-3-d523e4d960d3@linutronix.de> <20261124080833.0I9HFgtf@linutronix.de> X-Mailing-List: cgroups@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: X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 On Tue, Nov 24, 2026 at 10:59:28AM +0100 Juri Lelli wrote: > On 24/11/26 09:08, Sebastian Andrzej Siewior wrote: > > On 2026-11-24 08:56:11 [+0100], Juri Lelli wrote: > > > Hello, > > > > > > On 23/11/26 14:41, Sebastian Andrzej Siewior wrote: > > > > The fair_server exposes the runtime and period knobs per-CPU in the > > > > debugfs folder. The debugfs interface is not a stable ABI. > > > > Make the /sys/kernel/debug/sched/fair_server/cpu*/{period|runtime} knobs > > > > available as /sys/kernel/sched/cpuX/{fair_server_period|fair_server_runtime}. > > > > > > > > It adds a struct kobject to the rq and exposes only those two. The > > > > per-runqueue folder is named `cpu' rather than `rq' since it might be > > > > more intuitive to the user than `rq' or `runqueue'. > > > > > > > > The set logic is pulled from the debugfs folder but it is still shared. > > > > That debugfs logic could be removed (after providing the same for > > > > ext-server) or symlinked for a while. > > > > > > ... > > > > > > > +static ssize_t rq_fair_server_runtime_show(struct kobject *kobj, struct kobj_attribute *attr, > > > > + char *buf) > > > > +{ > > > > + struct rq *rq = kobj_to_rq(kobj); > > > > + struct sched_dl_entity *dl_se; > > > > + > > > > + dl_se = &rq->fair_server; > > > > + > > > > + return sysfs_emit(buf, "%llu\n", dl_se->dl_runtime); > > > > +} > > > > > > Since these files are new and meant to replace debugfs, how about using > > > ns everywhere (you partly commented about it in the cover letter), as > > > sched_attr and the dl_server parameters already do, with the unit in the > > > name? I.e. fair_server_{runtime,period}_ns here and > > > dl_{runtime,period}_ns in 2/6, with only the procfs compatibility path > > > converting from us. Right now /sys/kernel/sched/ has dl_*_us in us next > > > to cpuX/fair_server_* in ns without a suffix. > > > > I can do both in ns (or us depending what is easier/ more useful). Let > > me update that then. > > Mind that it would be nice to hear from others in this thread before I > make you do changes that others might not agree with. :) > I did notice the lack of units on the fair files. I'd certainly go along with adding the _ns to those at least. I don't have a strong preference about them both being the same unit if they are properly named. It probably makes sense but I leave it to people who know dl better to say if sub-us configuration makes sense. Cheers, Phil --