Commit 69e7b88c authored by SeongJae Park's avatar SeongJae Park Committed by Andrew Morton

Docs/mm/damon/design: rewrite configurable layers

The 'Configurable Operations Set' section is a little bit outdated. 
Update the text.

Link: https://lkml.kernel.org/r/20230525214314.5204-6-sj@kernel.orgSigned-off-by: default avatarSeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent e168962d
...@@ -22,24 +22,23 @@ DAMON subsystem is configured with three layers including ...@@ -22,24 +22,23 @@ DAMON subsystem is configured with three layers including
Configurable Operations Set Configurable Operations Set
--------------------------- ---------------------------
DAMON provides data access monitoring functionality while making the accuracy For data access monitoring and additional low level work, DAMON needs a set of
and the overhead controllable. The fundamental access monitorings require implementations for specific operations that are dependent on and optimized for
primitives that dependent on and optimized for the target address space. On the given target address space. On the other hand, the accuracy and overhead
the other hand, the accuracy and overhead tradeoff mechanism, which is the core tradeoff mechanism, which is the core logic of DAMON, is in the pure logic
of DAMON, is in the pure logic space. DAMON separates the two parts in space. DAMON separates the two parts in different layers, namely DAMON
different layers and defines its interface to allow various low level Operations Set and DAMON Core Logics Layers, respectively. It further defines
primitives implementations configurable with the core logic. We call the low the interface between the layers to allow various operations sets to be
level primitives implementations monitoring operations. configured with the core logic.
Due to this separated design and the configurable interface, users can extend Due to this design, users can extend DAMON for any address space by configuring
DAMON for any address space by configuring the core logics with appropriate the core logic to use the appropriate operations set. If any appropriate set
monitoring operations. If appropriate one is not provided, users can implement is unavailable, users can implement one on their own.
the operations on their own.
For example, physical memory, virtual memory, swap space, those for specific For example, physical memory, virtual memory, swap space, those for specific
processes, NUMA nodes, files, and backing memory devices would be supportable. processes, NUMA nodes, files, and backing memory devices would be supportable.
Also, if some architectures or devices support special optimized access check Also, if some architectures or devices supporting special optimized access
primitives, those will be easily configurable. check primitives, those will be easily configurable.
Operations Set Layer Operations Set Layer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment