lkml.org 
[lkml]   [2011]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 01/11] mm: compaction: Allow compaction to isolate dirty pages
    Date
    Commit [39deaf85: mm: compaction: make isolate_lru_page() filter-aware]
    noted that compaction does not migrate dirty or writeback pages and
    that is was meaningless to pick the page and re-add it to the LRU list.

    What was missed during review is that asynchronous migration moves
    dirty pages if their ->migratepage callback is migrate_page() because
    these can be moved without blocking. This potentially impacted
    hugepage allocation success rates by a factor depending on how many
    dirty pages are in the system.

    This patch partially reverts 39deaf85 to allow migration to isolate
    dirty pages again. This increases how much compaction disrupts the
    LRU but that is addressed later in the series.

    Signed-off-by: Mel Gorman <mgorman@suse.de>
    Reviewed-by: Andrea Arcangeli <aarcange@redhat.com>
    Reviewed-by: Rik van Riel <riel@redhat.com>
    Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
    ---
    mm/compaction.c | 3 ---
    1 files changed, 0 insertions(+), 3 deletions(-)

    diff --git a/mm/compaction.c b/mm/compaction.c
    index 899d956..237560e 100644
    --- a/mm/compaction.c
    +++ b/mm/compaction.c
    @@ -349,9 +349,6 @@ static isolate_migrate_t isolate_migratepages(struct zone *zone,
    continue;
    }

    - if (!cc->sync)
    - mode |= ISOLATE_CLEAN;
    -
    /* Try isolate the page */
    if (__isolate_lru_page(page, mode, 0) != 0)
    continue;
    --
    1.7.3.4


    \
     
     \ /
      Last update: 2011-12-14 16:43    [W:4.162 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site