Re: [PATCH 12/19] mm: migrate: Introduce migrate_misplaced_page()

From: Mel Gorman
Date: Tue Nov 13 2012 - 06:56:17 EST


On Tue, Nov 13, 2012 at 12:43:44PM +0100, Ingo Molnar wrote:
>
> * Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>
> >
> > * Mel Gorman <mgorman@xxxxxxx> wrote:
> >
> > > From: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
> > >
> > > Note: This was originally based on Peter's patch "mm/migrate: Introduce
> > > migrate_misplaced_page()" but borrows extremely heavily from Andrea's
> > > "autonuma: memory follows CPU algorithm and task/mm_autonuma stats
> > > collection". The end result is barely recognisable so signed-offs
> > > had to be dropped. If original authors are ok with it, I'll
> > > re-add the signed-off-bys.
> > >
> > > Add migrate_misplaced_page() which deals with migrating pages from
> > > faults.
> > >
> > > Based-on-work-by: Lee Schermerhorn <Lee.Schermerhorn@xxxxxx>
> > > Based-on-work-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
> > > Based-on-work-by: Andrea Arcangeli <aarcange@xxxxxxxxxx>
> > > Signed-off-by: Mel Gorman <mgorman@xxxxxxx>
> > > ---
> > > include/linux/migrate.h | 8 ++++
> > > mm/migrate.c | 104 ++++++++++++++++++++++++++++++++++++++++++++++-
> > > 2 files changed, 110 insertions(+), 2 deletions(-)
> >
> > That's a nice patch - the TASK_NUMA_FAULT approach in the
> > original patch was not very elegant.
> >
> > I've started testing it to see how well your version works.
>
> Hm, I'm seeing some instability - see the boot crash below. If I
> undo your patch it goes away.
>

Hah, I would not describe a "boot crash" as some instability. That's
just outright broken :)

I've not built at tree with the latest of Peter's code yet so I don't
know at this time which line it is BUG()ing on. However, it is *very*
likely that this patch is not a drop-in replacement for your tree
because IIRC, there are differences in how and when we call get_page().
That is the likely source of the snag.

--
Mel Gorman
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/