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=1795514377; b=BpuiNnZxaTlj5DFjZEUk6F+uSccWtGdFtkqD5XXrezdn5g6AJizfPECRgV5NMS0wroZ1 4uHqD9IDVge74bkqoCqAaxCXMkQdc/W0KQMJDMFMnqD8/Dqic8FZlWhFDnDI2Dzu+0iHB U2Lu/Q4N9l5s4rc1NSa2f7kFiI+4XTbVxKr5kOmsL8x9UZGoykR+6m16Wox8YDYD2VlZ3 5VhHgrETIFSFIDm1oCY9Lw0xpVh8NRQ6tY/DZwB/oIBgwl4ldD8ZhG2u0g6W2OCSzvzqP 3prkao0zZU4AwrO7QsvQjFZJ6SPdRxtN/7GFmLN3WUFYZPOQtY0xG+BRfbLEQh5DSVw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795514377; 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=FYuz/K8ZJHw8V19OxffQhxGLJQWBYYcYpwJUkZTtfL8=; b=wQiZ+RoGCQxqveuod6hmXLoo97NsxFE7V9SVaddJ2egD05ELAjB0bzHRftC4WyvwQCI0 Q/XafbToEIcg054R4uOI1p5AkZgwurZlG0/DpLn4rAGmSdpJvx6xZ5ofl44BRPGcNbyEs JTlvhUi96kTR4TBMBkhV5kgfoRVJZB7DjxpJKoJKGQm5wh5N7gA7AWR8FbCpe6QMjkY8V 3gccamqjBpJC3UE2tfK6BHHrPo+XY/YDaKi4XYT4d2aeNLvwNPusYotk+fbSbwp48+9OZ czpCCMMERunX82Dl7hwQOsRYCpF23Ld6MCPQtqHJwD8RWIO+K8wowWLUnnz0EYvXnIg== 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=b23ugdr7; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=e0n1oN0R; 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 9489B606A338 for ; Tue, 24 Nov 2026 09:59:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9489B606A338 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=b23ugdr7; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=e0n1oN0R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795514375; 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=FYuz/K8ZJHw8V19OxffQhxGLJQWBYYcYpwJUkZTtfL8=; b=b23ugdr7IJLEgos7XieA49KYy2MUNYpTd6rNUQrWHZ13scOsWsThhISd58PYGo3C7ykmVU oh7t8WhACKYNr1iwv/YLbPGPleTiHy7lewj80j3/F88b8cNy9jFswHvX9aMw1apyCg6c8z RbPK4HweIUxjxx6iyUrbPc1L1sm3Td8= 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-497-UXfglcuMPqGUJOUO8kORmw-1; Tue, 24 Nov 2026 09:59:33 +0000 X-MC-Unique: UXfglcuMPqGUJOUO8kORmw-1 X-Mimecast-MFC-AGG-ID: UXfglcuMPqGUJOUO8kORmw_1795514372 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-490d2ac331bso3770253f8f.0 for ; Tue, 24 Nov 2026 01:59:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1795514372; x=1796119172; 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=FYuz/K8ZJHw8V19OxffQhxGLJQWBYYcYpwJUkZTtfL8=; b=e0n1oN0RmBVJLCI2UlG/FmdCSTssxV+exz7Odw9yPctRTzDBOLz+b2w7bqcsPMtVhY YZsnJlqpYryo6qXAzhI+HVuYKj2kQ6eORj7Y9ra/+xc7/TMDdxWlDbxBQGWNlPWo+pYh P9Yh8ZIEPzKxRF39734uIOFuoBGSrOiagZDcnGRKcPvqCx8+d6iKyBGSdkKsUn7cDzEH Zfq11/qZ89jFO2QeuD57BKgJ0CvhpX40ao4X/57E3cqcucRCuS5KVkPNQoYFzuwAs7nT OgpeiwiGocdpfMzny02EziP9mr4b4+NpyTTgWQUvN5rhKV3uyv69ttF9MXSiOudVL5A5 KyaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795514372; x=1796119172; 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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HCR7ZNi3TiUXCMbZtH XpyLk= X-Received: by 2002:a05:6000:4013:b0:4a7:d4c9:ea03 with SMTP id ffacd0b85a97d-4abaac57bb5mr26588508f8f.6.1795514372465; Tue, 24 Nov 2026 01:59:32 -0800 (PST) X-Received: by 2002:a05:6000:4013:b0:4a7:d4c9:ea03 with SMTP id ffacd0b85a97d-4abaac57bb5mr26588458f8f.6.1795514372081; Tue, 24 Nov 2026 01:59:32 -0800 (PST) Received: from jlelli-thinkpadt14gen4.remote.csb ([151.29.158.90]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab5ffcad11sm26055111f8f.0.2026.11.24.01.59.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 01:59:31 -0800 (PST) Date: Tue, 24 Nov 2026 10:59:28 +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> <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: <20261124080833.0I9HFgtf@linutronix.de> 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. :)