Home
last modified time | relevance | path

Searched refs:kdamond (Results 1 – 14 of 14) sorted by relevance

/linux/mm/damon/
H A Dsysfs.c950 static int damon_sysfs_kdamond_add_dirs(struct damon_sysfs_kdamond *kdamond) in damon_sysfs_kdamond_add_dirs() argument
960 &damon_sysfs_contexts_ktype, &kdamond->kobj, in damon_sysfs_kdamond_add_dirs()
966 kdamond->contexts = contexts; in damon_sysfs_kdamond_add_dirs()
971 static void damon_sysfs_kdamond_rm_dirs(struct damon_sysfs_kdamond *kdamond) in damon_sysfs_kdamond_rm_dirs() argument
973 damon_sysfs_contexts_rm_dirs(kdamond->contexts); in damon_sysfs_kdamond_rm_dirs()
974 kobject_put(&kdamond->contexts->kobj); in damon_sysfs_kdamond_rm_dirs()
982 running = ctx->kdamond != NULL; in damon_sysfs_ctx_running()
1059 struct damon_sysfs_kdamond *kdamond; member
1068 struct damon_sysfs_kdamond *kdamond = container_of(kobj, in state_show() local
1070 struct damon_ctx *ctx = kdamond->damon_ctx; in state_show()
[all …]
H A Ddbgfs.c98 if (ctx->kdamond) { in dbgfs_attrs_write()
316 if (ctx->kdamond) { in dbgfs_schemes_write()
518 if (ctx->kdamond) { in dbgfs_target_ids_write()
586 if (ctx->kdamond) { in dbgfs_init_regions_read()
682 if (ctx->kdamond) { in dbgfs_init_regions_write()
709 if (ctx->kdamond) in dbgfs_kdamond_pid_read()
710 len = scnprintf(kbuf, count, "%d\n", ctx->kdamond->pid); in dbgfs_kdamond_pid_read()
H A Dcore.c1065 if (!ctx->kdamond) { in __damon_start()
1068 ctx->kdamond = kthread_run(kdamond_fn, ctx, "kdamond.%d", in __damon_start()
1070 if (IS_ERR(ctx->kdamond)) { in __damon_start()
1071 err = PTR_ERR(ctx->kdamond); in __damon_start()
1072 ctx->kdamond = NULL; in __damon_start()
1133 tsk = ctx->kdamond; in __damon_stop()
2075 ctx->kdamond = NULL; in kdamond_fn()
H A Dreclaim.c259 kdamond_pid = ctx->kdamond->pid; in damon_reclaim_turn()
H A Dlru_sort.c251 kdamond_pid = ctx->kdamond->pid; in damon_lru_sort_turn()
/linux/Documentation/translations/zh_CN/admin-guide/mm/damon/
H A Dusage.rst102 与监测相关的信息包括请求规格和结果被称为DAMON上下文。DAMON用一个叫做kdamond的内核线程
107 ``0`` 到 ``N-1`` 的子目录数量。每个目录代表每个kdamond
112 在每个kdamond目录中,存在两个文件(``state`` 和 ``pid`` )和一个目录( ``contexts`` )。
114 读取 ``state`` 时,如果kdamond当前正在运行,则返回 ``on`` ,如果没有运行则返回 ``off`` 。
115 写入 ``on`` 或 ``off`` 使kdamond处于状态。向 ``state`` 文件写 ``update_schemes_stats`` ,
116 更新kdamond的每个基于DAMON的操作方案的统计文件的内容。关于统计信息的细节,请参考
118 ``state`` 文件,为kdamond的每个基于DAMON的操作方案,更新基于DAMON的操作方案动作的尝试区域目录。
119 将`clear_schemes_tried_regions`写入`state`文件,清除kdamond的每个基于DAMON的操作方案的动作
123 如果状态为 ``on``,读取 ``pid`` 显示kdamond线程的pid。
125 ``contexts`` 目录包含控制这个kdamond要执行的监测上下文的文件。
[all …]
/linux/Documentation/translations/zh_TW/admin-guide/mm/damon/
H A Dusage.rst102 與監測相關的信息包括請求規格和結果被稱爲DAMON上下文。DAMON用一個叫做kdamond的內核線程
107 ``0`` 到 ``N-1`` 的子目錄數量。每個目錄代表每個kdamond
112 在每個kdamond目錄中,存在兩個文件(``state`` 和 ``pid`` )和一個目錄( ``contexts`` )。
114 讀取 ``state`` 時,如果kdamond當前正在運行,則返回 ``on`` ,如果沒有運行則返回 ``off`` 。
115 寫入 ``on`` 或 ``off`` 使kdamond處於狀態。向 ``state`` 文件寫 ``update_schemes_stats`` ,
116 更新kdamond的每個基於DAMON的操作方案的統計文件的內容。關於統計信息的細節,請參考
118 ``state`` 文件,爲kdamond的每個基於DAMON的操作方案,更新基於DAMON的操作方案動作的嘗試區域目錄。
119 將`clear_schemes_tried_regions`寫入`state`文件,清除kdamond的每個基於DAMON的操作方案的動作
123 如果狀態爲 ``on``,讀取 ``pid`` 顯示kdamond線程的pid。
125 ``contexts`` 目錄包含控制這個kdamond要執行的監測上下文的文件。
[all …]
/linux/tools/testing/selftests/damon/
H A Dreclaim.sh20 nr_kdamonds=$(pgrep kdamond | wc -l)
29 nr_kdamonds=$(pgrep kdamond | wc -l)
37 nr_kdamonds=$(pgrep kdamond | wc -l)
H A Dlru_sort.sh20 nr_kdamonds=$(pgrep kdamond | wc -l)
28 nr_kdamonds=$(pgrep kdamond | wc -l)
36 nr_kdamonds=$(pgrep kdamond | wc -l)
H A D_damon_sysfs.py314 kdamond = None variable in DamonCtx
334 return os.path.join(self.kdamond.sysfs_dir(), 'contexts',
386 context.kdamond = self
520 for idx, kdamond in enumerate(self.kdamonds):
521 kdamond.idx = idx
522 kdamond.kdamonds = self
532 for kdamond in self.kdamonds:
533 err = kdamond.start()
539 for kdamond in self.kdamonds:
540 err = kdamond.stop()
/linux/Documentation/admin-guide/mm/damon/
H A Dusage.rst122 kdamond.
129 In each kdamond directory, two files (``state`` and ``pid``) and one directory
132 Reading ``state`` returns ``on`` if the kdamond is currently running, or
135 Users can write below commands for the kdamond to the ``state`` file.
144 DAMON-based operation scheme of the kdamond. For details of the stats,
148 kdamond. For details of the DAMON-based operation scheme action tried
155 kdamond.
158 kdamond. For more details, refer to :ref:`quotas directory <sysfs_quotas>`.
160 If the state is ``on``, reading ``pid`` shows the pid of the kdamond thread.
163 that this kdamond will execute.
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-kernel-mm-damon18 directories for controlling each DAMON worker thread (kdamond)
24 Description: Writing 'on' or 'off' to this file makes the kdamond starts or
27 makes the kdamond reads the user inputs in the sysfs files
29 this file makes the kdamond reads the quota goal files again.
31 schemes stats files of the kdamond. Writing
34 kdamond. Writing 'update_schemes_tried_bytes' to the file
36 kdamond. Writing 'clear_schemes_tried_regions' to the file
39 '.../quotas/effective_bytes' files of this kdamond.
44 Description: Reading this file returns the pid of the kdamond if it is
/linux/include/linux/
H A Ddamon.h636 struct task_struct *kdamond; member
/linux/Documentation/mm/damon/
H A Ddesign.rst16 called ``kdamond``. Multiple kdamonds could run in parallel, for different