lkml.org 
[lkml]   [2011]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/5] mm: compaction: Use synchronous compaction for /proc/sys/vm/compact_memory
    Date
    When asynchronous compaction was introduced, the
    /proc/sys/vm/compact_memory handler should have been updated to always
    use synchronous compaction. This did not happen so this patch addresses
    it. The assumption is if a user writes to /proc/sys/vm/compact_memory,
    they are willing for that process to stall.

    Signed-off-by: Mel Gorman <mgorman@suse.de>
    ---
    mm/compaction.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/mm/compaction.c b/mm/compaction.c
    index 237560e..615502b 100644
    --- a/mm/compaction.c
    +++ b/mm/compaction.c
    @@ -666,6 +666,7 @@ static int compact_node(int nid)
    .nr_freepages = 0,
    .nr_migratepages = 0,
    .order = -1,
    + .sync = true,
    };

    zone = &pgdat->node_zones[zoneid];
    --
    1.7.3.4


    \
     
     \ /
      Last update: 2011-11-18 18:03    [W:0.087 / U:119.592 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site