[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20101020113613.181E.A69D9226@jp.fujitsu.com>
Date: Wed, 20 Oct 2010 11:36:59 +0900 (JST)
From: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
To: David Rientjes <rientjes@...gle.com>
Cc: kosaki.motohiro@...fujitsu.com,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
Mel Gorman <mel@....ul.ie>,
LKML <linux-kernel@...r.kernel.org>,
linux-mm <linux-mm@...ck.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Christoph Lameter <cl@...ux-foundation.org>
Subject: Re: [resend][PATCH 2/2] mm, mem-hotplug: update pcp->stat_threshold when memory hotplug occur
> On Tue, 19 Oct 2010, KOSAKI Motohiro wrote:
>
> > diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> > index 14ee899..222d8cc 100644
> > --- a/mm/page_alloc.c
> > +++ b/mm/page_alloc.c
> > @@ -51,6 +51,7 @@
> > #include <linux/kmemleak.h>
> > #include <linux/memory.h>
> > #include <linux/compaction.h>
> > +#include <linux/vmstat.h>
> > #include <trace/events/kmem.h>
> > #include <linux/ftrace_event.h>
> >
> > @@ -5013,6 +5014,8 @@ int __meminit init_per_zone_wmark_min(void)
> > min_free_kbytes = 128;
> > if (min_free_kbytes > 65536)
> > min_free_kbytes = 65536;
> > +
> > + refresh_zone_stat_thresholds();
> > setup_per_zone_wmarks();
> > setup_per_zone_lowmem_reserve();
> > setup_per_zone_inactive_ratio();
>
> setup_per_zone_wmarks() could change the min and low watermarks for a zone
> when refresh_zone_stat_thresholds() would have used the old value.
Good catch. thanks.
my previous version removed zone->percpu_drift_mark completely. but
current one doesn't. so I need to fix this.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists