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=1795533616; b=L0BfWNCzfcEagV1OVxv0IdnH7X09FMR1nqNeg/W4mz8ndmjrSvv6cRVE4dEospExuE9V xJVmhN7NH56eAT/obddq6/zGQcckP1PoE5vCc5vmfd0YTzfLEKIeRF8RTvAwFPco295e5 kC9/9AKvdFcABsUihDCp9aPhlZgKDI1NvxiUG3qE/uAgmiOmDMFkATHQdx9NmEU9EjUn/ vQNXBbuGFCguOJPpbU5E+fO/+E0FaMVgdx0Cx05ul4AhWJa7bcE6fxGWR6MTysBWAb2RN sSYWgKf/5eXuLoRF72JO3n0KeRuL75Gv9g9SIxoXujzKrj0DWiGC1r5MrpgOnMmkF/Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795533616; 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=3bi/ky7GIsng/p37gCHujOTejIAvmbPxqGJMVmy332GC+zKWjmvi3ND1ySJQI8IFvaKJ /6afecm5oufvEa1zsKsorh5e0dplO+1OUoby//Yf1a9RA9vTL39Q090kOPDsUOLbh575m z6NG+cz+sQt1U3YsfAcPDrAmL+jSHalxRWEdwl7cLJCHTXnMnaLxkdA56PhKL/w4tbOxo 3tY2bi3yamAz9Z4dwNEuqkxRmTDEndTPDrCotekn8tzj3PW2y3l034Pz3VfPOCYbNhq+y Vsfcs4uPrrbJ4MEtXThheUg9iUJMHGdAVx0Itt64yDMbZVYreyY50bscFFBqc/8uX5Q== 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=hBIuBsWQ; 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 2D169606A31E for ; Tue, 24 Nov 2026 15:20:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2D169606A31E 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=hBIuBsWQ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795533615; 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=hBIuBsWQ9nosSJ+ly4Dx0qt4cMlvvPnEksIVk/SnsbpqXWLvx79xXpubPKfHLBS1iJ6E4i eHj306OtGz2gdeVqKZDr1qVXw2keA6X2DUH+xlbSNF8DUQJnDCVbOdll9xFEJ1KfNlYJ6o xF/w8YLop9o/wiG/qU2y4fx3+llzpoQ= 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: 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: 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 --