Home
last modified time | relevance | path

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

/linux-6.15/mm/damon/
H A Dsysfs.c1543 if (kdamond->damon_ctx) in damon_sysfs_turn_damon_on()
1555 kdamond->damon_ctx = ctx; in damon_sysfs_turn_damon_on()
1561 if (!kdamond->damon_ctx) in damon_sysfs_turn_damon_off()
1576 if (!kdamond->damon_ctx) in damon_sysfs_damon_call()
1646 kdamond); in damon_sysfs_handle_cmd()
1660 kdamond); in damon_sysfs_handle_cmd()
1701 ctx = kdamond->damon_ctx; in pid_show()
1706 if (ctx->kdamond) in pid_show()
1719 if (kdamond->damon_ctx) in damon_sysfs_kdamond_release()
1721 kfree(kdamond); in damon_sysfs_kdamond_release()
[all …]
H A Dcore.c1206 if (!ctx->kdamond) { in __damon_start()
1209 ctx->kdamond = kthread_run(kdamond_fn, ctx, "kdamond.%d", in __damon_start()
1211 if (IS_ERR(ctx->kdamond)) { in __damon_start()
1212 err = PTR_ERR(ctx->kdamond); in __damon_start()
1213 ctx->kdamond = NULL; in __damon_start()
1274 tsk = ctx->kdamond; in __damon_stop()
1311 running = ctx->kdamond != NULL; in damon_is_running()
2517 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-6.15/Documentation/translations/zh_TW/admin-guide/mm/damon/
H A Dusage.rst97 與監測相關的信息包括請求規格和結果被稱爲DAMON上下文。DAMON用一個叫做kdamond的內核線程
102 ``0`` 到 ``N-1`` 的子目錄數量。每個目錄代表每個kdamond
107 在每個kdamond目錄中,存在兩個文件(``state`` 和 ``pid`` )和一個目錄( ``contexts`` )。
109 讀取 ``state`` 時,如果kdamond當前正在運行,則返回 ``on`` ,如果沒有運行則返回 ``off`` 。
110 寫入 ``on`` 或 ``off`` 使kdamond處於狀態。向 ``state`` 文件寫 ``update_schemes_stats`` ,
111 更新kdamond的每個基於DAMON的操作方案的統計文件的內容。關於統計信息的細節,請參考
113 ``state`` 文件,爲kdamond的每個基於DAMON的操作方案,更新基於DAMON的操作方案動作的嘗試區域目錄。
114 將`clear_schemes_tried_regions`寫入`state`文件,清除kdamond的每個基於DAMON的操作方案的動作
118 如果狀態爲 ``on``,讀取 ``pid`` 顯示kdamond線程的pid。
120 ``contexts`` 目錄包含控制這個kdamond要執行的監測上下文的文件。
[all …]
/linux-6.15/Documentation/translations/zh_CN/admin-guide/mm/damon/
H A Dusage.rst97 与监测相关的信息包括请求规格和结果被称为DAMON上下文。DAMON用一个叫做kdamond的内核线程
102 ``0`` 到 ``N-1`` 的子目录数量。每个目录代表每个kdamond
107 在每个kdamond目录中,存在两个文件(``state`` 和 ``pid`` )和一个目录( ``contexts`` )。
109 读取 ``state`` 时,如果kdamond当前正在运行,则返回 ``on`` ,如果没有运行则返回 ``off`` 。
110 写入 ``on`` 或 ``off`` 使kdamond处于状态。向 ``state`` 文件写 ``update_schemes_stats`` ,
111 更新kdamond的每个基于DAMON的操作方案的统计文件的内容。关于统计信息的细节,请参考
113 ``state`` 文件,为kdamond的每个基于DAMON的操作方案,更新基于DAMON的操作方案动作的尝试区域目录。
114 将`clear_schemes_tried_regions`写入`state`文件,清除kdamond的每个基于DAMON的操作方案的动作
118 如果状态为 ``on``,读取 ``pid`` 显示kdamond线程的pid。
120 ``contexts`` 目录包含控制这个kdamond要执行的监测上下文的文件。
[all …]
/linux-6.15/tools/testing/selftests/damon/
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 Dreclaim.sh20 nr_kdamonds=$(pgrep kdamond | wc -l)
29 nr_kdamonds=$(pgrep kdamond | wc -l)
37 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-6.15/Documentation/admin-guide/mm/damon/
H A Dusage.rst117 kdamond.
127 Reading ``state`` returns ``on`` if the kdamond is currently running, or
130 Users can write below commands for the kdamond to the ``state`` file.
137 ``aggr_us`` files of the kdamond with the auto-tuning applied ``sampling
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.
160 If the state is ``on``, reading ``pid`` shows the pid of the kdamond thread.
163 that this kdamond will execute.
174 details). At the moment, only one context per kdamond is supported, so only
[all …]
/linux-6.15/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-6.15/include/linux/
H A Ddamon.h779 struct task_struct *kdamond; member
/linux-6.15/Documentation/mm/damon/
H A Ddesign.rst16 called ``kdamond``. Multiple kdamonds could run in parallel, for different