lkml.org 
[lkml]   [2015]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCHv5 21/28] mm, numa: skip PTE-mapped THP on numa fault
    Date
    We're going to have THP mapped with PTEs. It will confuse numabalancing.
    Let's skip them for now.

    Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
    Tested-by: Sasha Levin <sasha.levin@oracle.com>
    ---
    mm/memory.c | 6 ++++++
    1 file changed, 6 insertions(+)

    diff --git a/mm/memory.c b/mm/memory.c
    index 0b295f7094b1..68c6002ee8ba 100644
    --- a/mm/memory.c
    +++ b/mm/memory.c
    @@ -3135,6 +3135,12 @@ static int do_numa_page(struct mm_struct *mm, struct vm_area_struct *vma,
    return 0;
    }

    + /* TODO: handle PTE-mapped THP */
    + if (PageCompound(page)) {
    + pte_unmap_unlock(ptep, ptl);
    + return 0;
    + }
    +
    /*
    * Avoid grouping on RO pages in general. RO pages shouldn't hurt as
    * much anyway since they can be in shared cache state. This misses
    --
    2.1.4


    \
     
     \ /
      Last update: 2015-04-23 23:41    [W:2.394 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site