| 1 |
what: /sys/kernel/mm/damon/ |
| 2 |
Date: Mar 2022 |
| 3 |
Contact: SeongJae Park <[email protected]> |
| 4 |
Description: Interface for Data Access MONitoring (DAMON). Contains files |
| 5 |
for controlling DAMON. For more details on DAMON itself, |
| 6 |
please refer to Documentation/admin-guide/mm/damon/index.rst. |
| 7 |
|
| 8 |
What: /sys/kernel/mm/damon/admin/ |
| 9 |
Date: Mar 2022 |
| 10 |
Contact: SeongJae Park <[email protected]> |
| 11 |
Description: Interface for privileged users of DAMON. Contains files for |
| 12 |
controlling DAMON that aimed to be used by privileged users. |
| 13 |
|
| 14 |
What: /sys/kernel/mm/damon/admin/kdamonds/nr_kdamonds |
| 15 |
Date: Mar 2022 |
| 16 |
Contact: SeongJae Park <[email protected]> |
| 17 |
Description: Writing a number 'N' to this file creates the number of |
| 18 |
directories for controlling each DAMON worker thread (kdamond) |
| 19 |
named '0' to 'N-1' under the kdamonds/ directory. |
| 20 |
|
| 21 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/state |
| 22 |
Date: Mar 2022 |
| 23 |
Contact: SeongJae Park <[email protected]> |
| 24 |
Description: Writing 'on' or 'off' to this file makes the kdamond starts or |
| 25 |
stops, respectively. Reading the file returns the keywords |
| 26 |
based on the current status. Writing 'commit' to this file |
| 27 |
makes the kdamond reads the user inputs in the sysfs files |
| 28 |
except 'state' again. Writing 'commit_schemes_quota_goals' to |
| 29 |
this file makes the kdamond reads the quota goal files again. |
| 30 |
Writing 'update_schemes_stats' to the file updates contents of |
| 31 |
schemes stats files of the kdamond. Writing |
| 32 |
'update_schemes_tried_regions' to the file updates contents of |
| 33 |
'tried_regions' directory of every scheme directory of this |
| 34 |
kdamond. Writing 'update_schemes_tried_bytes' to the file |
| 35 |
updates only '.../tried_regions/total_bytes' files of this |
| 36 |
kdamond. Writing 'clear_schemes_tried_regions' to the file |
| 37 |
removes contents of the 'tried_regions' directory. Writing |
| 38 |
'update_schemes_effective_quotas' to the file updates |
| 39 |
'.../quotas/effective_bytes' files of this kdamond. |
| 40 |
|
| 41 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/pid |
| 42 |
Date: Mar 2022 |
| 43 |
Contact: SeongJae Park <[email protected]> |
| 44 |
Description: Reading this file returns the pid of the kdamond if it is |
| 45 |
running. |
| 46 |
|
| 47 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/refresh_ms |
| 48 |
Date: Jul 2025 |
| 49 |
Contact: SeongJae Park <[email protected]> |
| 50 |
Description: Writing a value to this file sets the time interval for |
| 51 |
automatic DAMON status file contents update. Writing '0' |
| 52 |
disables the update. Reading this file returns the value. |
| 53 |
|
| 54 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/nr_contexts |
| 55 |
Date: Mar 2022 |
| 56 |
Contact: SeongJae Park <[email protected]> |
| 57 |
Description: Writing a number 'N' to this file creates the number of |
| 58 |
directories for controlling each DAMON context named '0' to |
| 59 |
'N-1' under the contexts/ directory. |
| 60 |
|
| 61 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/avail_operations |
| 62 |
Date: Apr 2022 |
| 63 |
Contact: SeongJae Park <[email protected]> |
| 64 |
Description: Reading this file returns the available monitoring operations |
| 65 |
sets on the currently running kernel. |
| 66 |
|
| 67 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/operations |
| 68 |
Date: Mar 2022 |
| 69 |
Contact: SeongJae Park <[email protected]> |
| 70 |
Description: Writing a keyword for a monitoring operations set ('vaddr' for |
| 71 |
virtual address spaces monitoring, 'fvaddr' for fixed virtual |
| 72 |
address ranges monitoring, and 'paddr' for the physical address |
| 73 |
space monitoring) to this file makes the context to use the |
| 74 |
operations set. Reading the file returns the keyword for the |
| 75 |
operations set the context is set to use. |
| 76 |
|
| 77 |
Note that only the operations sets that listed in |
| 78 |
'avail_operations' file are valid inputs. |
| 79 |
|
| 80 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/addr_unit |
| 81 |
Date: Aug 2025 |
| 82 |
Contact: SeongJae Park <[email protected]> |
| 83 |
Description: Writing an integer to this file sets the 'address unit' |
| 84 |
parameter of the given operations set of the context. Reading |
| 85 |
the file returns the last-written 'address unit' value. |
| 86 |
|
| 87 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/intervals/sample_us |
| 88 |
Date: Mar 2022 |
| 89 |
Contact: SeongJae Park <[email protected]> |
| 90 |
Description: Writing a value to this file sets the sampling interval of the |
| 91 |
DAMON context in microseconds as the value. Reading this file |
| 92 |
returns the value. |
| 93 |
|
| 94 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/intervals/aggr_us |
| 95 |
Date: Mar 2022 |
| 96 |
Contact: SeongJae Park <[email protected]> |
| 97 |
Description: Writing a value to this file sets the aggregation interval of |
| 98 |
the DAMON context in microseconds as the value. Reading this |
| 99 |
file returns the value. |
| 100 |
|
| 101 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/intervals/update_us |
| 102 |
Date: Mar 2022 |
| 103 |
Contact: SeongJae Park <[email protected]> |
| 104 |
Description: Writing a value to this file sets the update interval of the |
| 105 |
DAMON context in microseconds as the value. Reading this file |
| 106 |
returns the value. |
| 107 |
|
| 108 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/intervals/intrvals_goal/access_bp |
| 109 |
Date: Feb 2025 |
| 110 |
Contact: SeongJae Park <[email protected]> |
| 111 |
Description: Writing a value to this file sets the monitoring intervals |
| 112 |
auto-tuning target DAMON-observed access events ratio within |
| 113 |
the given time interval (aggrs in same directory), in bp |
| 114 |
(1/10,000). Reading this file returns the value. |
| 115 |
|
| 116 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/intervals/intrvals_goal/aggrs |
| 117 |
Date: Feb 2025 |
| 118 |
Contact: SeongJae Park <[email protected]> |
| 119 |
Description: Writing a value to this file sets the time interval to achieve |
| 120 |
the monitoring intervals auto-tuning target DAMON-observed |
| 121 |
access events ratio (access_bp in same directory) within. |
| 122 |
Reading this file returns the value. |
| 123 |
|
| 124 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/intervals/intrvals_goal/min_sample_us |
| 125 |
Date: Feb 2025 |
| 126 |
Contact: SeongJae Park <[email protected]> |
| 127 |
Description: Writing a value to this file sets the minimum value of |
| 128 |
auto-tuned sampling interval in microseconds. Reading this |
| 129 |
file returns the value. |
| 130 |
|
| 131 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/intervals/intrvals_goal/max_sample_us |
| 132 |
Date: Feb 2025 |
| 133 |
Contact: SeongJae Park <[email protected]> |
| 134 |
Description: Writing a value to this file sets the maximum value of |
| 135 |
auto-tuned sampling interval in microseconds. Reading this |
| 136 |
file returns the value. |
| 137 |
|
| 138 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/nr_regions/min |
| 139 |
|
| 140 |
WDate: Mar 2022 |
| 141 |
Contact: SeongJae Park <[email protected]> |
| 142 |
Description: Writing a value to this file sets the minimum number of |
| 143 |
monitoring regions of the DAMON context as the value. Reading |
| 144 |
this file returns the value. |
| 145 |
|
| 146 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/nr_regions/max |
| 147 |
Date: Mar 2022 |
| 148 |
Contact: SeongJae Park <[email protected]> |
| 149 |
Description: Writing a value to this file sets the maximum number of |
| 150 |
monitoring regions of the DAMON context as the value. Reading |
| 151 |
this file returns the value. |
| 152 |
|
| 153 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/nr_targets |
| 154 |
Date: Mar 2022 |
| 155 |
Contact: SeongJae Park <[email protected]> |
| 156 |
Description: Writing a number 'N' to this file creates the number of |
| 157 |
directories for controlling each DAMON target of the context |
| 158 |
named '0' to 'N-1' under the contexts/ directory. |
| 159 |
|
| 160 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/<T>/pid_target |
| 161 |
Date: Mar 2022 |
| 162 |
Contact: SeongJae Park <[email protected]> |
| 163 |
Description: Writing to and reading from this file sets and gets the pid of |
| 164 |
the target process if the context is for virtual address spaces |
| 165 |
monitoring, respectively. |
| 166 |
|
| 167 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/<T>/obsolete_target |
| 168 |
Date: Oct 2025 |
| 169 |
Contact: SeongJae Park <[email protected]> |
| 170 |
Description: Writing to and reading from this file sets and gets the |
| 171 |
obsoleteness of the matching parameters commit destination |
| 172 |
target. |
| 173 |
|
| 174 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/<T>/regions/nr_regions |
| 175 |
Date: Mar 2022 |
| 176 |
Contact: SeongJae Park <[email protected]> |
| 177 |
Description: Writing a number 'N' to this file creates the number of |
| 178 |
directories for setting each DAMON target memory region of the |
| 179 |
context named '0' to 'N-1' under the regions/ directory. In |
| 180 |
case of the virtual address space monitoring, DAMON |
| 181 |
automatically sets the target memory region based on the target |
| 182 |
processes' mappings. |
| 183 |
|
| 184 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/<T>/regions/<R>/start |
| 185 |
Date: Mar 2022 |
| 186 |
Contact: SeongJae Park <[email protected]> |
| 187 |
Description: Writing to and reading from this file sets and gets the start |
| 188 |
address of the monitoring region. |
| 189 |
|
| 190 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/<T>/regions/<R>/end |
| 191 |
Date: Mar 2022 |
| 192 |
Contact: SeongJae Park <[email protected]> |
| 193 |
Description: Writing to and reading from this file sets and gets the end |
| 194 |
address of the monitoring region. |
| 195 |
|
| 196 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/nr_schemes |
| 197 |
Date: Mar 2022 |
| 198 |
Contact: SeongJae Park <[email protected]> |
| 199 |
Description: Writing a number 'N' to this file creates the number of |
| 200 |
directories for controlling each DAMON-based operation scheme |
| 201 |
of the context named '0' to 'N-1' under the schemes/ directory. |
| 202 |
|
| 203 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/action |
| 204 |
Date: Mar 2022 |
| 205 |
Contact: SeongJae Park <[email protected]> |
| 206 |
Description: Writing to and reading from this file sets and gets the action |
| 207 |
of the scheme. |
| 208 |
|
| 209 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/target_nid |
| 210 |
Date: Jun 2024 |
| 211 |
Contact: SeongJae Park <[email protected]> |
| 212 |
Description: Action's target NUMA node id. Supported by only relevant |
| 213 |
actions. |
| 214 |
|
| 215 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/apply_interval_us |
| 216 |
Date: Sep 2023 |
| 217 |
Contact: SeongJae Park <[email protected]> |
| 218 |
Description: Writing a value to this file sets the action apply interval of |
| 219 |
the scheme in microseconds. Reading this file returns the |
| 220 |
value. |
| 221 |
|
| 222 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/sz/min |
| 223 |
Date: Mar 2022 |
| 224 |
Contact: SeongJae Park <[email protected]> |
| 225 |
Description: Writing to and reading from this file sets and gets the minimum |
| 226 |
size of the scheme's target regions in bytes. |
| 227 |
|
| 228 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/sz/max |
| 229 |
Date: Mar 2022 |
| 230 |
Contact: SeongJae Park <[email protected]> |
| 231 |
Description: Writing to and reading from this file sets and gets the maximum |
| 232 |
size of the scheme's target regions in bytes. |
| 233 |
|
| 234 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/nr_accesses/min |
| 235 |
Date: Mar 2022 |
| 236 |
Contact: SeongJae Park <[email protected]> |
| 237 |
Description: Writing to and reading from this file sets and gets the manimum |
| 238 |
'nr_accesses' of the scheme's target regions. |
| 239 |
|
| 240 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/nr_accesses/max |
| 241 |
Date: Mar 2022 |
| 242 |
Contact: SeongJae Park <[email protected]> |
| 243 |
Description: Writing to and reading from this file sets and gets the maximum |
| 244 |
'nr_accesses' of the scheme's target regions. |
| 245 |
|
| 246 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/age/min |
| 247 |
Date: Mar 2022 |
| 248 |
Contact: SeongJae Park <[email protected]> |
| 249 |
Description: Writing to and reading from this file sets and gets the minimum |
| 250 |
'age' of the scheme's target regions. |
| 251 |
|
| 252 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/age/max |
| 253 |
Date: Mar 2022 |
| 254 |
Contact: SeongJae Park <[email protected]> |
| 255 |
Description: Writing to and reading from this file sets and gets the maximum |
| 256 |
'age' of the scheme's target regions. |
| 257 |
|
| 258 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/ms |
| 259 |
Date: Mar 2022 |
| 260 |
Contact: SeongJae Park <[email protected]> |
| 261 |
Description: Writing to and reading from this file sets and gets the time |
| 262 |
quota of the scheme in milliseconds. |
| 263 |
|
| 264 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/bytes |
| 265 |
Date: Mar 2022 |
| 266 |
Contact: SeongJae Park <[email protected]> |
| 267 |
Description: Writing to and reading from this file sets and gets the size |
| 268 |
quota of the scheme in bytes. |
| 269 |
|
| 270 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/effective_bytes |
| 271 |
Date: Feb 2024 |
| 272 |
Contact: SeongJae Park <[email protected]> |
| 273 |
Description: Reading from this file gets the effective size quota of the |
| 274 |
scheme in bytes, which adjusted for the time quota and goals. |
| 275 |
|
| 276 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/reset_interval_ms |
| 277 |
Date: Mar 2022 |
| 278 |
Contact: SeongJae Park <[email protected]> |
| 279 |
Description: Writing to and reading from this file sets and gets the quotas |
| 280 |
charge reset interval of the scheme in milliseconds. |
| 281 |
|
| 282 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/goals/nr_goals |
| 283 |
Date: Nov 2023 |
| 284 |
Contact: SeongJae Park <[email protected]> |
| 285 |
Description: Writing a number 'N' to this file creates the number of |
| 286 |
directories for setting automatic tuning of the scheme's |
| 287 |
aggressiveness named '0' to 'N-1' under the goals/ directory. |
| 288 |
|
| 289 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/goals/<G>/target_metric |
| 290 |
Date: Feb 2024 |
| 291 |
Contact: SeongJae Park <[email protected]> |
| 292 |
Description: Writing to and reading from this file sets and gets the quota |
| 293 |
auto-tuning goal metric. |
| 294 |
|
| 295 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/goals/<G>/target_value |
| 296 |
Date: Nov 2023 |
| 297 |
Contact: SeongJae Park <[email protected]> |
| 298 |
Description: Writing to and reading from this file sets and gets the target |
| 299 |
value of the goal metric. |
| 300 |
|
| 301 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/goals/<G>/current_value |
| 302 |
Date: Nov 2023 |
| 303 |
Contact: SeongJae Park <[email protected]> |
| 304 |
Description: Writing to and reading from this file sets and gets the current |
| 305 |
value of the goal metric. |
| 306 |
|
| 307 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/goals/<G>/nid |
| 308 |
Date: Apr 2025 |
| 309 |
Contact: SeongJae Park <[email protected]> |
| 310 |
Description: Writing to and reading from this file sets and gets the nid |
| 311 |
parameter of the goal. |
| 312 |
|
| 313 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/goals/<G>/path |
| 314 |
Date: Oct 2025 |
| 315 |
Contact: SeongJae Park <[email protected]> |
| 316 |
Description: Writing to and reading from this file sets and gets the path |
| 317 |
parameter of the goal. |
| 318 |
|
| 319 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/weights/sz_permil |
| 320 |
Date: Mar 2022 |
| 321 |
Contact: SeongJae Park <[email protected]> |
| 322 |
Description: Writing to and reading from this file sets and gets the |
| 323 |
under-quota limit regions prioritization weight for 'size' in |
| 324 |
permil. |
| 325 |
|
| 326 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/weights/nr_accesses_permil |
| 327 |
Date: Mar 2022 |
| 328 |
Contact: SeongJae Park <[email protected]> |
| 329 |
Description: Writing to and reading from this file sets and gets the |
| 330 |
under-quota limit regions prioritization weight for |
| 331 |
'nr_accesses' in permil. |
| 332 |
|
| 333 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/weights/age_permil |
| 334 |
Date: Mar 2022 |
| 335 |
Contact: SeongJae Park <[email protected]> |
| 336 |
Description: Writing to and reading from this file sets and gets the |
| 337 |
under-quota limit regions prioritization weight for 'age' in |
| 338 |
permil. |
| 339 |
|
| 340 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/metric |
| 341 |
Date: Mar 2022 |
| 342 |
Contact: SeongJae Park <[email protected]> |
| 343 |
Description: Writing to and reading from this file sets and gets the metric |
| 344 |
of the watermarks for the scheme. The writable/readable |
| 345 |
keywords for this file are 'none' for disabling the watermarks |
| 346 |
feature, or 'free_mem_rate' for the system's global free memory |
| 347 |
rate in permil. |
| 348 |
|
| 349 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/interval_us |
| 350 |
Date: Mar 2022 |
| 351 |
Contact: SeongJae Park <[email protected]> |
| 352 |
Description: Writing to and reading from this file sets and gets the metric |
| 353 |
check interval of the watermarks for the scheme in |
| 354 |
microseconds. |
| 355 |
|
| 356 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/high |
| 357 |
Date: Mar 2022 |
| 358 |
Contact: SeongJae Park <[email protected]> |
| 359 |
Description: Writing to and reading from this file sets and gets the high |
| 360 |
watermark of the scheme in permil. |
| 361 |
|
| 362 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/mid |
| 363 |
Date: Mar 2022 |
| 364 |
Contact: SeongJae Park <[email protected]> |
| 365 |
Description: Writing to and reading from this file sets and gets the mid |
| 366 |
watermark of the scheme in permil. |
| 367 |
|
| 368 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/low |
| 369 |
Date: Mar 2022 |
| 370 |
Contact: SeongJae Park <[email protected]> |
| 371 |
Description: Writing to and reading from this file sets and gets the low |
| 372 |
watermark of the scheme in permil. |
| 373 |
|
| 374 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/nr_filters |
| 375 |
Date: Dec 2022 |
| 376 |
Contact: SeongJae Park <[email protected]> |
| 377 |
Description: Writing a number 'N' to this file creates the number of |
| 378 |
directories for setting filters of the scheme named '0' to |
| 379 |
'N-1' under the filters/ directory. |
| 380 |
|
| 381 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/type |
| 382 |
Date: Dec 2022 |
| 383 |
Contact: SeongJae Park <[email protected]> |
| 384 |
Description: Writing to and reading from this file sets and gets the type of |
| 385 |
the memory of the interest. 'anon' for anonymous pages, |
| 386 |
'memcg' for specific memory cgroup, 'young' for young pages, |
| 387 |
'addr' for address range (an open-ended interval), or 'target' |
| 388 |
for DAMON monitoring target can be written and read. |
| 389 |
|
| 390 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/memcg_path |
| 391 |
Date: Dec 2022 |
| 392 |
Contact: SeongJae Park <[email protected]> |
| 393 |
Description: If 'memcg' is written to the 'type' file, writing to and |
| 394 |
reading from this file sets and gets the path to the memory |
| 395 |
cgroup of the interest. |
| 396 |
|
| 397 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/addr_start |
| 398 |
Date: Jul 2023 |
| 399 |
Contact: SeongJae Park <[email protected]> |
| 400 |
Description: If 'addr' is written to the 'type' file, writing to or reading |
| 401 |
from this file sets or gets the start address of the address |
| 402 |
range for the filter. |
| 403 |
|
| 404 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/addr_end |
| 405 |
Date: Jul 2023 |
| 406 |
Contact: SeongJae Park <[email protected]> |
| 407 |
Description: If 'addr' is written to the 'type' file, writing to or reading |
| 408 |
from this file sets or gets the end address of the address |
| 409 |
range for the filter. |
| 410 |
|
| 411 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/min |
| 412 |
Date: Feb 2025 |
| 413 |
Contact: SeongJae Park <[email protected]> |
| 414 |
Description: If 'hugepage_size' is written to the 'type' file, writing to |
| 415 |
or reading from this file sets or gets the minimum size of the |
| 416 |
hugepage for the filter. |
| 417 |
|
| 418 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/max |
| 419 |
Date: Feb 2025 |
| 420 |
Contact: SeongJae Park <[email protected]> |
| 421 |
Description: If 'hugepage_size' is written to the 'type' file, writing to |
| 422 |
or reading from this file sets or gets the maximum size of the |
| 423 |
hugepage for the filter. |
| 424 |
|
| 425 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/target_idx |
| 426 |
Date: Dec 2022 |
| 427 |
Contact: SeongJae Park <[email protected]> |
| 428 |
Description: If 'target' is written to the 'type' file, writing to or |
| 429 |
reading from this file sets or gets the index of the DAMON |
| 430 |
monitoring target of the interest. |
| 431 |
|
| 432 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/matching |
| 433 |
Date: Dec 2022 |
| 434 |
Contact: SeongJae Park <[email protected]> |
| 435 |
Description: Writing 'Y' or 'N' to this file sets whether the filter is for |
| 436 |
the memory of the 'type', or all except the 'type'. |
| 437 |
|
| 438 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/allow |
| 439 |
Date: Jan 2025 |
| 440 |
Contact: SeongJae Park <[email protected]> |
| 441 |
Description: Writing 'Y' or 'N' to this file sets whether to allow or reject |
| 442 |
applying the scheme's action to the memory that satisfies the |
| 443 |
'type' and the 'matching' of the directory. |
| 444 |
|
| 445 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/core_filters |
| 446 |
Date: Feb 2025 |
| 447 |
Contact: SeongJae Park <[email protected]> |
| 448 |
Description: Directory for DAMON core layer-handled DAMOS filters. Files |
| 449 |
under this directory works same to those of |
| 450 |
/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters |
| 451 |
directory. |
| 452 |
|
| 453 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/ops_filters |
| 454 |
Date: Feb 2025 |
| 455 |
Contact: SeongJae Park <[email protected]> |
| 456 |
Description: Directory for DAMON operations set layer-handled DAMOS filters. |
| 457 |
Files under this directory works same to those of |
| 458 |
/sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters |
| 459 |
directory. |
| 460 |
|
| 461 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/dests/nr_dests |
| 462 |
Date: Jul 2025 |
| 463 |
Contact: SeongJae Park <[email protected]> |
| 464 |
Description: Writing a number 'N' to this file creates the number of |
| 465 |
directories for setting action destinations of the scheme named |
| 466 |
'0' to 'N-1' under the dests/ directory. |
| 467 |
|
| 468 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/dests/<D>/id |
| 469 |
Date: Jul 2025 |
| 470 |
Contact: SeongJae Park <[email protected]> |
| 471 |
Description: Writing to and reading from this file sets and gets the id of |
| 472 |
the DAMOS action destination. For DAMOS_MIGRATE_{HOT,COLD} |
| 473 |
actions, the destination node's node id can be written and |
| 474 |
read. |
| 475 |
|
| 476 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/dests/<D>/weight |
| 477 |
Date: Jul 2025 |
| 478 |
Contact: SeongJae Park <[email protected]> |
| 479 |
Description: Writing to and reading from this file sets and gets the weight |
| 480 |
of the DAMOS action destination to select as the destination of |
| 481 |
each action among the destinations. |
| 482 |
|
| 483 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/nr_tried |
| 484 |
Date: Mar 2022 |
| 485 |
Contact: SeongJae Park <[email protected]> |
| 486 |
Description: Reading this file returns the number of regions that the action |
| 487 |
of the scheme has tried to be applied. |
| 488 |
|
| 489 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/sz_tried |
| 490 |
Date: Mar 2022 |
| 491 |
Contact: SeongJae Park <[email protected]> |
| 492 |
Description: Reading this file returns the total size of regions that the |
| 493 |
action of the scheme has tried to be applied in bytes. |
| 494 |
|
| 495 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/nr_applied |
| 496 |
Date: Mar 2022 |
| 497 |
Contact: SeongJae Park <[email protected]> |
| 498 |
Description: Reading this file returns the number of regions that the action |
| 499 |
of the scheme has successfully applied. |
| 500 |
|
| 501 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/sz_applied |
| 502 |
Date: Mar 2022 |
| 503 |
Contact: SeongJae Park <[email protected]> |
| 504 |
Description: Reading this file returns the total size of regions that the |
| 505 |
action of the scheme has successfully applied in bytes. |
| 506 |
|
| 507 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/sz_ops_filter_passed |
| 508 |
Date: Dec 2024 |
| 509 |
Contact: SeongJae Park <[email protected]> |
| 510 |
Description: Reading this file returns the total size of memory that passed |
| 511 |
DAMON operations layer-handled filters of the scheme in bytes. |
| 512 |
|
| 513 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/qt_exceeds |
| 514 |
Date: Mar 2022 |
| 515 |
Contact: SeongJae Park <[email protected]> |
| 516 |
Description: Reading this file returns the number of the exceed events of |
| 517 |
the scheme's quotas. |
| 518 |
|
| 519 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/nr_snapshots |
| 520 |
Date: Dec 2025 |
| 521 |
Contact: SeongJae Park <[email protected]> |
| 522 |
Description: Reading this file returns the total number of DAMON snapshots |
| 523 |
that the scheme has tried to be applied. |
| 524 |
|
| 525 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/max_nr_snapshots |
| 526 |
Date: Dec 2025 |
| 527 |
Contact: SeongJae Park <[email protected]> |
| 528 |
Description: Writing a number to this file sets the upper limit of |
| 529 |
nr_snapshots that deactivates the scheme when the limit is |
| 530 |
reached or exceeded. |
| 531 |
|
| 532 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/total_bytes |
| 533 |
Date: Jul 2023 |
| 534 |
Contact: SeongJae Park <[email protected]> |
| 535 |
Description: Reading this file returns the total amount of memory that |
| 536 |
corresponding DAMON-based Operation Scheme's action has tried |
| 537 |
to be applied. |
| 538 |
|
| 539 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/<R>/start |
| 540 |
Date: Oct 2022 |
| 541 |
Contact: SeongJae Park <[email protected]> |
| 542 |
Description: Reading this file returns the start address of a memory region |
| 543 |
that corresponding DAMON-based Operation Scheme's action has |
| 544 |
tried to be applied. |
| 545 |
|
| 546 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/<R>/end |
| 547 |
Date: Oct 2022 |
| 548 |
Contact: SeongJae Park <[email protected]> |
| 549 |
Description: Reading this file returns the end address of a memory region |
| 550 |
that corresponding DAMON-based Operation Scheme's action has |
| 551 |
tried to be applied. |
| 552 |
|
| 553 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/<R>/nr_accesses |
| 554 |
Date: Oct 2022 |
| 555 |
Contact: SeongJae Park <[email protected]> |
| 556 |
Description: Reading this file returns the 'nr_accesses' of a memory region |
| 557 |
that corresponding DAMON-based Operation Scheme's action has |
| 558 |
tried to be applied. |
| 559 |
|
| 560 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/<R>/age |
| 561 |
Date: Oct 2022 |
| 562 |
Contact: SeongJae Park <[email protected]> |
| 563 |
Description: Reading this file returns the 'age' of a memory region that |
| 564 |
corresponding DAMON-based Operation Scheme's action has tried |
| 565 |
to be applied. |
| 566 |
|
| 567 |
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/<R>/sz_filter_passed |
| 568 |
Date: Dec 2024 |
| 569 |
Contact: SeongJae Park <[email protected]> |
| 570 |
Description: Reading this file returns the size of the memory in the region |
| 571 |
that passed DAMON operations layer-handled filters of the |
| 572 |
scheme in bytes. |