Skip to content

DAMON: Support Physical Memory Address Space Monitoring

SeongJae Park linux-doc linux-mm lkml 1 version Applied

Status from this message: [merged] docs-damon-document-physical-memory-monitoring-support.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesApplied 7/7

Changes from RFC v10 from the cover letter

(https://lore.kernel.org/linux-mm/[email protected]/)
- Rebase on latest -mm tree
- Remove page granularity idleness monitoring part

Patches in v1 All 7 applied

#Subject and filesSizeRepliesApplied
1/7mm/damon/dbgfs: Allow users to set initial monitoring target regionsmm/damon/dbgfs.c+154 -22 repliesApplied
2/7mm/damon/dbgfs-test: Add a unit test case for 'init_regions'mm/damon/dbgfs-test.h+54 -00 repliesApplied
3/7Docs/admin-guide/mm/damon: Document 'init_regions' featureDocumentation/admin-guide/mm/damon/usage.rst+39 -20 repliesApplied
4/7mm/damon/vaddr: Separate commonly usable functionsmm/damon/Makefile mm/damon/prmtv-common.c mm/damon/prmtv-common.h +1 more+108 -860 repliesApplied
5/7mm/damon: Implement primitives for physical address space monitoringinclude/linux/damon.h mm/damon/Kconfig mm/damon/Makefile +1 more+243 -00 repliesApplied
6/7mm/damon/dbgfs: Support physical memory monitoringmm/damon/Kconfig mm/damon/dbgfs.c+19 -40 repliesApplied
7/7Docs/DAMON: Document physical memory monitoring supportDocumentation/admin-guide/mm/damon/usage.rst Documentation/vm/damon/design.rst Documentation/vm/damon/faq.rst+40 -190 repliesApplied

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchBrendan Higgins
1/7
2/7R-b
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] DAMON: Support Physical Memory Address Space Monitoring

Changes from Previous Version (RFC[1])
======================================

- Rebase on latest -mm tree
- Remove page granularity idleness monitoring part

[1] https://lore.kernel.org/linux-mm/[email protected]/

Introduction
============

DAMON is currently supporting only virtual address spaces monitoring. It can be easily extended for various use cases and address spaces by configuring its monitoring primitives layer to use appropriate primitives implementations, though. This patchset implements monitoring primitives for the physical address space monitoring using the structure.

Baseline and Complete Git Trees
===============================

The patches are based on the latest -mm tree (v5.15-rc4-mmots-2021-10-10-18-34)[1]. You can also clone the complete git tree:

    $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git -b damon-paddr/patches/v1

The web is also available:
https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git/tag/?h=damon-paddr/patches/v1

[1] https://github.com/hnaz/linux-mm/tree/v5.15-rc4-mmots-2021-10-10-18-34

Sequence of Patches
===================

The first 3 patches allow the user space users manually set the monitoring regions. The 1st patch implements the feature in the 'damon-dbgfs'. Then, patches for adding a unit tests (the 2nd patch) and updating the documentation (the 3rd patch) follow.

Following 4 patches implement the physical address space monitoring primitives. The 4th patch makes some primitive functions for the virtual address spaces primitives reusable. The 5th patch implements the physical address space monitoring primitives. The 6th patch links the primitives to the 'damon-dbgfs'. Finally, 7th patch documents this new features.

Patch History
=============

Changes from RFC v10
(https://lore.kernel.org/linux-mm/[email protected]/)
- Rebase on latest -mm tree
- Remove page granularity idleness monitoring part

Please refer to RFC v10 for previous history.

SeongJae Park (7):
mm/damon/dbgfs: Allow users to set initial monitoring target regions mm/damon/dbgfs-test: Add a unit test case for 'init_regions' Docs/admin-guide/mm/damon: Document 'init_regions' feature mm/damon/vaddr: Separate commonly usable functions mm/damon: Implement primitives for physical address space monitoring mm/damon/dbgfs: Support physical memory monitoring Docs/DAMON: Document physical memory monitoring support

 Documentation/admin-guide/mm/damon/usage.rst |  62 ++++-
 Documentation/vm/damon/design.rst            |  29 ++-
 Documentation/vm/damon/faq.rst               |   5 +-
 include/linux/damon.h                        |  10 +
 mm/damon/Kconfig                             |  10 +-
 mm/damon/Makefile                            |   3 +-
 mm/damon/dbgfs-test.h                        |  54 +++++
 mm/damon/dbgfs.c                             | 177 ++++++++++++++-
 mm/damon/paddr.c                             | 224 +++++++++++++++++++
 mm/damon/prmtv-common.c                      |  88 ++++++++
 mm/damon/prmtv-common.h                      |  17 ++
 mm/damon/vaddr.c                             |  87 +------
 12 files changed, 655 insertions(+), 111 deletions(-)
 create mode 100644 mm/damon/paddr.c
 create mode 100644 mm/damon/prmtv-common.c
 create mode 100644 mm/damon/prmtv-common.h
Signature · 1 line
2.17.1