From: Mel Gorman <mel@csn.ul.ie>
To: Christoph Lameter <cl@linux.com>
Cc: akpm@linux-foundation.org, linux-mm@kvack.org, npiggin@suse.de,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Subject: Re: [PATCH] Use integer fields lookup for gfp_zone and check for errors in flags passed to the page allocator
Date: Wed, 27 May 2009 10:48:58 +0100 [thread overview]
Message-ID: <20090527094857.GA633@csn.ul.ie> (raw)
In-Reply-To: <20090526232620.GA6189@csn.ul.ie>
On Wed, May 27, 2009 at 12:26:20AM +0100, Mel Gorman wrote:
> On Tue, May 26, 2009 at 02:04:35PM -0400, Christoph Lameter wrote:
> > On Mon, 25 May 2009, Mel Gorman wrote:
> >
> > > I expect that the machine would start running into reclaim issues with
> > > enough uptime because it'll not be using Highmem as it should. Similarly,
> > > the GFP_DMA32 may also be a problem as the new implementation is going
> > > ZONE_DMA when ZONE_NORMAL would have been ok in this case.
> >
> > Right. The fallback for DMA32 is wrong. Should fall back to ZONE_NORMAL.
> > Not to DMA. And the config variable to check for highmem was wrong.
> >
>
> That fixed things right up on x86 at least and it looks good. I've queued
> up a few tests with the patch applied on x86, x86-64 and ppc64. Hopefully
> it'll go smoothly.
>
It didn't go perfectly smoothly but I have some results. First off the new
gfp_zone() is now returning the same results for the old gfp_zone() for the
common flag combinations on ppc64, x86 and x86-64. That is good.
On x86-64 (Phenom II X4)
netperf is showing +/- 1.8% on UDP and TCP tests, consider level
sysbench is showing +/- 1% on postgres, mostly level
kernbench is showing +1.7% on system time
kernbench is showing 0.25% on elapsed time
On ppc64 (ppc970)
netperf failed to run overnight, my own fault
sysbench is showing, +1.95%
kernbench is showing +0.21% on system time
kernbench is showing -0.01% on elapsed time
The x86 machine was running other tests and didn't catch up in time.
The performance results are mostly good. kernbench is the most allocator
intensive by far and it showed reasonable gains on the system time for both
machines where you'd expect an allocator improvement to have the most impact.
Other results were either flat or showed small gains.
> For your patch + fix merged
>
> Acked-by: Mel Gorman <mel@csn.ul.ie>
>
I'm happier with this now. After the tests and another read through the
patch, nothing else jumps out at me.
Reviewed-by: Mel Gorman <mel@csn.ul.ie>
Good work.
> >
> > Subject: Fix gfp zone patch
> >
> > 1. If there is no DMA32 fall back to NORMAL instead of DMA
> >
> > 2. Use the correct config variable for HIGHMEM
> >
> > Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
> >
> >
> > ---
> > include/linux/gfp.h | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > Index: linux-2.6/include/linux/gfp.h
> > ===================================================================
> > --- linux-2.6.orig/include/linux/gfp.h 2009-05-26 12:59:19.000000000 -0500
> > +++ linux-2.6/include/linux/gfp.h 2009-05-26 12:59:31.000000000 -0500
> > @@ -112,7 +112,7 @@ static inline int allocflags_to_migratet
> > ((gfp_flags & __GFP_RECLAIMABLE) != 0);
> > }
> >
> > -#ifdef CONFIG_ZONE_HIGHMEM
> > +#ifdef CONFIG_HIGHMEM
> > #define OPT_ZONE_HIGHMEM ZONE_HIGHMEM
> > #else
> > #define OPT_ZONE_HIGHMEM ZONE_NORMAL
> > @@ -127,7 +127,7 @@ static inline int allocflags_to_migratet
> > #ifdef CONFIG_ZONE_DMA32
> > #define OPT_ZONE_DMA32 ZONE_DMA32
> > #else
> > -#define OPT_ZONE_DMA32 OPT_ZONE_DMA
> > +#define OPT_ZONE_DMA32 ZONE_NORMAL
> > #endif
> >
> > /*
> >
>
--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab
--
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>
next prev parent reply other threads:[~2009-05-27 9:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-22 18:42 Christoph Lameter
2009-05-25 1:51 ` KAMEZAWA Hiroyuki
2009-05-26 16:58 ` Christoph Lameter
2009-05-25 11:30 ` Mel Gorman
2009-05-26 18:04 ` Christoph Lameter
2009-05-26 23:26 ` Mel Gorman
2009-05-27 9:48 ` Mel Gorman [this message]
2009-05-27 14:23 ` Christoph Lameter
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=20090527094857.GA633@csn.ul.ie \
--to=mel@csn.ul.ie \
--cc=akpm@linux-foundation.org \
--cc=cl@linux.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=npiggin@suse.de \
/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