sysfs-kernel-mm-damon 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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. What: /sys/kernel/mm/damon/admin/
  8. Date: Mar 2022
  9. Contact: SeongJae Park <[email protected]>
  10. Description: Interface for privileged users of DAMON. Contains files for
  11. controlling DAMON that aimed to be used by privileged users.
  12. What: /sys/kernel/mm/damon/admin/kdamonds/nr_kdamonds
  13. Date: Mar 2022
  14. Contact: SeongJae Park <[email protected]>
  15. Description: Writing a number 'N' to this file creates the number of
  16. directories for controlling each DAMON worker thread (kdamond)
  17. named '0' to 'N-1' under the kdamonds/ directory.
  18. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/state
  19. Date: Mar 2022
  20. Contact: SeongJae Park <[email protected]>
  21. Description: Writing 'on' or 'off' to this file makes the kdamond starts or
  22. stops, respectively. Reading the file returns the keywords
  23. based on the current status. Writing 'commit' to this file
  24. makes the kdamond reads the user inputs in the sysfs files
  25. except 'state' again. Writing 'update_schemes_stats' to the
  26. file updates contents of schemes stats files of the kdamond.
  27. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/pid
  28. Date: Mar 2022
  29. Contact: SeongJae Park <[email protected]>
  30. Description: Reading this file returns the pid of the kdamond if it is
  31. running.
  32. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/nr_contexts
  33. Date: Mar 2022
  34. Contact: SeongJae Park <[email protected]>
  35. Description: Writing a number 'N' to this file creates the number of
  36. directories for controlling each DAMON context named '0' to
  37. 'N-1' under the contexts/ directory.
  38. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/avail_operations
  39. Date: Apr 2022
  40. Contact: SeongJae Park <[email protected]>
  41. Description: Reading this file returns the available monitoring operations
  42. sets on the currently running kernel.
  43. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/operations
  44. Date: Mar 2022
  45. Contact: SeongJae Park <[email protected]>
  46. Description: Writing a keyword for a monitoring operations set ('vaddr' for
  47. virtual address spaces monitoring, 'fvaddr' for fixed virtual
  48. address ranges monitoring, and 'paddr' for the physical address
  49. space monitoring) to this file makes the context to use the
  50. operations set. Reading the file returns the keyword for the
  51. operations set the context is set to use.
  52. Note that only the operations sets that listed in
  53. 'avail_operations' file are valid inputs.
  54. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/intervals/sample_us
  55. Date: Mar 2022
  56. Contact: SeongJae Park <[email protected]>
  57. Description: Writing a value to this file sets the sampling interval of the
  58. DAMON context in microseconds as the value. Reading this file
  59. returns the value.
  60. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/intervals/aggr_us
  61. Date: Mar 2022
  62. Contact: SeongJae Park <[email protected]>
  63. Description: Writing a value to this file sets the aggregation interval of
  64. the DAMON context in microseconds as the value. Reading this
  65. file returns the value.
  66. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/intervals/update_us
  67. Date: Mar 2022
  68. Contact: SeongJae Park <[email protected]>
  69. Description: Writing a value to this file sets the update interval of the
  70. DAMON context in microseconds as the value. Reading this file
  71. returns the value.
  72. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/nr_regions/min
  73. WDate: Mar 2022
  74. Contact: SeongJae Park <[email protected]>
  75. Description: Writing a value to this file sets the minimum number of
  76. monitoring regions of the DAMON context as the value. Reading
  77. this file returns the value.
  78. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/monitoring_attrs/nr_regions/max
  79. Date: Mar 2022
  80. Contact: SeongJae Park <[email protected]>
  81. Description: Writing a value to this file sets the maximum number of
  82. monitoring regions of the DAMON context as the value. Reading
  83. this file returns the value.
  84. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/nr_targets
  85. Date: Mar 2022
  86. Contact: SeongJae Park <[email protected]>
  87. Description: Writing a number 'N' to this file creates the number of
  88. directories for controlling each DAMON target of the context
  89. named '0' to 'N-1' under the contexts/ directory.
  90. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/<T>/pid_target
  91. Date: Mar 2022
  92. Contact: SeongJae Park <[email protected]>
  93. Description: Writing to and reading from this file sets and gets the pid of
  94. the target process if the context is for virtual address spaces
  95. monitoring, respectively.
  96. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/<T>/regions/nr_regions
  97. Date: Mar 2022
  98. Contact: SeongJae Park <[email protected]>
  99. Description: Writing a number 'N' to this file creates the number of
  100. directories for setting each DAMON target memory region of the
  101. context named '0' to 'N-1' under the regions/ directory. In
  102. case of the virtual address space monitoring, DAMON
  103. automatically sets the target memory region based on the target
  104. processes' mappings.
  105. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/<T>/regions/<R>/start
  106. Date: Mar 2022
  107. Contact: SeongJae Park <[email protected]>
  108. Description: Writing to and reading from this file sets and gets the start
  109. address of the monitoring region.
  110. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/targets/<T>/regions/<R>/end
  111. Date: Mar 2022
  112. Contact: SeongJae Park <[email protected]>
  113. Description: Writing to and reading from this file sets and gets the end
  114. address of the monitoring region.
  115. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/nr_schemes
  116. Date: Mar 2022
  117. Contact: SeongJae Park <[email protected]>
  118. Description: Writing a number 'N' to this file creates the number of
  119. directories for controlling each DAMON-based operation scheme
  120. of the context named '0' to 'N-1' under the schemes/ directory.
  121. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/action
  122. Date: Mar 2022
  123. Contact: SeongJae Park <[email protected]>
  124. Description: Writing to and reading from this file sets and gets the action
  125. of the scheme.
  126. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/sz/min
  127. Date: Mar 2022
  128. Contact: SeongJae Park <[email protected]>
  129. Description: Writing to and reading from this file sets and gets the mimimum
  130. size of the scheme's target regions in bytes.
  131. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/sz/max
  132. Date: Mar 2022
  133. Contact: SeongJae Park <[email protected]>
  134. Description: Writing to and reading from this file sets and gets the maximum
  135. size of the scheme's target regions in bytes.
  136. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/nr_accesses/min
  137. Date: Mar 2022
  138. Contact: SeongJae Park <[email protected]>
  139. Description: Writing to and reading from this file sets and gets the manimum
  140. 'nr_accesses' of the scheme's target regions.
  141. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/nr_accesses/max
  142. Date: Mar 2022
  143. Contact: SeongJae Park <[email protected]>
  144. Description: Writing to and reading from this file sets and gets the maximum
  145. 'nr_accesses' of the scheme's target regions.
  146. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/age/min
  147. Date: Mar 2022
  148. Contact: SeongJae Park <[email protected]>
  149. Description: Writing to and reading from this file sets and gets the minimum
  150. 'age' of the scheme's target regions.
  151. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/access_pattern/age/max
  152. Date: Mar 2022
  153. Contact: SeongJae Park <[email protected]>
  154. Description: Writing to and reading from this file sets and gets the maximum
  155. 'age' of the scheme's target regions.
  156. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/ms
  157. Date: Mar 2022
  158. Contact: SeongJae Park <[email protected]>
  159. Description: Writing to and reading from this file sets and gets the time
  160. quota of the scheme in milliseconds.
  161. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/bytes
  162. Date: Mar 2022
  163. Contact: SeongJae Park <[email protected]>
  164. Description: Writing to and reading from this file sets and gets the size
  165. quota of the scheme in bytes.
  166. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/reset_interval_ms
  167. Date: Mar 2022
  168. Contact: SeongJae Park <[email protected]>
  169. Description: Writing to and reading from this file sets and gets the quotas
  170. charge reset interval of the scheme in milliseconds.
  171. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/weights/sz_permil
  172. Date: Mar 2022
  173. Contact: SeongJae Park <[email protected]>
  174. Description: Writing to and reading from this file sets and gets the
  175. under-quota limit regions prioritization weight for 'size' in
  176. permil.
  177. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/weights/nr_accesses_permil
  178. Date: Mar 2022
  179. Contact: SeongJae Park <[email protected]>
  180. Description: Writing to and reading from this file sets and gets the
  181. under-quota limit regions prioritization weight for
  182. 'nr_accesses' in permil.
  183. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/quotas/weights/age_permil
  184. Date: Mar 2022
  185. Contact: SeongJae Park <[email protected]>
  186. Description: Writing to and reading from this file sets and gets the
  187. under-quota limit regions prioritization weight for 'age' in
  188. permil.
  189. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/metric
  190. Date: Mar 2022
  191. Contact: SeongJae Park <[email protected]>
  192. Description: Writing to and reading from this file sets and gets the metric
  193. of the watermarks for the scheme. The writable/readable
  194. keywords for this file are 'none' for disabling the watermarks
  195. feature, or 'free_mem_rate' for the system's global free memory
  196. rate in permil.
  197. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/interval_us
  198. Date: Mar 2022
  199. Contact: SeongJae Park <[email protected]>
  200. Description: Writing to and reading from this file sets and gets the metric
  201. check interval of the watermarks for the scheme in
  202. microseconds.
  203. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/high
  204. Date: Mar 2022
  205. Contact: SeongJae Park <[email protected]>
  206. Description: Writing to and reading from this file sets and gets the high
  207. watermark of the scheme in permil.
  208. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/mid
  209. Date: Mar 2022
  210. Contact: SeongJae Park <[email protected]>
  211. Description: Writing to and reading from this file sets and gets the mid
  212. watermark of the scheme in permil.
  213. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/watermarks/low
  214. Date: Mar 2022
  215. Contact: SeongJae Park <[email protected]>
  216. Description: Writing to and reading from this file sets and gets the low
  217. watermark of the scheme in permil.
  218. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/nr_tried
  219. Date: Mar 2022
  220. Contact: SeongJae Park <[email protected]>
  221. Description: Reading this file returns the number of regions that the action
  222. of the scheme has tried to be applied.
  223. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/sz_tried
  224. Date: Mar 2022
  225. Contact: SeongJae Park <[email protected]>
  226. Description: Reading this file returns the total size of regions that the
  227. action of the scheme has tried to be applied in bytes.
  228. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/nr_applied
  229. Date: Mar 2022
  230. Contact: SeongJae Park <[email protected]>
  231. Description: Reading this file returns the number of regions that the action
  232. of the scheme has successfully applied.
  233. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/sz_applied
  234. Date: Mar 2022
  235. Contact: SeongJae Park <[email protected]>
  236. Description: Reading this file returns the total size of regions that the
  237. action of the scheme has successfully applied in bytes.
  238. What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/qt_exceeds
  239. Date: Mar 2022
  240. Contact: SeongJae Park <[email protected]>
  241. Description: Reading this file returns the number of the exceed events of
  242. the scheme's quotas.