mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/1] tick/nohz: Expose housekeeping CPUs in sysfs
@ 2025-10-07  1:29 Aaron Tomlin
  2025-10-07  1:29 ` [PATCH v2 1/1] " Aaron Tomlin
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron Tomlin @ 2025-10-07  1:29 UTC (permalink / raw)
  To: gregkh, rafael, dakr; +Cc: riel, frederic, atomlin, linux-kernel

Expose the current system-defined list of housekeeping CPUs in a new
sysfs file: /sys/devices/system/cpu/housekeeping.

This provides userspace performance tuning tools and resource managers
with a canonical, reliable method to accurately identify the cores
responsible for essential kernel maintenance workloads (RCU, timer
callbacks, and unbound workqueues). Currently, tooling must manually
calculate the housekeeping set by parsing complex kernel boot parameters
(like isolcpus= and nohz_full=) and system topology, which is prone to
error. This dedicated file simplifies the configuration of low-latency
workloads.

Changes since v1 [1]:

 - Refactor to use an if statement (Greg KH)
 - Use DEVICE_ATTR_RO() instead (Greg KH)
 - Document the new file under Documentation/ABI (Greg KH)

[1]: https://lore.kernel.org/lkml/20251006005853.76335-1-atomlin@atomlin.com/

Aaron Tomlin (1):
  tick/nohz: Expose housekeeping CPUs in sysfs

 .../ABI/testing/sysfs-devices-system-cpu          | 11 +++++++++++
 drivers/base/cpu.c                                | 15 +++++++++++++++
 2 files changed, 26 insertions(+)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-10-07  1:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-07  1:29 [PATCH v2 0/1] tick/nohz: Expose housekeeping CPUs in sysfs Aaron Tomlin
2025-10-07  1:29 ` [PATCH v2 1/1] " Aaron Tomlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome