Linux 6.7-rc7
[linux-modified.git] / Documentation / mm / damon / faq.rst
1 .. SPDX-License-Identifier: GPL-2.0
2
3 ==========================
4 Frequently Asked Questions
5 ==========================
6
7 Does DAMON support virtual memory only?
8 =======================================
9
10 No.  The core of the DAMON is address space independent.  The address space
11 specific monitoring operations including monitoring target regions
12 constructions and actual access checks can be implemented and configured on the
13 DAMON core by the users.  In this way, DAMON users can monitor any address
14 space with any access check technique.
15
16 Nonetheless, DAMON provides vma/rmap tracking and PTE Accessed bit check based
17 implementations of the address space dependent functions for the virtual memory
18 and the physical memory by default, for a reference and convenient use.
19
20
21 Can I simply monitor page granularity?
22 ======================================
23
24 Yes.  You can do so by setting the ``min_nr_regions`` attribute higher than the
25 working set size divided by the page size.  Because the monitoring target
26 regions size is forced to be ``>=page size``, the region split will make no
27 effect.