lkml.org 
[lkml]   [2011]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH] mm: Do not stall in synchronous compaction for THP allocations
    On Thu, Nov 10, 2011 at 10:06:16AM +0000, Mel Gorman wrote:
    > diff --git a/mm/page_alloc.c b/mm/page_alloc.c
    > index 963c5de..cddc2d0 100644
    > --- a/mm/page_alloc.c
    > +++ b/mm/page_alloc.c
    > @@ -2213,7 +2213,13 @@ rebalance:
    > sync_migration);
    > if (page)
    > goto got_pg;
    > - sync_migration = true;
    > +
    > + /*
    > + * Do not use sync migration for transparent hugepage allocations as
    > + * it could stall writing back pages which is far worse than simply
    > + * failing to promote a page.
    > + */
    > + sync_migration = !(gfp_mask & __GFP_NO_KSWAPD);
    >
    > /* Try direct reclaim and then allocating */
    > page = __alloc_pages_direct_reclaim(gfp_mask, order,

    Reviewed-by: Andrea Arcangeli <aarcange@redhat.com>


    \
     
     \ /
      Last update: 2011-11-10 15:03    [W:2.878 / U:0.076 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site