linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Mel Gorman <mgorman@suse.de>
To: Ingo Molnar <mingo@kernel.org>, Peter Anvin <hpa@zytor.com>
Cc: Fengguang Wu <fengguang.wu@intel.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Steven Noonan <steven@uplinklabs.net>,
	Rik van Riel <riel@redhat.com>,
	David Vrabel <david.vrabel@citrix.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Andrea Arcangeli <aarcange@redhat.com>,
	Dave Hansen <dave.hansen@intel.com>,
	Srikar Dronamraju <srikar@linux.vnet.ibm.com>,
	Cyrill Gorcunov <gorcunov@gmail.com>,
	Mel Gorman <mgorman@suse.de>, Linux-X86 <x86@kernel.org>,
	Linux-MM <linux-mm@kvack.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 0/3] Use an alternative to _PAGE_PROTNONE for _PAGE_NUMA v4
Date: Tue, 15 Apr 2014 15:41:13 +0100	[thread overview]
Message-ID: <1397572876-1610-1-git-send-email-mgorman@suse.de> (raw)

Fengguang Wu found that an earlier version crashed on his
tests. This version passed tests running with DEBUG_VM and
DEBUG_PAGEALLOC. Fengguang, another test would be appreciated and
if it helps this series is the mm-numa-use-high-bit-v4r3 branch in
git://git.kernel.org/pub/scm/linux/kernel/git/mel/linux-balancenuma.git

At the very least the first patch of this series needs to be picked up and
backported to stable as David Vrabel reports that Xen users are now hitting
the bug routinely. It's currently tagged for stable but please make sure
that information does not get stripped when merged and gets picked up by
the stable maintainers in a timely fashion.

Changelog since V2
o Use separate bit and shrink max swap size
o Distinguish between pte_present and pte_numa for swap ptes
o Remove bit shuffling depending on config
o Clear NUMA information protection modification on x86
o Removed RFC

Changelog since V1
o Reuse software-bits
o Use paravirt ops when modifying PTEs in the NUMA helpers

Aliasing _PAGE_NUMA and _PAGE_PROTNONE had some convenient properties but
it ultimately gave Xen a headache and pisses almost everybody off that
looks closely at it. Two discussions on "why this makes sense" is one
discussion too many so rather than having a third so here is this series.
This series uses bits to uniquely identify NUMA hinting ptes instead of
depending on PROTNONE faults to simply "miss" the PTEs.

It really could do with a tested-by from the powerpc people.

 arch/powerpc/include/asm/pgtable.h   |  5 +++
 arch/x86/Kconfig                     |  2 +-
 arch/x86/include/asm/pgtable.h       | 14 +++++---
 arch/x86/include/asm/pgtable_64.h    |  8 +++++
 arch/x86/include/asm/pgtable_types.h | 66 +++++++++++++++++++-----------------
 arch/x86/mm/pageattr-test.c          |  2 +-
 include/asm-generic/pgtable.h        | 35 +++++++++++++------
 include/linux/swapops.h              |  2 +-
 mm/memory.c                          | 12 +++----
 9 files changed, 90 insertions(+), 56 deletions(-)

-- 
1.8.4.5

Mel Gorman (3):
  mm: use paravirt friendly ops for NUMA hinting ptes
  x86: Require x86-64 for automatic NUMA balancing
  x86: Define _PAGE_NUMA by reusing software bits on the PMD and PTE
    levels

 arch/powerpc/include/asm/pgtable.h   |  5 +++
 arch/x86/Kconfig                     |  2 +-
 arch/x86/include/asm/pgtable.h       | 14 +++++---
 arch/x86/include/asm/pgtable_64.h    |  8 +++++
 arch/x86/include/asm/pgtable_types.h | 66 +++++++++++++++++++-----------------
 arch/x86/mm/pageattr-test.c          |  2 +-
 include/asm-generic/pgtable.h        | 35 +++++++++++++------
 include/linux/swapops.h              |  2 +-
 mm/memory.c                          | 17 ++++------
 9 files changed, 93 insertions(+), 58 deletions(-)

-- 
1.8.4.5

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

             reply	other threads:[~2014-04-15 14:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-15 14:41 Mel Gorman [this message]
2014-04-15 14:41 ` [PATCH 1/3] mm: use paravirt friendly ops for NUMA hinting ptes Mel Gorman
2014-04-15 14:41 ` [PATCH 2/3] x86: Require x86-64 for automatic NUMA balancing Mel Gorman
2014-04-15 14:41 ` [PATCH 3/3] x86: Define _PAGE_NUMA by reusing software bits on the PMD and PTE levels Mel Gorman
2014-04-17  4:11   ` [x86] BUG: Bad page map in process usemem pte:310103e3c pmd:7b3c2a067 Fengguang Wu
2014-04-17  4:19     ` Fengguang Wu
2014-04-17  2:59 ` [PATCH 0/3] Use an alternative to _PAGE_PROTNONE for _PAGE_NUMA v4 Fengguang Wu
2014-04-17  9:06   ` Mel Gorman
2014-04-19  7:46     ` Fengguang Wu
2014-04-22 15:12       ` Mel Gorman

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=1397572876-1610-1-git-send-email-mgorman@suse.de \
    --to=mgorman@suse.de \
    --cc=aarcange@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=dave.hansen@intel.com \
    --cc=david.vrabel@citrix.com \
    --cc=fengguang.wu@intel.com \
    --cc=gorcunov@gmail.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=riel@redhat.com \
    --cc=srikar@linux.vnet.ibm.com \
    --cc=steven@uplinklabs.net \
    --cc=torvalds@linux-foundation.org \
    --cc=x86@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).