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=1795506979; b=Jg4JsrP3y3KVgZgg4/DCxfPMxHIYCDdcavrMo8vbfWgZj8gnQmvtm6iL9oZsIVoopKiJ 9puT1mCQLDUtv8ytD+K120zakgnJGOm6Y4eByfoVg+pul9+UkPlqffW3wq+MtG58GfAeB eohfXBd904KNsJx872kuvecA5NC/4muX7Q3mb72RcqLcwP02ijUVnHNubvAzpbsxsp3GS +wFBetaNdedU5GN1QTJYaj1hcvSj7bdBgkZpxLSNaSOmhWJ7PU1Yfq22rJt9WR6LjIw0B TvCowsLrLpz3Cty05YwM9te1xoHX979dKKCy8irxYhxWPRs7PejWylheaZ67kyBEbnA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795506979; 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=NoYyv4wajWc0F6aGxtmlY+0UYbCgY2jiNDwc0W/rZK8=; b=UWJ/FaoVDr4sN1bNH0dknhmoVfe7TQQw8wcQx4sQw9U5vT2yEwOxt6CeAWYCvD2EVHTu /2q19K14qC2E6F69Bi83lPmYU3OX7c5+G+d1htukWXKC3p0J2D/ymwojvzWn2LIYNVqQw 4TTSp6BwSLfuUQE0hvmMfeUwgxMHVVlQko2AV62O/Gly6Fa6UIY7h27wZ2Jb3UU7z4FDv OIO2Erkja0EdcJV2RI4JBc13Sx8xqeJL/pYLAsuWaXCm/6nOIfw+p60L2f//KhS77JJ/V dVgGRJ8AIgG9Fkc9I7r7LApJhSkYINn9pC71a4xshXZBTF85j1Emmns4XitSBM6/VMg== 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=TrcsbKkT; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b="r/DjBX/o"; 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 A7CB3606A321 for ; Tue, 24 Nov 2026 07:56:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A7CB3606A321 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=TrcsbKkT; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=r/DjBX/o DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795506977; 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=NoYyv4wajWc0F6aGxtmlY+0UYbCgY2jiNDwc0W/rZK8=; b=TrcsbKkTU113+vqVGmCr5F5agOo6nLp5iarHo6rNrwbuzNoOv+6omaHtnIeIxPatsFxrnt c6eZfeAV6aGKYwAJYTDYq0ZDce+Vy+n9HKfbzE1H2aTGJXP2dKew/q3/yjAd0zLJK18eTA f3iMnVaU1x3Ht09E4RsRkGLR98hhkCk= 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-692-kBQgQIvKPsCRKUDlDx-Y9w-1; Tue, 24 Nov 2026 07:56:15 +0000 X-MC-Unique: kBQgQIvKPsCRKUDlDx-Y9w-1 X-Mimecast-MFC-AGG-ID: kBQgQIvKPsCRKUDlDx-Y9w_1795506975 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-48e29c25101so1745728f8f.3 for ; Mon, 23 Nov 2026 23:56:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1795506974; x=1796111774; 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=NoYyv4wajWc0F6aGxtmlY+0UYbCgY2jiNDwc0W/rZK8=; b=r/DjBX/oGoNUP21ZIsDVfw9kls8GLFm/CH9WHNSLQaw4tjukZxu9U3Ugimu7Jz6lpU vdhhX9zqgU2QzEnogYGKJZ5LGMYF0aHppCYp/lFEIucKYL6uCS6xKUbzExydIk1AKqK3 Pa46QkXbUwRFI6H7hLIdevQyhqMNVCJosVTVl0LH6L1z0jLkh+hVz1iBGdRCV6C0DN92 oKbIvs5xu5BR95jq47vSoe9X9heAxafnM3qa4sD2pEUD2ejPPEfOKzCqLnCfga2fYEyl CZy78L+9fAZck97V0/X8Uz4mYJO0nsdJtGmuUOcYKkWX6NSFQn4YZdNar3av62DaLLYE 8MzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795506974; x=1796111774; 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=NoYyv4wajWc0F6aGxtmlY+0UYbCgY2jiNDwc0W/rZK8=; b=MeaiCfl0oBJYw4kGzPkhI8s/7TApVdOJGLmBM+WSmhtrLmwoFvk4eOg2o+zu+No3/U rLoiGPewBN0c+m3RRxtgwQxq5NUgNIsBWBAZGnU60zBNbKVKS9KsTqGzckZWNr0KUiDe xMKNsjuLHRKQ7bO3yTIA+KeQUWbNvqFnSpRpS8bRLCvhfI4WnM/HvW2UByQbByYDgH+j gmL3iqJStf9pQbRi1K2uLc5SWLEWQc+1wynMhCaOPmmIuXogolOOKFsU/bfWd9F9GL0T xlqgAOUJ4wZDfuBxCUdMemGjIOF75mUKNU2AAHqE0n+R7VFfPoL5IQJ9It/ZN3HhJYXX m4oQ== X-Forwarded-Encrypted: i=1; AL+hErHzPkxcByl98khFf/Du47Jtnasfo1At3O3V94khjP9PY0mNYtrUCKkiJDGztyffLgONnRd3ailnCI4=@vger.kernel.org X-Gm-Message-State: APuU4Z+f6bPql93ZuRr7W04vqq+vWVMSLK88UCh6VgZG45lmJI2ctk3Q U7TejyQgpj9QOJpNRKKkE3uCHmIF4sTlMiH8km/kc362MVf93QCCZ5+tN+xejo6luBNIirMEW7X 7BNiHr0weeESKyvlo+/fBppHBp5L1vsqNHtzKtJgdDIVRwgjWp0GeIilatOEeoA== X-Gm-Gg: AZFdTZdkD5iBsVbCg+B1cpAIqxuJZfumMMGHSDtHh1g9num/CDetJHP8AEALirimAx7 lXL5JHw0twmzBczauWPb7FFXOHxORwE5PGb7SSJ2jyVyyAjmF71lZRo0IuvTtp09iReDDcSxCn3 mV4JXdVQaBQThg+Yg87mQ0kGoWEKG9puhkG+KSKwFlr3VyT/X6wGxhbYI9GdaStxebJ96jdK/UZ EjMdb18PYPGp3Ou0TZ0mQPB58rPaam1vnAYmwzk0chDD0ChrrsaJLtF0oQ3n/pmPvA7zVFW7dDY eM6eP6cyK8cV7jnn09mSkkCSEjB1mHiVuRDMxtd122ms28IvIulE4jQkjuW0mNRRSXB5OQ9lOac H3x4dFYIhPlaDFE8GJiW9gi1almp9NLNO7et9sKcNltxvyQRKKpOb3ZyGecrlQ2zS2B4rKpEHLm zC4uc= X-Received: by 2002:a05:600c:1549:b0:4bb:6f45:2a77 with SMTP id 5b1f17b1804b1-4bb8880abf7mr268983945e9.11.1795506974686; Mon, 23 Nov 2026 23:56:14 -0800 (PST) X-Received: by 2002:a05:600c:1549:b0:4bb:6f45:2a77 with SMTP id 5b1f17b1804b1-4bb8880abf7mr268983605e9.11.1795506974353; Mon, 23 Nov 2026 23:56:14 -0800 (PST) Received: from jlelli-thinkpadt14gen4.remote.csb ([151.29.158.90]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6c340df4sm30623656f8f.55.2026.11.23.23.56.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2026 23:56:13 -0800 (PST) Date: Tue, 24 Nov 2026 08:56:11 +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 3/6] sched: Add sysfs files for the per-CPU fair_server knobs Message-ID: References: <20261123-sched_dl-v4-0-d523e4d960d3@linutronix.de> <20261123-sched_dl-v4-3-d523e4d960d3@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: <20261123-sched_dl-v4-3-d523e4d960d3@linutronix.de> 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. Related, do we need to add Documentation/ABI/testing/sysfs-kernel-sched entries for these and for the 2/6 files (units, defaults, limits, what 0 / -1 mean, -EBUSY on admission failure)? Thanks, Juri