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.

mm/damon/sysfs-schemes: support DAMOS_QUOTA_[IN]ACTIVE_MEM_BP

Add support of DAMOS_QUOTA_[IN]ACTIVE_MEM_BP on DAMON sysfs interface.
Users can use [in]active_mem_bp keyword input to the target_metric sysfs
file to use the new DAMOS quota auto-tune target metrics.

Link: https://lkml.kernel.org/r/20260113152717.70459-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Acked-by: wang lian <lianux.mm@gmail.com>
Cc: David Hildenbrand <david@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

SeongJae Park and committed by
Andrew Morton
fbec8a1e 4835e287

+8
+8
mm/damon/sysfs-schemes.c
··· 1079 1079 .metric = DAMOS_QUOTA_NODE_MEMCG_FREE_BP, 1080 1080 .name = "node_memcg_free_bp", 1081 1081 }, 1082 + { 1083 + .metric = DAMOS_QUOTA_ACTIVE_MEM_BP, 1084 + .name = "active_mem_bp", 1085 + }, 1086 + { 1087 + .metric = DAMOS_QUOTA_INACTIVE_MEM_BP, 1088 + .name = "inactive_mem_bp", 1089 + }, 1082 1090 }; 1083 1091 1084 1092 static ssize_t target_metric_show(struct kobject *kobj,