162306a36Sopenharmony_ciwhat:		/sys/kernel/mm/damon/
262306a36Sopenharmony_ciDate:		Mar 2022
362306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
462306a36Sopenharmony_ciDescription:	Interface for Data Access MONitoring (DAMON).  Contains files
562306a36Sopenharmony_ci		for controlling DAMON.  For more details on DAMON itself,
662306a36Sopenharmony_ci		please refer to Documentation/admin-guide/mm/damon/index.rst.
762306a36Sopenharmony_ci
862306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/
962306a36Sopenharmony_ciDate:		Mar 2022
1062306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
1162306a36Sopenharmony_ciDescription:	Interface for privileged users of DAMON.  Contains files for
1262306a36Sopenharmony_ci		controlling DAMON that aimed to be used by privileged users.
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/nr_kdamonds
1562306a36Sopenharmony_ciDate:		Mar 2022
1662306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
1762306a36Sopenharmony_ciDescription:	Writing a number 'N' to this file creates the number of
1862306a36Sopenharmony_ci		directories for controlling each DAMON worker thread (kdamond)
1962306a36Sopenharmony_ci		named '0' to 'N-1' under the kdamonds/ directory.
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/state
2262306a36Sopenharmony_ciDate:		Mar 2022
2362306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
2462306a36Sopenharmony_ciDescription:	Writing 'on' or 'off' to this file makes the kdamond starts or
2562306a36Sopenharmony_ci		stops, respectively.  Reading the file returns the keywords
2662306a36Sopenharmony_ci		based on the current status.  Writing 'commit' to this file
2762306a36Sopenharmony_ci		makes the kdamond reads the user inputs in the sysfs files
2862306a36Sopenharmony_ci		except 'state' again.  Writing 'update_schemes_stats' to the
2962306a36Sopenharmony_ci		file updates contents of schemes stats files of the kdamond.
3062306a36Sopenharmony_ci		Writing 'update_schemes_tried_regions' to the file updates
3162306a36Sopenharmony_ci		contents of 'tried_regions' directory of every scheme directory
3262306a36Sopenharmony_ci		of this kdamond.  Writing 'update_schemes_tried_bytes' to the
3362306a36Sopenharmony_ci		file updates only '.../tried_regions/total_bytes' files of this
3462306a36Sopenharmony_ci		kdamond.  Writing 'clear_schemes_tried_regions' to the file
3562306a36Sopenharmony_ci		removes contents of the 'tried_regions' directory.
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/pid
3862306a36Sopenharmony_ciDate:		Mar 2022
3962306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
4062306a36Sopenharmony_ciDescription:	Reading this file returns the pid of the kdamond if it is
4162306a36Sopenharmony_ci		running.
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/nr_contexts
4462306a36Sopenharmony_ciDate:		Mar 2022
4562306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
4662306a36Sopenharmony_ciDescription:	Writing a number 'N' to this file creates the number of
4762306a36Sopenharmony_ci		directories for controlling each DAMON context named '0' to
4862306a36Sopenharmony_ci		'N-1' under the contexts/ directory.
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/avail_operations
5162306a36Sopenharmony_ciDate:		Apr 2022
5262306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
5362306a36Sopenharmony_ciDescription:	Reading this file returns the available monitoring operations
5462306a36Sopenharmony_ci		sets on the currently running kernel.
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/operations
5762306a36Sopenharmony_ciDate:		Mar 2022
5862306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
5962306a36Sopenharmony_ciDescription:	Writing a keyword for a monitoring operations set ('vaddr' for
6062306a36Sopenharmony_ci		virtual address spaces monitoring, 'fvaddr' for fixed virtual
6162306a36Sopenharmony_ci		address ranges monitoring, and 'paddr' for the physical address
6262306a36Sopenharmony_ci		space monitoring) to this file makes the context to use the
6362306a36Sopenharmony_ci		operations set.  Reading the file returns the keyword for the
6462306a36Sopenharmony_ci		operations set the context is set to use.
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ci		Note that only the operations sets that listed in
6762306a36Sopenharmony_ci		'avail_operations' file are valid inputs.
6862306a36Sopenharmony_ci
6962306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/intervals/sample_us
7062306a36Sopenharmony_ciDate:		Mar 2022
7162306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
7262306a36Sopenharmony_ciDescription:	Writing a value to this file sets the sampling interval of the
7362306a36Sopenharmony_ci		DAMON context in microseconds as the value.  Reading this file
7462306a36Sopenharmony_ci		returns the value.
7562306a36Sopenharmony_ci
7662306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/intervals/aggr_us
7762306a36Sopenharmony_ciDate:		Mar 2022
7862306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
7962306a36Sopenharmony_ciDescription:	Writing a value to this file sets the aggregation interval of
8062306a36Sopenharmony_ci		the DAMON context in microseconds as the value.  Reading this
8162306a36Sopenharmony_ci		file returns the value.
8262306a36Sopenharmony_ci
8362306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/intervals/update_us
8462306a36Sopenharmony_ciDate:		Mar 2022
8562306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
8662306a36Sopenharmony_ciDescription:	Writing a value to this file sets the update interval of the
8762306a36Sopenharmony_ci		DAMON context in microseconds as the value.  Reading this file
8862306a36Sopenharmony_ci		returns the value.
8962306a36Sopenharmony_ci
9062306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/nr_regions/min
9162306a36Sopenharmony_ci
9262306a36Sopenharmony_ciWDate:		Mar 2022
9362306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
9462306a36Sopenharmony_ciDescription:	Writing a value to this file sets the minimum number of
9562306a36Sopenharmony_ci		monitoring regions of the DAMON context as the value.  Reading
9662306a36Sopenharmony_ci		this file returns the value.
9762306a36Sopenharmony_ci
9862306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/nr_regions/max
9962306a36Sopenharmony_ciDate:		Mar 2022
10062306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
10162306a36Sopenharmony_ciDescription:	Writing a value to this file sets the maximum number of
10262306a36Sopenharmony_ci		monitoring regions of the DAMON context as the value.  Reading
10362306a36Sopenharmony_ci		this file returns the value.
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/nr_targets
10662306a36Sopenharmony_ciDate:		Mar 2022
10762306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
10862306a36Sopenharmony_ciDescription:	Writing a number 'N' to this file creates the number of
10962306a36Sopenharmony_ci		directories for controlling each DAMON target of the context
11062306a36Sopenharmony_ci		named '0' to 'N-1' under the contexts/ directory.
11162306a36Sopenharmony_ci
11262306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/<T>/pid_target
11362306a36Sopenharmony_ciDate:		Mar 2022
11462306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
11562306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the pid of
11662306a36Sopenharmony_ci		the target process if the context is for virtual address spaces
11762306a36Sopenharmony_ci		monitoring, respectively.
11862306a36Sopenharmony_ci
11962306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/<T>/regions/nr_regions
12062306a36Sopenharmony_ciDate:		Mar 2022
12162306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
12262306a36Sopenharmony_ciDescription:	Writing a number 'N' to this file creates the number of
12362306a36Sopenharmony_ci		directories for setting each DAMON target memory region of the
12462306a36Sopenharmony_ci		context named '0' to 'N-1' under the regions/ directory.  In
12562306a36Sopenharmony_ci		case of the virtual address space monitoring, DAMON
12662306a36Sopenharmony_ci		automatically sets the target memory region based on the target
12762306a36Sopenharmony_ci		processes' mappings.
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/<T>/regions/<R>/start
13062306a36Sopenharmony_ciDate:		Mar 2022
13162306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
13262306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the start
13362306a36Sopenharmony_ci		address of the monitoring region.
13462306a36Sopenharmony_ci
13562306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/<T>/regions/<R>/end
13662306a36Sopenharmony_ciDate:		Mar 2022
13762306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
13862306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the end
13962306a36Sopenharmony_ci		address of the monitoring region.
14062306a36Sopenharmony_ci
14162306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/nr_schemes
14262306a36Sopenharmony_ciDate:		Mar 2022
14362306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
14462306a36Sopenharmony_ciDescription:	Writing a number 'N' to this file creates the number of
14562306a36Sopenharmony_ci		directories for controlling each DAMON-based operation scheme
14662306a36Sopenharmony_ci		of the context named '0' to 'N-1' under the schemes/ directory.
14762306a36Sopenharmony_ci
14862306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/action
14962306a36Sopenharmony_ciDate:		Mar 2022
15062306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
15162306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the action
15262306a36Sopenharmony_ci		of the scheme.
15362306a36Sopenharmony_ci
15462306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/sz/min
15562306a36Sopenharmony_ciDate:		Mar 2022
15662306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
15762306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the minimum
15862306a36Sopenharmony_ci		size of the scheme's target regions in bytes.
15962306a36Sopenharmony_ci
16062306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/sz/max
16162306a36Sopenharmony_ciDate:		Mar 2022
16262306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
16362306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the maximum
16462306a36Sopenharmony_ci		size of the scheme's target regions in bytes.
16562306a36Sopenharmony_ci
16662306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/nr_accesses/min
16762306a36Sopenharmony_ciDate:		Mar 2022
16862306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
16962306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the manimum
17062306a36Sopenharmony_ci		'nr_accesses' of the scheme's target regions.
17162306a36Sopenharmony_ci
17262306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/nr_accesses/max
17362306a36Sopenharmony_ciDate:		Mar 2022
17462306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
17562306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the maximum
17662306a36Sopenharmony_ci		'nr_accesses' of the scheme's target regions.
17762306a36Sopenharmony_ci
17862306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/age/min
17962306a36Sopenharmony_ciDate:		Mar 2022
18062306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
18162306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the minimum
18262306a36Sopenharmony_ci		'age' of the scheme's target regions.
18362306a36Sopenharmony_ci
18462306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/age/max
18562306a36Sopenharmony_ciDate:		Mar 2022
18662306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
18762306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the maximum
18862306a36Sopenharmony_ci		'age' of the scheme's target regions.
18962306a36Sopenharmony_ci
19062306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/ms
19162306a36Sopenharmony_ciDate:		Mar 2022
19262306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
19362306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the time
19462306a36Sopenharmony_ci		quota of the scheme in milliseconds.
19562306a36Sopenharmony_ci
19662306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/bytes
19762306a36Sopenharmony_ciDate:		Mar 2022
19862306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
19962306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the size
20062306a36Sopenharmony_ci		quota of the scheme in bytes.
20162306a36Sopenharmony_ci
20262306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/reset_interval_ms
20362306a36Sopenharmony_ciDate:		Mar 2022
20462306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
20562306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the quotas
20662306a36Sopenharmony_ci		charge reset interval of the scheme in milliseconds.
20762306a36Sopenharmony_ci
20862306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/weights/sz_permil
20962306a36Sopenharmony_ciDate:		Mar 2022
21062306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
21162306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the
21262306a36Sopenharmony_ci		under-quota limit regions prioritization weight for 'size' in
21362306a36Sopenharmony_ci		permil.
21462306a36Sopenharmony_ci
21562306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/weights/nr_accesses_permil
21662306a36Sopenharmony_ciDate:		Mar 2022
21762306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
21862306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the
21962306a36Sopenharmony_ci		under-quota limit regions prioritization weight for
22062306a36Sopenharmony_ci		'nr_accesses' in permil.
22162306a36Sopenharmony_ci
22262306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/weights/age_permil
22362306a36Sopenharmony_ciDate:		Mar 2022
22462306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
22562306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the
22662306a36Sopenharmony_ci		under-quota limit regions prioritization weight for 'age' in
22762306a36Sopenharmony_ci		permil.
22862306a36Sopenharmony_ci
22962306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/metric
23062306a36Sopenharmony_ciDate:		Mar 2022
23162306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
23262306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the metric
23362306a36Sopenharmony_ci		of the watermarks for the scheme.  The writable/readable
23462306a36Sopenharmony_ci		keywords for this file are 'none' for disabling the watermarks
23562306a36Sopenharmony_ci		feature, or 'free_mem_rate' for the system's global free memory
23662306a36Sopenharmony_ci		rate in permil.
23762306a36Sopenharmony_ci
23862306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/interval_us
23962306a36Sopenharmony_ciDate:		Mar 2022
24062306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
24162306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the metric
24262306a36Sopenharmony_ci		check interval of the watermarks for the scheme in
24362306a36Sopenharmony_ci		microseconds.
24462306a36Sopenharmony_ci
24562306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/high
24662306a36Sopenharmony_ciDate:		Mar 2022
24762306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
24862306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the high
24962306a36Sopenharmony_ci		watermark of the scheme in permil.
25062306a36Sopenharmony_ci
25162306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/mid
25262306a36Sopenharmony_ciDate:		Mar 2022
25362306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
25462306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the mid
25562306a36Sopenharmony_ci		watermark of the scheme in permil.
25662306a36Sopenharmony_ci
25762306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/low
25862306a36Sopenharmony_ciDate:		Mar 2022
25962306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
26062306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the low
26162306a36Sopenharmony_ci		watermark of the scheme in permil.
26262306a36Sopenharmony_ci
26362306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/nr_filters
26462306a36Sopenharmony_ciDate:		Dec 2022
26562306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
26662306a36Sopenharmony_ciDescription:	Writing a number 'N' to this file creates the number of
26762306a36Sopenharmony_ci		directories for setting filters of the scheme named '0' to
26862306a36Sopenharmony_ci		'N-1' under the filters/ directory.
26962306a36Sopenharmony_ci
27062306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/type
27162306a36Sopenharmony_ciDate:		Dec 2022
27262306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
27362306a36Sopenharmony_ciDescription:	Writing to and reading from this file sets and gets the type of
27462306a36Sopenharmony_ci		the memory of the interest.  'anon' for anonymous pages,
27562306a36Sopenharmony_ci		'memcg' for specific memory cgroup, 'addr' for address range
27662306a36Sopenharmony_ci		(an open-ended interval), or 'target' for DAMON monitoring
27762306a36Sopenharmony_ci		target can be written and read.
27862306a36Sopenharmony_ci
27962306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/memcg_path
28062306a36Sopenharmony_ciDate:		Dec 2022
28162306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
28262306a36Sopenharmony_ciDescription:	If 'memcg' is written to the 'type' file, writing to and
28362306a36Sopenharmony_ci		reading from this file sets and gets the path to the memory
28462306a36Sopenharmony_ci		cgroup of the interest.
28562306a36Sopenharmony_ci
28662306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/addr_start
28762306a36Sopenharmony_ciDate:		Jul 2023
28862306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
28962306a36Sopenharmony_ciDescription:	If 'addr' is written to the 'type' file, writing to or reading
29062306a36Sopenharmony_ci		from this file sets or gets the start address of the address
29162306a36Sopenharmony_ci		range for the filter.
29262306a36Sopenharmony_ci
29362306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/addr_end
29462306a36Sopenharmony_ciDate:		Jul 2023
29562306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
29662306a36Sopenharmony_ciDescription:	If 'addr' is written to the 'type' file, writing to or reading
29762306a36Sopenharmony_ci		from this file sets or gets the end address of the address
29862306a36Sopenharmony_ci		range for the filter.
29962306a36Sopenharmony_ci
30062306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/target_idx
30162306a36Sopenharmony_ciDate:		Dec 2022
30262306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
30362306a36Sopenharmony_ciDescription:	If 'target' is written to the 'type' file, writing to or
30462306a36Sopenharmony_ci		reading from this file sets or gets the index of the DAMON
30562306a36Sopenharmony_ci		monitoring target of the interest.
30662306a36Sopenharmony_ci
30762306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/matching
30862306a36Sopenharmony_ciDate:		Dec 2022
30962306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
31062306a36Sopenharmony_ciDescription:	Writing 'Y' or 'N' to this file sets whether to filter out
31162306a36Sopenharmony_ci		pages that do or do not match to the 'type' and 'memcg_path',
31262306a36Sopenharmony_ci		respectively.  Filter out means the action of the scheme will
31362306a36Sopenharmony_ci		not be applied to.
31462306a36Sopenharmony_ci
31562306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/nr_tried
31662306a36Sopenharmony_ciDate:		Mar 2022
31762306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
31862306a36Sopenharmony_ciDescription:	Reading this file returns the number of regions that the action
31962306a36Sopenharmony_ci		of the scheme has tried to be applied.
32062306a36Sopenharmony_ci
32162306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/sz_tried
32262306a36Sopenharmony_ciDate:		Mar 2022
32362306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
32462306a36Sopenharmony_ciDescription:	Reading this file returns the total size of regions that the
32562306a36Sopenharmony_ci		action of the scheme has tried to be applied in bytes.
32662306a36Sopenharmony_ci
32762306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/nr_applied
32862306a36Sopenharmony_ciDate:		Mar 2022
32962306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
33062306a36Sopenharmony_ciDescription:	Reading this file returns the number of regions that the action
33162306a36Sopenharmony_ci		of the scheme has successfully applied.
33262306a36Sopenharmony_ci
33362306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/sz_applied
33462306a36Sopenharmony_ciDate:		Mar 2022
33562306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
33662306a36Sopenharmony_ciDescription:	Reading this file returns the total size of regions that the
33762306a36Sopenharmony_ci		action of the scheme has successfully applied in bytes.
33862306a36Sopenharmony_ci
33962306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/qt_exceeds
34062306a36Sopenharmony_ciDate:		Mar 2022
34162306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
34262306a36Sopenharmony_ciDescription:	Reading this file returns the number of the exceed events of
34362306a36Sopenharmony_ci		the scheme's quotas.
34462306a36Sopenharmony_ci
34562306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/total_bytes
34662306a36Sopenharmony_ciDate:		Jul 2023
34762306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
34862306a36Sopenharmony_ciDescription:	Reading this file returns the total amount of memory that
34962306a36Sopenharmony_ci		corresponding DAMON-based Operation Scheme's action has tried
35062306a36Sopenharmony_ci		to be applied.
35162306a36Sopenharmony_ci
35262306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/<R>/start
35362306a36Sopenharmony_ciDate:		Oct 2022
35462306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
35562306a36Sopenharmony_ciDescription:	Reading this file returns the start address of a memory region
35662306a36Sopenharmony_ci		that corresponding DAMON-based Operation Scheme's action has
35762306a36Sopenharmony_ci		tried to be applied.
35862306a36Sopenharmony_ci
35962306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/<R>/end
36062306a36Sopenharmony_ciDate:		Oct 2022
36162306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
36262306a36Sopenharmony_ciDescription:	Reading this file returns the end address of a memory region
36362306a36Sopenharmony_ci		that corresponding DAMON-based Operation Scheme's action has
36462306a36Sopenharmony_ci		tried to be applied.
36562306a36Sopenharmony_ci
36662306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/<R>/nr_accesses
36762306a36Sopenharmony_ciDate:		Oct 2022
36862306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
36962306a36Sopenharmony_ciDescription:	Reading this file returns the 'nr_accesses' of a memory region
37062306a36Sopenharmony_ci		that corresponding DAMON-based Operation Scheme's action has
37162306a36Sopenharmony_ci		tried to be applied.
37262306a36Sopenharmony_ci
37362306a36Sopenharmony_ciWhat:		/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/<R>/age
37462306a36Sopenharmony_ciDate:		Oct 2022
37562306a36Sopenharmony_ciContact:	SeongJae Park <sj@kernel.org>
37662306a36Sopenharmony_ciDescription:	Reading this file returns the 'age' of a memory region that
37762306a36Sopenharmony_ci		corresponding DAMON-based Operation Scheme's action has tried
37862306a36Sopenharmony_ci		to be applied.
379