Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1197080 > unrolled thread

Re: [PATCHv9 28/36] mm, numa: skip PTE-mapped THP on numa fault

Started byJerome Marchand <jmarchan@redhat.com>
First post2015-07-31 17:10 +0200
Last post2015-07-31 17:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCHv9 28/36] mm, numa: skip PTE-mapped THP on numa fault Jerome Marchand <jmarchan@redhat.com> - 2015-07-31 17:10 +0200

#1197080 — Re: [PATCHv9 28/36] mm, numa: skip PTE-mapped THP on numa fault

FromJerome Marchand <jmarchan@redhat.com>
Date2015-07-31 17:10 +0200
SubjectRe: [PATCHv9 28/36] mm, numa: skip PTE-mapped THP on numa fault
Message-ID<pSk6B-Yx-11@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On 07/20/2015 04:21 PM, Kirill A. Shutemov wrote:
> We're going to have THP mapped with PTEs. It will confuse numabalancing.
> Let's skip them for now.

Fair enough.

Acked-by: Jerome Marchand <jmarchan@redhat.com>

> 
> Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
> Tested-by: Sasha Levin <sasha.levin@oracle.com>
> Tested-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
> ---
>  mm/memory.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/mm/memory.c b/mm/memory.c
> index 074edab89b52..52f6fa02c099 100644
> --- a/mm/memory.c
> +++ b/mm/memory.c
> @@ -3186,6 +3186,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
> 


[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web