lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250614012346.2358261-1-tj@kernel.org>
Date: Fri, 13 Jun 2025 15:23:26 -1000
From: Tejun Heo <tj@...nel.org>
To: mingo@...hat.com,
	peterz@...radead.org
Cc: linux-kernel@...r.kernel.org,
	sched-ext@...ts.linux.dev,
	void@...ifault.com,
	arighi@...dia.com,
	changwoo@...lia.com
Subject: [PATCHSET tip/sched/core] sched/core: Reorganize bandwidth control interface handling

Reorganize cgroup bandwidth control interface handling in preparation of
sched_ext support.

- Implement tg_bandwidth() and tg_set_bandwidth() to centralize parameter
  reads and updates.

- Cleanly delineate time unit boundary - durations are in usecs from the
  interface files upto tg[_set]_bandwidth(). The fair functions that are
  called by tg[_set]_bandwidth() map them to nsecs.

This reorganization will allow sched_ext to plug into tg[_set]_bandwidth()
the same way it plugs into tg_weight(). No functional changes intended.

 0001-sched-fair-Move-max_cfs_quota_period-decl-and-defaul.patch
 0002-sched-core-Relocate-tg_get_cfs_-and-cpu_cfs_-_read_.patch
 0003-sched-core-Reorganize-cgroup-bandwidth-control-inter.patch
 0004-sched-core-Reorganize-cgroup-bandwidth-control-inter.patch

The patchset is on top of tip/sched/core (dabe1be4e84c ("sched/smp: Use the
SMP version of double_rq_clock_clear_update()")) and also available in the
following git branch:

 git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext.git reorg-bandwidth-control

diffstat follows. Thanks.

 kernel/sched/core.c  |  311 ++++++++++++++++++++++++++++++++++++++++-------------------------------------
 kernel/sched/fair.c  |   15 ---
 kernel/sched/sched.h |   13 +++
 3 files changed, 178 insertions(+), 161 deletions(-)

--
tejun


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ