v2 2026-09-19

DAMOS 配额目标取补集系列 · v2

为 DAMOS quota goal 增加 complement 标志,支持对目标指标取补,扩展配额自动调优方向。

原始补丁链接

子 Patch(7)

1/7
mm/damon/core: introduce damos_quota_goal->complement
Introduce damos_quota_goal->complement for specifying whether to use a complemented value of the given goal target metric. Add the field to the data structure and implement essential core support. H
2/7
mm/damon: add complement argument to damos_new_quota_goal()
damos_quota_goal->complement needs to be manually set by each API callers. It is easy to make mistakes. Extend the quota goal constructor, damos_new_quota_goal() to receive and set the complement fl
3/7
mm/damon/sysfs-schemes: support quota goal complement flag
Add a new sysfs file, complement, under the quota goal directory. It works for setting and getting the quota goal metric complement flag value. Signed-off-by: SJ Park sj@kernel.org — mm/damon/s
4/7
mm/damon/tests/core-kunit: test quota_goal->complement commit
Extend existing DAMOS quota goal commit unit test to test the complement flag. Set the source complement flag and confirm the destination is updated to the given input. Signed-off-by: SJ Park <sj@ke
5/7
Docs/mm/damon/design: document damos quota goal complement flag
Update DAMON design document for the newly added damos quota goal metric value complement flag. Signed-off-by: SJ Park sj@kernel.org — Documentation/mm/damon/design.rst | 13 +++++++++—- 1 fil
6/7
Docs/admin-guide/mm/damon/usage: update for quota goal complement file
Update DAMON usage document for the newly added quota goal metric complement sysfs file. Signed-off-by: SJ Park sj@kernel.org — Documentation/admin-guide/mm/damon/usage.rst | 15 ++++++++——-
7/7
Docs/ABI/damon: update for quota goal metric complement sysfs file
Update DAMON ABI document for the newly added damos quota goal metric complement sysfs file. Signed-off-by: SJ Park sj@kernel.org — Documentation/ABI/testing/sysfs-kernel-mm-damon | 6 ++++++ 1