Docs/mm/damon/design: remove the details for pageout as paddr doesn't use MADV_PAGEOUT
Subsystems (4)
PATCH v2 1/1 Docs/mm/damon/design: remove the details for pageout as paddr doesn't use MADV_PAGEOUT
From: Barry Song <[email protected]>
The doc needs fix. As only in the case of virtual address, we are calling madvise() with MADV_PAGEOUT. But in the case of physical address, we are calling reclaim_pages() directly. MADV_PAGEOUT on virtual address is much more aggresive to reclaim memory compared to reclaim_pages() on paddr region. This patch removes the details so that the description can apply to both cases. And we don't need to couple with the implementation details.
---
-v2: decouple with the details according to SeongJae
-v1: https://lore.kernel.org/linux-mm/[email protected]/
Documentation/mm/damon/design.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/mm/damon/design.rst +1 -1
@@ -315,7 +315,7 @@ that supports each action are as below. Supported by ``vaddr`` and ``fvaddr`` operations set. - ``cold``: Call ``madvise()`` for the region with ``MADV_COLD``. Supported by ``vaddr`` and ``fvaddr`` operations set. - - ``pageout``: Call ``madvise()`` for the region with ``MADV_PAGEOUT``. + - ``pageout``: Reclaim the region. Supported by ``vaddr``, ``fvaddr`` and ``paddr`` operations set. - ``hugepage``: Call ``madvise()`` for the region with ``MADV_HUGEPAGE``. Supported by ``vaddr`` and ``fvaddr`` operations set.
Signature · 1 line
2.34.1
Hi Barry,
Quoted 11 lines · On Sun, 25 Feb 2024 11:47:51 +1300 Barry Song <[email protected]> wrote:
From: Barry Song <[email protected]>
The doc needs fix. As only in the case of virtual address, we are calling
madvise()withMADV_PAGEOUT. But in the case of physical address, we are callingreclaim_pages()directly.MADV_PAGEOUTon virtual address is much more aggresive to reclaim memory compared toreclaim_pages()on paddr region. This patch removes the details so that the description can apply to both cases. And we don't need to couple with the implementation details.
Quoted 8 lines
Cc SeongJae Park <[email protected]>Cc Minchan Kim <[email protected]>Cc Michal Hocko <[email protected]>Cc Johannes Weiner <[email protected]>Signed-off-by Barry Song <[email protected]>---
-v2: decouple with the details according to SeongJae
-v1: https://lore.kernel.org/linux-mm/[email protected]/
Thank you so much for your work!
Thanks,
SJ
[...]