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.

Docs/mm/damon/design: document DAMON actions when TRANSPARENT_HUGEPAGE is off

MADV_HUGEPAGE and MADV_NOHUGEPAGE are guarded and they are not available
when compiling the kernel without TRANSPARENT_HUGEPAGE option. The DAMON
behaviour is to silently fail [1] in when DAMOS_HUGEPAGE or
DAMOS_NOHUGEPAGE are used, but TRANSPARENT_HUGEPAGE is disabled. Update
the DAMON documentation to reflect this behaviour.

Link: https://lkml.kernel.org/r/20260318035349.88715-1-sj@kernel.org
Link: https://lore.kernel.org/66131775-180b-4b9f-b7ce-61a3e077b6e6@huawei-partners.com/ [1]
Signed-off-by: Asier Gutierrez <gutierrez.asier@huawei-partners.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Asier Gutierrez and committed by
Andrew Morton
01494f71 cba82993

+6 -2
+6 -2
Documentation/mm/damon/design.rst
··· 460 460 - ``pageout``: Reclaim the region. 461 461 Supported by ``vaddr``, ``fvaddr`` and ``paddr`` operations set. 462 462 - ``hugepage``: Call ``madvise()`` for the region with ``MADV_HUGEPAGE``. 463 - Supported by ``vaddr`` and ``fvaddr`` operations set. 463 + Supported by ``vaddr`` and ``fvaddr`` operations set. When 464 + TRANSPARENT_HUGEPAGE is disabled, the application of the action will just 465 + fail. 464 466 - ``nohugepage``: Call ``madvise()`` for the region with ``MADV_NOHUGEPAGE``. 465 - Supported by ``vaddr`` and ``fvaddr`` operations set. 467 + Supported by ``vaddr`` and ``fvaddr`` operations set. When 468 + TRANSPARENT_HUGEPAGE is disabled, the application of the action will just 469 + fail. 466 470 - ``lru_prio``: Prioritize the region on its LRU lists. 467 471 Supported by ``paddr`` operations set. 468 472 - ``lru_deprio``: Deprioritize the region on its LRU lists.