Re: [PATCH 1/1] hugetlbfs: handle pages higher order than MAX_ORDER

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Lameter <cl@...>
Cc: Andrew Morton <akpm@...>, <linux-mm@...>, <linux-kernel@...>, Jon Tollefson <kniht@...>, Mel Gorman <mel@...>, Nick Piggin <nickpiggin@...>
Date: Tuesday, October 14, 2008 - 3:00 am

On Mon, Oct 13, 2008 at 09:04:32AM -0700, Christoph Lameter wrote:

Yes, but it is guarenteed to be contigious in all models out to order
MAX_ORDER-1, and only gigantic pages are larger than this.  We already
have to cope with discontiguity at the MAX_ORDER boundaries in paths
which scan over the mem_map in more general terms as SPARSEMEM introduced
that long long ago, and only gained a contigious mode when we added your
VMEMMAP mode to that.

I thought that the approach recommended by Nick, which led to the other
patch in this series which pulled out compound page preparation to a
specific gigantic initialiser, helped a lot with this worry as it removed
any change from the regular case and helped limit gigantic page support
to hugetlb only.  The only reason that initialiser was placed with the
normal form was to ensure they were maintained together.

Would it help if I posted these two together, or perhaps even merged as
a single patch?


Well that is only true if it doesn't support memory hotplug.


This was a move to following the model I felt Nick preferred in the
prep_compound_page where the gigantic support is pulled out of line and
made very explicit.  Minimising the normal case impacts.  Which I felt
was part of the objections to these changes.

The plan here is to only fix up gigantic pages within the context of
hugetlbfs.

-apw
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/1] gigantic compound pages part 2, Andy Whitcroft, (Wed Oct 8, 5:33 am)
Re: [PATCH 1/1] hugetlbfs: handle pages higher order than MA..., Christoph Lameter, (Wed Oct 8, 12:17 pm)
Re: [PATCH 1/1] hugetlbfs: handle pages higher order than MA..., Christoph Lameter, (Mon Oct 13, 12:04 pm)
Re: [PATCH 1/1] hugetlbfs: handle pages higher order than MA..., Andy Whitcroft, (Tue Oct 14, 3:00 am)