Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755079AbYHAQFW (ORCPT ); Fri, 1 Aug 2008 12:05:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751581AbYHAQFH (ORCPT ); Fri, 1 Aug 2008 12:05:07 -0400 Received: from mtagate4.uk.ibm.com ([195.212.29.137]:51318 "EHLO mtagate4.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751494AbYHAQFF (ORCPT ); Fri, 1 Aug 2008 12:05:05 -0400 Subject: Re: memory hotplug: hot-add to ZONE_MOVABLE vs. min_free_kbytes From: Gerald Schaefer To: Yasunori Goto Cc: Mel Gorman , 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: <20080801192646.EC99.E1E9C6FF@jp.fujitsu.com> References: <20080731132213.GF1704@csn.ul.ie> <1217526327.4643.35.camel@localhost.localdomain> <20080801192646.EC99.E1E9C6FF@jp.fujitsu.com> Content-Type: text/plain Date: Fri, 01 Aug 2008 18:04:55 +0200 Message-Id: <1217606695.5678.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-8.el5_2.2) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1549 Lines: 35 On Fri, 2008-08-01 at 20:16 +0900, Yasunori Goto wrote: > > My assumption is now, that the reserved 3 MB in ZONE_MOVABLE won't be > > usable by the kernel anymore, e.g. for PF_MEMALLOC, because it is in > > ZONE_MOVABLE now. > > I don't make sense here. I suppose there is no relationship between > ZONE_MOVABLE, PF_MEMALLOC and MIGRATE_RESERVE pages. > Could you tell me more? Ok, I thought that PF_MEMALLOC allocations work on the MIGRATE_RESERVE pageblocks, and that only kernel allocations can use PF_MEMALLOC. I also thought that kernel allocations cannot use ZONE_MOVABLE, e.g. for page cache memory, because such pages would not be migratable. So I assumed that MIGRATE_RESERVE pageblocks in ZONE_MOVABLE would not be available for PF_MEMALLOC allocations. With this assumption, which can be totally wrong, the redistribution of MIGRATE_RESERVE pageblocks in setup_per_zone_pages_min() looks like it will take away reserved pageblocks that should be available to the kernel in emergency situations. Maybe I should have explained this assumption earlier, because my whole min_free_kbytes issue depends on it. If I'm wrong, I apologize for confusing you all with this "issue", and I will go back to the original problem with removing the lowest memory chunk in ZONE_MOVABLE... Thanks, Gerald -- 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/