Searched refs:kdamond (Results 1 – 11 of 11) sorted by relevance
/Linux-v6.6/mm/damon/ |
D | sysfs.c | 950 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() 1047 struct damon_sysfs_kdamond *kdamond; member 1056 struct damon_sysfs_kdamond *kdamond = container_of(kobj, in state_show() local 1058 struct damon_ctx *ctx = kdamond->damon_ctx; in state_show() [all …]
|
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()
|
D | core.c | 633 if (!ctx->kdamond) { in __damon_start() 635 ctx->kdamond = kthread_run(kdamond_fn, ctx, "kdamond.%d", in __damon_start() 637 if (IS_ERR(ctx->kdamond)) { in __damon_start() 638 err = PTR_ERR(ctx->kdamond); in __damon_start() 639 ctx->kdamond = NULL; in __damon_start() 698 tsk = ctx->kdamond; in __damon_stop() 1435 ctx->kdamond = NULL; in kdamond_fn()
|
D | reclaim.c | 199 kdamond_pid = ctx->kdamond->pid; in damon_reclaim_turn()
|
D | lru_sort.c | 234 kdamond_pid = ctx->kdamond->pid; in damon_lru_sort_turn()
|
/Linux-v6.6/Documentation/translations/zh_CN/admin-guide/mm/damon/ |
D | usage.rst | 102 与监测相关的信息包括请求规格和结果被称为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-v6.6/tools/testing/selftests/damon/ |
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)
|
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-v6.6/Documentation/admin-guide/mm/damon/ |
D | usage.rst | 110 called kdamond, and multiple kdamonds could run in parallel. 116 kdamond. 121 In each kdamond directory, two files (``state`` and ``pid``) and one directory 124 Reading ``state`` returns ``on`` if the kdamond is currently running, or 125 ``off`` if it is not running. Writing ``on`` or ``off`` makes the kdamond be 126 in the state. Writing ``commit`` to the ``state`` file makes kdamond reads the 129 for each DAMON-based operation scheme of the kdamond. For details of the 134 DAMON-based operation scheme of the kdamond. Writing 139 scheme of the kdamond. For details of the DAMON-based operation scheme action 143 If the state is ``on``, reading ``pid`` shows the pid of the kdamond thread. [all …]
|
/Linux-v6.6/Documentation/ABI/testing/ |
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 'update_schemes_tried_bytes' to the 34 kdamond. Writing 'clear_schemes_tried_regions' to the file 40 Description: Reading this file returns the pid of the kdamond if it is
|
/Linux-v6.6/include/linux/ |
D | damon.h | 529 struct task_struct *kdamond; member
|