Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Docs/admin-guide/mm/damon/usage: document 'nid' file

Add description of 'nid' file, which is optionally used for specific DAMOS
quota goal metrics such as node_mem_{used,free}_bp on DAMON usage
document.

Link: https://lkml.kernel.org/r/20250420194030.75838-6-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Yunjeong Mun <yunjeong.mun@sk.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

SeongJae Park and committed by
Andrew Morton
a7bb1e75 b3b95a35

+6 -6
+6 -6
Documentation/admin-guide/mm/damon/usage.rst
··· 81 81 │ │ │ │ │ │ │ :ref:`quotas <sysfs_quotas>`/ms,bytes,reset_interval_ms,effective_bytes 82 82 │ │ │ │ │ │ │ │ weights/sz_permil,nr_accesses_permil,age_permil 83 83 │ │ │ │ │ │ │ │ :ref:`goals <sysfs_schemes_quota_goals>`/nr_goals 84 - │ │ │ │ │ │ │ │ │ 0/target_metric,target_value,current_value 84 + │ │ │ │ │ │ │ │ │ 0/target_metric,target_value,current_value,nid 85 85 │ │ │ │ │ │ │ :ref:`watermarks <sysfs_watermarks>`/metric,interval_us,high,mid,low 86 86 │ │ │ │ │ │ │ :ref:`{core_,ops_,}filters <sysfs_filters>`/nr_filters 87 87 │ │ │ │ │ │ │ │ 0/type,matching,allow,memcg_path,addr_start,addr_end,target_idx,min,max ··· 390 390 to ``N-1``. Each directory represents each goal and current achievement. 391 391 Among the multiple feedback, the best one is used. 392 392 393 - Each goal directory contains three files, namely ``target_metric``, 394 - ``target_value`` and ``current_value``. Users can set and get the three 395 - parameters for the quota auto-tuning goals that specified on the :ref:`design 396 - doc <damon_design_damos_quotas_auto_tuning>` by writing to and reading from each 397 - of the files. Note that users should further write 393 + Each goal directory contains four files, namely ``target_metric``, 394 + ``target_value``, ``current_value`` and ``nid``. Users can set and get the 395 + four parameters for the quota auto-tuning goals that specified on the 396 + :ref:`design doc <damon_design_damos_quotas_auto_tuning>` by writing to and 397 + reading from each of the files. Note that users should further write 398 398 ``commit_schemes_quota_goals`` to the ``state`` file of the :ref:`kdamond 399 399 directory <sysfs_kdamond>` to pass the feedback to DAMON. 400 400