Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753825AbYGaFWS (ORCPT ); Thu, 31 Jul 2008 01:22:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751984AbYGaFWE (ORCPT ); Thu, 31 Jul 2008 01:22:04 -0400 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:49142 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751971AbYGaFWC (ORCPT ); Thu, 31 Jul 2008 01:22:02 -0400 Date: Thu, 31 Jul 2008 14:16:10 +0900 From: Yasunori Goto To: Gerald Schaefer , Mel Gorman Subject: Re: memory hotplug: hot-remove fails on lowest chunk in ZONE_MOVABLE Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, KAMEZAWA Hiroyuki , Dave Hansen , Andy Whitcroft , Christoph Lameter , Nick Piggin , Peter Zijlstra , Andrew Morton In-Reply-To: <1217420161.4545.10.camel@localhost.localdomain> References: <20080730110444.27DE.E1E9C6FF@jp.fujitsu.com> <1217420161.4545.10.camel@localhost.localdomain> X-Mailer-Plugin: BkASPil for Becky!2 Ver.2.068 Message-Id: <20080731134956.2A3B.E1E9C6FF@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.45 [ja] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2323 Lines: 51 > On Wed, 2008-07-30 at 12:16 +0900, Yasunori Goto wrote: > > Well, I didn't mean changing pages_min value. There may be side effect as > > you are saying. > > I meant if some pages were MIGRATE_RESERVE attribute when hot-remove are > > -executing-, their attribute should be changed. > > > > For example, how is like following dummy code? Is it impossible? > > (Not only here, some places will have to be modified..) > > Right, this should be possible. I was somewhat wandering from the subject, > because I noticed that there may be a bigger problem with MIGRATE_RESERVE > pages in ZONE_MOVABLE, and that we may not want to have them in the first > place. > > The more memory we add to ZONE_MOVABLE, the less reserved pages will > remain to the other zones. In setup_per_zone_pages_min(), min_free_kbytes > will be redistributed to a zone where the kernel cannot make any use of > it, effectively reducing the available min_free_kbytes. This just doesn't > sound right. I believe that a similar situation is the reason why highmem > pages are skipped in the calculation and I think that we need that for > ZONE_MOVABLE too. Any thoughts on that problem? > > Setting pages_min to 0 for ZONE_MOVABLE, while not capping pages_low > and pages_high, could be an option. I don't have a sufficient memory > managment overview to tell if that has negative side effects, maybe > someone with a deeper insight could comment on that. At least, pages_min should not be 0. It is used as watermark when memory shortage situation. If it is 0, kernel will misunderstand shortage situation. Certainly, pages_min value may be not appropriate value for ZONE_MOVABLE. But it is not memory-hotplug issue. True your question is why ZONE_MOVABLE has MIGRATE_RESREVE pages, right? However, I think it is intended for emergency pool of memory shortage situation for ZONE_MOVABLE via fallback[]. If not, these MIGRATE_RESERVE pages are not made originally. It is why I wrote previous mail. Mel Gormal-san knows around here very well. He may explain its detail more. Bye. -- Yasunori Goto -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/