[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090520170712.6CEE.E1E9C6FF@jp.fujitsu.com>
Date: Wed, 20 May 2009 17:08:51 +0900
From: Yasunori Goto <y-goto@...fujitsu.com>
To: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
Cc: Minchan Kim <minchan.kim@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>,
linux-mm <linux-mm@...ck.org>, Mel Gorman <mel@....ul.ie>,
Rik van Riel <riel@...hat.com>,
Johannes Weiner <hannes@...xchg.org>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
Subject: Re: [PATCH 3/3] reset wmark_min and inactive ratio of zone when hotplug happens
> > This patch solve two problems.
> >
> > Whenever memory hotplug sucessfully happens, zone->present_pages
> > have to be changed.
> >
> > 1) Now, memory hotplug calls setup_per_zone_wmark_min only when
> > online_pages called, not offline_pages.
> >
> > It breaks balance.
> >
> > 2) If zone->present_pages is changed, we also have to change
> > zone->inactive_ratio. That's because inactive_ratio depends
> > on zone->present_pages.
>
> Good catch!
> looks good to me. but I'm not familiar this area. CC to Goto-san.
>
Thanks. Looks good!
Acked-by: Yasunori Goto <y-goto@...fujitsu.com>
>
>
>
>
> > CC: Mel Gorman <mel@....ul.ie>
> > CC: Rik van Riel <riel@...hat.com>
> > CC: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
> > CC: Johannes Weiner <hannes@...xchg.org>
> > Signed-off-by: Minchan Kim <minchan.kim@...il.com>
> > ---
> > mm/memory_hotplug.c | 4 ++++
> > 1 files changed, 4 insertions(+), 0 deletions(-)
> >
> > diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
> > index 40bf385..1611010 100644
> > --- a/mm/memory_hotplug.c
> > +++ b/mm/memory_hotplug.c
> > @@ -423,6 +423,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages)
> > zone->zone_pgdat->node_present_pages += onlined_pages;
> >
> > setup_per_zone_wmark_min();
> > + calculate_per_zone_inactive_ratio(zone);
> > if (onlined_pages) {
> > kswapd_run(zone_to_nid(zone));
> > node_set_state(zone_to_nid(zone), N_HIGH_MEMORY);
> > @@ -832,6 +833,9 @@ repeat:
> > totalram_pages -= offlined_pages;
> > num_physpages -= offlined_pages;
> >
> > + setup_per_zone_wmark_min();
> > + calculate_per_zone_inactive_ratio(zone);
> > +
> > vm_total_pages = nr_free_pagecache_pages();
> > writeback_set_ratelimit();
> >
> > --
> > 1.5.4.3
> >
> >
> >
> > --
> > Kinds Regards
> > Minchan Kim
>
>
>
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@...ck.org. For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@...ck.org"> email@...ck.org </a>
--
Yasunori Goto
--
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