mirror of
https://github.com/torvalds/linux.git
synced 2025-04-12 06:49:52 +00:00
mm/damon/sysfs: commit intervals tuning goal
Connect DAMON sysfs interface for sampling and aggregation intervals auto-tuning with DAMON core API, so that users can really use the feature using the sysfs files. Link: https://lkml.kernel.org/r/20250303221726.484227-5-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
8fbbcbeaaf
commit
0622c68d0a
@ -1273,11 +1273,18 @@ static int damon_sysfs_set_attrs(struct damon_ctx *ctx,
|
||||
struct damon_sysfs_attrs *sys_attrs)
|
||||
{
|
||||
struct damon_sysfs_intervals *sys_intervals = sys_attrs->intervals;
|
||||
struct damon_sysfs_intervals_goal *sys_goal =
|
||||
sys_intervals->intervals_goal;
|
||||
struct damon_sysfs_ul_range *sys_nr_regions =
|
||||
sys_attrs->nr_regions_range;
|
||||
struct damon_attrs attrs = {
|
||||
.sample_interval = sys_intervals->sample_us,
|
||||
.aggr_interval = sys_intervals->aggr_us,
|
||||
.intervals_goal = {
|
||||
.access_bp = sys_goal->access_bp,
|
||||
.aggrs = sys_goal->aggrs,
|
||||
.min_sample_us = sys_goal->min_sample_us,
|
||||
.max_sample_us = sys_goal->max_sample_us},
|
||||
.ops_update_interval = sys_intervals->update_us,
|
||||
.min_nr_regions = sys_nr_regions->min,
|
||||
.max_nr_regions = sys_nr_regions->max,
|
||||
|
Loading…
x
Reference in New Issue
Block a user