Skip to contentSkip to conversation

Docs/mm/damon/design: remove the details for pageout as paddr doesn't use MADV_PAGEOUT

PATCH Applied Barry Song 2 participants 2 messages Feb 24, 2024

Subsystems (4)
lore
Share & tools
lore

Barry Song

author
#0 lore raw

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.

Cc SeongJae Park <[email protected]>
Cc Minchan Kim <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Johannes Weiner <[email protected]>

---
-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
index 8c89d26f0baa..5620aab9b385 100644
@@ -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
maintainer Reviewed-by on v2 1/1
#1 lore raw

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() 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.

Quoted 8 lines
Cc SeongJae Park <[email protected]>
Cc Minchan Kim <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Johannes Weiner <[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

[...]