Skip to contentSkip to conversation

samples-damon-introduce-a-skeleton-of-a-smaple-damon-module-for-proactive-reclamation.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jan 14, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: samples/damon: introduce a skeleton of a smaple DAMON module for proactive reclamation
has been removed from the -mm tree. Its filename was
samples-damon-introduce-a-skeleton-of-a-smaple-damon-module-for-proactive-reclamation.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: samples/damon: introduce a skeleton of a smaple DAMON module for proactive reclamation
Date: Tue, 10 Dec 2024 13:50:29 -0800

DAMON is not only for monitoring of access patterns, but also for access-aware system operations. For the system operations, DAMON provides a feature called DAMOS (Data Access Monitoring-based Operation Schemes). There is no sample API usage of DAMOS, though. Copy the working set size estimation sample modules with changed names of the module and symbols, to use it as a skeleton for a sample module showing the DAMOS API usage. The following commit will make it proactively reclaim cold memory of the given process, using DAMOS.

---

 samples/Makefile       |    1 
 samples/damon/Kconfig  |   13 ++++
 samples/damon/Makefile |    1 
 samples/damon/prcl.c   |  116 +++++++++++++++++++++++++++++++++++++++
 4 files changed, 131 insertions(+)
samples/damon/Kconfig renamed from samples/damon/Kconfig~samples-damon-introduce-a-skeleton-of-a-smaple-damon-module-for-proactive-reclamation +13 -0
@@ -14,4 +14,17 @@ config SAMPLE_DAMON_WSSE
 
 	  If unsure, say N.
 
+config SAMPLE_DAMON_PRCL
+	bool "DAMON sameple module for access-aware proactive reclamation"
+	depends on DAMON && DAMON_VADDR
+	help
+	  This builds DAMON sample module for access-aware proactive
+	  reclamation.
+
+	  The module receives a pid, monitor access to the virtual address
+	  space of the process, find memory regions that not accessed, and
+	  proactively reclaim the regions.
+
+	  If unsure, say N.
+
 endmenu
samples/damon/Makefile renamed from samples/damon/Makefile~samples-damon-introduce-a-skeleton-of-a-smaple-damon-module-for-proactive-reclamation +1 -0
@@ -1,3 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
 
 obj-$(CONFIG_SAMPLE_DAMON_WSSE) += wsse.o
+obj-$(CONFIG_SAMPLE_DAMON_PRCL) += prcl.o
samples/damon/prcl.c new file +116 -0

116 lines not on this page · raw message

samples/Makefile renamed from samples/Makefile~samples-damon-introduce-a-skeleton-of-a-smaple-damon-module-for-proactive-reclamation +1 -0
@@ -40,3 +40,4 @@ obj-$(CONFIG_SAMPLE_CORESIGHT_SYSCFG)	+=
 obj-$(CONFIG_SAMPLE_FPROBE)		+= fprobe/
 obj-$(CONFIG_SAMPLES_RUST)		+= rust/
 obj-$(CONFIG_SAMPLE_DAMON_WSSE)		+= damon/
+obj-$(CONFIG_SAMPLE_DAMON_PRCL)		+= damon/

_

Patches currently in -mm which might be from [email protected] are

docs-mm-damon-design-add-monitoring-parameters-tuning-guide.patch docs-mm-damon-add-an-example-monitoring-intervals-tuning.patch docs-admin-guide-mm-damon-usage-fix-and-add-missing-damos-filter-sysfs-files-on-files-hierarchy.patch docs-admin-guide-mm-damon-start-update-snapshot-example.patch mm-damon-explain-effective-quota-on-kernel-doc-comment.patch