SeongJae Park
1c78b2bcd2
mm/damon/sysfs: support schemes prioritization
...
This commit makes DAMON sysfs interface supports the DAMOS' regions
prioritization weights feature under quotas limitation. Specifically,
this commit adds 'weights' directory under each scheme directory and makes
kdamond 'state' file writing respects the contents in the directory.
/sys/kernel/mm/damon/admin
│ kdamonds/nr
│ │ 0/state,pid
│ │ │ contexts/nr
│ │ │ │ 0/operations
│ │ │ │ │ monitoring_attrs/intervals/sample_us,aggr_us,update_us
│ │ │ │ │ │ nr_regions/min,max
│ │ │ │ │ targets/nr
│ │ │ │ │ │ 0/pid
│ │ │ │ │ │ │ regions/nr
│ │ │ │ │ │ │ │ 0/start,end
│ │ │ │ │ │ │ │ ...
│ │ │ │ │ │ ...
│ │ │ │ │ schemes/nr
│ │ │ │ │ │ 0/action
│ │ │ │ │ │ │ access_pattern/
│ │ │ │ │ │ │ │ sz/min,max
│ │ │ │ │ │ │ │ nr_accesses/min,max
│ │ │ │ │ │ │ │ age/min,max
│ │ │ │ │ │ │ quotas/ms,bytes,reset_interval_ms
│ │ │ │ │ │ │ │ weights/ <- NEW DIRECTORY
│ │ │ │ │ │ │ │ │ weights/sz_permil,nr_accesses_permil,age_permil
│ │ │ │ │ │ ...
│ │ │ │ ...
│ │ ...
Link: https://lkml.kernel.org/r/20220228081314.5770-9-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: Xin Hao <xhao@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-03-22 15:57:13 -07:00
..
2022-03-22 15:57:13 -07:00
2022-01-22 08:33:38 +02:00
2022-03-22 15:57:11 -07:00
2022-03-22 15:57:01 -07:00
2021-05-07 00:26:35 -07:00
2022-01-06 12:27:03 +01:00
2021-05-05 11:27:21 -07:00
2021-05-05 11:27:24 -07:00
2022-03-22 15:57:09 -07:00
2022-03-22 15:57:09 -07:00
2022-03-22 15:57:09 -07:00
2022-02-04 09:25:04 -08:00
2022-01-15 16:30:26 +02:00
2022-01-15 16:30:28 +02:00
2022-03-22 15:57:11 -07:00
2022-03-22 15:57:01 -07:00
2022-03-22 15:57:02 -07:00
2022-01-04 13:15:34 -05:00
2022-01-22 08:33:38 +02:00
2021-05-05 11:27:26 -07:00
2021-05-05 11:27:26 -07:00
2022-03-22 15:57:01 -07:00
2022-03-22 15:57:11 -07:00
2022-03-22 15:57:12 -07:00
2022-03-22 15:57:09 -07:00
2022-01-15 16:30:29 +02:00
2022-03-22 15:57:08 -07:00
2021-06-30 20:47:25 -07:00
2022-03-22 15:57:08 -07:00
2022-03-22 15:57:07 -07:00
2021-07-08 11:48:21 -07:00
2022-03-22 15:57:11 -07:00
2021-04-30 11:20:38 -07:00
2021-04-30 11:20:39 -07:00
2021-09-08 11:50:24 -07:00
2022-03-22 15:57:08 -07:00
2022-01-15 16:30:28 +02:00
2022-02-04 09:25:04 -08:00
2022-02-04 09:25:05 -08:00
2022-03-22 15:57:09 -07:00
2022-03-22 15:57:08 -07:00
2022-03-22 15:57:11 -07:00
2022-03-22 15:57:10 -07:00
2022-01-22 08:33:38 +02:00
2022-01-15 16:30:27 +02:00
2022-02-20 08:45:39 +02:00
2022-03-22 15:57:10 -07:00
2022-03-05 11:08:32 -08:00
2022-03-22 15:57:10 -07:00
2022-03-22 15:57:07 -07:00
2022-03-22 15:57:08 -07:00
2022-03-22 15:57:09 -07:00
2021-10-18 06:17:01 -06:00
2022-03-22 15:57:01 -07:00
2022-03-22 15:57:11 -07:00
2021-01-24 14:27:16 +01:00
2022-03-22 15:57:07 -07:00
2021-04-30 11:20:42 -07:00
2021-07-23 17:43:28 -07:00
2022-03-22 15:57:05 -07:00
2022-01-15 16:30:27 +02:00
2021-03-25 09:22:55 -07:00
2022-03-22 15:57:05 -07:00
2022-03-22 15:57:09 -07:00
2022-03-22 15:57:05 -07:00
2021-04-30 11:20:37 -07:00
2021-11-06 14:08:17 -07:00
2022-03-22 15:57:09 -07:00
2022-03-22 15:57:10 -07:00
2022-01-15 16:30:27 +02:00
2022-01-15 16:30:31 +02:00
2021-09-08 11:50:24 -07:00
2022-03-22 15:57:09 -07:00
2022-02-04 09:25:04 -08:00
2022-01-22 08:33:37 +02:00
2021-04-30 11:20:36 -07:00
2021-06-29 10:53:47 -07:00
2021-06-29 10:53:47 -07:00
2022-03-22 15:57:11 -07:00
2021-07-01 11:06:03 -07:00
2022-03-22 15:57:01 -07:00
2021-06-29 10:53:49 -07:00
2022-01-15 16:30:31 +02:00
2021-07-04 18:30:17 +00:00
2021-06-05 20:43:15 +00:00
2021-07-04 18:30:17 +00:00
2022-01-23 06:20:44 +02:00
2021-05-07 00:26:35 -07:00
2022-01-15 16:30:27 +02:00
2021-05-05 11:27:27 -07:00
2022-03-22 15:57:08 -07:00
2022-03-22 15:57:01 -07:00
2022-03-22 15:57:11 -07:00
2020-08-21 09:52:53 -07:00
2021-10-28 17:18:55 -07:00
2022-03-22 15:57:04 -07:00
2021-04-16 16:10:36 -07:00
2021-05-22 15:09:07 -10:00
2022-01-15 20:37:06 +02:00
2022-03-22 15:57:03 -07:00
2022-03-22 15:57:03 -07:00
2022-03-22 15:57:03 -07:00
2022-03-22 15:57:03 -07:00
2022-03-22 15:57:08 -07:00
2022-03-22 15:57:05 -07:00
2021-12-03 10:58:13 -08:00
2022-03-17 11:02:13 -07:00
2022-03-22 15:57:08 -07:00
2022-03-22 15:57:08 -07:00
2022-01-22 08:33:38 +02:00
2022-03-22 15:57:11 -07:00
2022-03-22 15:57:04 -07:00
2022-03-04 10:00:37 -08:00
2022-03-22 15:57:05 -07:00
2021-11-06 13:30:40 -07:00
2022-03-22 15:57:09 -07:00
2022-03-22 15:57:11 -07:00
2022-03-22 15:57:08 -07:00
2021-07-01 11:06:03 -07:00
2021-07-01 11:06:03 -07:00
2022-01-15 16:30:31 +02:00
2022-01-22 08:33:37 +02:00
2022-03-22 15:57:11 -07:00