All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: akpm@linux-foundation.org
Cc: torvalds@linux-foundation.org, mgorman@suse.de,
	a.p.zijlstra@chello.nl, jovi@cloudflare.com, mingo@elte.hu,
	stable@vger.kernel.org
Subject: Re: [patch 7/8] sched, numa: do not hint for NUMA balancing on VM_MIXEDMAP mappings
Date: Thu, 11 Jun 2015 08:18:17 +0200	[thread overview]
Message-ID: <20150611061816.GA32133@gmail.com> (raw)
In-Reply-To: <55787ea4.xpi6VnM/eXBZb7sr%akpm@linux-foundation.org>


* akpm@linux-foundation.org <akpm@linux-foundation.org> wrote:

> From: Mel Gorman <mgorman@suse.de>
> Subject: sched, numa: do not hint for NUMA balancing on VM_MIXEDMAP mappings
> 
> Jovi Zhangwei reported the following problem
> 
>   Below kernel vm bug can be triggered by tcpdump which mmaped a lot of pages
>   with GFP_COMP flag.
> 
>   [Mon May 25 05:29:33 2015] page:ffffea0015414000 count:66 mapcount:1 mapping:          (null) index:0x0
>   [Mon May 25 05:29:33 2015] flags: 0x20047580004000(head)
>   [Mon May 25 05:29:33 2015] page dumped because: VM_BUG_ON_PAGE(compound_order(page) && !PageTransHuge(page))
>   [Mon May 25 05:29:33 2015] ------------[ cut here ]------------
>   [Mon May 25 05:29:33 2015] kernel BUG at mm/migrate.c:1661!
>   [Mon May 25 05:29:33 2015] invalid opcode: 0000 [#1] SMP

> --- a/kernel/sched/fair.c~sched-numa-do-not-hint-for-numa-balancing-on-vm_mixedmap-mappings
> +++ a/kernel/sched/fair.c
> @@ -2181,7 +2181,7 @@ void task_numa_work(struct callback_head
>  	}
>  	for (; vma; vma = vma->vm_next) {
>  		if (!vma_migratable(vma) || !vma_policy_mof(vma) ||
> -			is_vm_hugetlb_page(vma)) {
> +			is_vm_hugetlb_page(vma) || (vma->vm_flags & VM_MIXEDMAP)) {
>  			continue;
>  		}

the fix looks good to me, but this should really be done in a bit cleaner fashion, 
by breaking out an vma_numa_migratable() inline helper or so? Anyway:

Acked-by: Ingo Molnar <mingo@kernel.org>

Thanks,

	Ingo

      reply	other threads:[~2015-06-11  6:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-10 18:15 [patch 7/8] sched, numa: do not hint for NUMA balancing on VM_MIXEDMAP mappings akpm
2015-06-11  6:18 ` Ingo Molnar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150611061816.GA32133@gmail.com \
    --to=mingo@kernel.org \
    --cc=a.p.zijlstra@chello.nl \
    --cc=akpm@linux-foundation.org \
    --cc=jovi@cloudflare.com \
    --cc=mgorman@suse.de \
    --cc=mingo@elte.hu \
    --cc=stable@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.