Searched refs:kdamond (Results 1 – 11 of 11) sorted by relevance
/linux-6.3-rc2/mm/damon/ |
A D | sysfs.c | 1211 kdamond = damon_sysfs_cmd_request.kdamond; in damon_sysfs_before_terminate() 1341 kdamond = damon_sysfs_cmd_request.kdamond; in damon_sysfs_cmd_request_callback() 1342 if (!kdamond || kdamond->damon_ctx != c) in damon_sysfs_cmd_request_callback() 1406 if (damon_sysfs_cmd_request.kdamond == kdamond) in damon_sysfs_turn_damon_on() 1412 if (kdamond->damon_ctx) in damon_sysfs_turn_damon_on() 1430 if (!kdamond->damon_ctx) in damon_sysfs_turn_damon_off() 1474 damon_sysfs_cmd_request.kdamond = kdamond; in damon_sysfs_handle_cmd() 1536 if (ctx->kdamond) in pid_show() 1549 if (kdamond->damon_ctx) in damon_sysfs_kdamond_release() 1551 kfree(kdamond); in damon_sysfs_kdamond_release() [all …]
|
A D | dbgfs.c | 96 if (ctx->kdamond) { in dbgfs_attrs_write() 313 if (ctx->kdamond) { in dbgfs_schemes_write() 515 if (ctx->kdamond) { in dbgfs_target_ids_write() 583 if (ctx->kdamond) { in dbgfs_init_regions_read() 679 if (ctx->kdamond) { in dbgfs_init_regions_write() 706 if (ctx->kdamond) in dbgfs_kdamond_pid_read() 707 len = scnprintf(kbuf, count, "%d\n", ctx->kdamond->pid); in dbgfs_kdamond_pid_read()
|
A D | core.c | 630 if (!ctx->kdamond) { in __damon_start() 632 ctx->kdamond = kthread_run(kdamond_fn, ctx, "kdamond.%d", in __damon_start() 634 if (IS_ERR(ctx->kdamond)) { in __damon_start() 635 err = PTR_ERR(ctx->kdamond); in __damon_start() 636 ctx->kdamond = NULL; in __damon_start() 695 tsk = ctx->kdamond; in __damon_stop() 1370 ctx->kdamond = NULL; in kdamond_fn()
|
A D | reclaim.c | 199 kdamond_pid = ctx->kdamond->pid; in damon_reclaim_turn()
|
A D | lru_sort.c | 234 kdamond_pid = ctx->kdamond->pid; in damon_lru_sort_turn()
|
/linux-6.3-rc2/Documentation/translations/zh_CN/admin-guide/mm/damon/ |
A D | usage.rst | 102 与监测相关的信息包括请求规格和结果被称为DAMON上下文。DAMON用一个叫做kdamond的内核线程 107 ``0`` 到 ``N-1`` 的子目录数量。每个目录代表每个kdamond。 112 在每个kdamond目录中,存在两个文件(``state`` 和 ``pid`` )和一个目录( ``contexts`` )。 114 读取 ``state`` 时,如果kdamond当前正在运行,则返回 ``on`` ,如果没有运行则返回 ``off`` 。 116 更新kdamond的每个基于DAMON的操作方案的统计文件的内容。关于统计信息的细节,请参考 118 ``state`` 文件,为kdamond的每个基于DAMON的操作方案,更新基于DAMON的操作方案动作的尝试区域目录。 123 如果状态为 ``on``,读取 ``pid`` 显示kdamond线程的pid。 125 ``contexts`` 目录包含控制这个kdamond要执行的监测上下文的文件。 131 建名为``0`` 到 ``N-1`` 的子目录数量。每个目录代表每个监测背景。目前,每个kdamond只支持 542 DAMON通过一个叫做kdamond的内核线程来进行请求监测。你可以通过读取 ``kdamond_pid`` 文件获 [all …]
|
/linux-6.3-rc2/tools/testing/selftests/damon/ |
A D | lru_sort.sh | 20 nr_kdamonds=$(pgrep kdamond | wc -l) 28 nr_kdamonds=$(pgrep kdamond | wc -l) 36 nr_kdamonds=$(pgrep kdamond | wc -l)
|
A D | reclaim.sh | 20 nr_kdamonds=$(pgrep kdamond | wc -l) 29 nr_kdamonds=$(pgrep kdamond | wc -l) 37 nr_kdamonds=$(pgrep kdamond | wc -l)
|
/linux-6.3-rc2/Documentation/admin-guide/mm/damon/ |
A D | usage.rst | 115 called kdamond, and multiple kdamonds could run in parallel. 121 kdamond. 126 In each kdamond directory, two files (``state`` and ``pid``) and one directory 129 Reading ``state`` returns ``on`` if the kdamond is currently running, or 130 ``off`` if it is not running. Writing ``on`` or ``off`` makes the kdamond be 134 for each DAMON-based operation scheme of the kdamond. For details of the 138 scheme of the kdamond. Writing ``clear_schemes_tried_regions`` to ``state`` 140 each DAMON-based operation scheme of the kdamond. For details of the 144 If the state is ``on``, reading ``pid`` shows the pid of the kdamond thread. 147 that this kdamond will execute. [all …]
|
/linux-6.3-rc2/Documentation/ABI/testing/ |
A D | sysfs-kernel-mm-damon | 18 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 file updates contents of schemes stats files of the kdamond. 32 of this kdamond. Writing 'clear_schemes_tried_regions' to the 38 Description: Reading this file returns the pid of the kdamond if it is
|
/linux-6.3-rc2/include/linux/ |
A D | damon.h | 513 struct task_struct *kdamond; member
|
Completed in 21 milliseconds