From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755833AbYDRFGo (ORCPT ); Fri, 18 Apr 2008 01:06:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751755AbYDRFG2 (ORCPT ); Fri, 18 Apr 2008 01:06:28 -0400 Received: from rv-out-0708.google.com ([209.85.198.245]:53770 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754267AbYDRFGZ (ORCPT ); Fri, 18 Apr 2008 01:06:25 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oqw4Rpk6mM8cZoMBZuPmsX4EUHWQh/HXo+WYhaVn+sf7yg1X1iZMB0PISPXCjYsle/XZ/09OCH9RtqqJ19no6cBikAOiSgfkRtUlcpS7bnM96NOMNqcEsRZGbFfKVKX/vzHnx31PZlyO+wRhzOyUAV7E45OOX30NHRUwbZLbomg= Message-ID: <86802c440804172206k7533e7d1kf1f355f6a97a4412@mail.gmail.com> Date: Thu, 17 Apr 2008 22:06:22 -0700 From: "Yinghai Lu" To: "Johannes Weiner" Subject: Re: [RFC][patch 2/5] mm: Node-setup agnostic free_bootmem() Cc: "Ingo Molnar" , LKML , "Linux MM" , "Andi Kleen" , "Yasunori Goto" , "KAMEZAWA Hiroyuki" , "Christoph Lameter" , "Andrew Morton" , "Siddha, Suresh B" In-Reply-To: <877iexfw2h.fsf@saeurebad.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080416113629.947746497@skyscraper.fehenstaub.lan> <20080416113719.092060936@skyscraper.fehenstaub.lan> <86802c440804161054h6f0cfc3dmde49006afb7889b2@mail.gmail.com> <86802c440804161144id4f2a68i37513ac0428c693@mail.gmail.com> <20080416184816.GA4400@elte.hu> <877iexfw2h.fsf@saeurebad.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 16, 2008 at 12:17 PM, Johannes Weiner wrote: > Hi, > > > > Ingo Molnar writes: > > > * Yinghai Lu wrote: > > > >> > Yes, it should work well with cross nodes case. > >> > > >> > but please add boundary check on free_bootmem_node too. > >> > >> also please note: it will have problem span nodes box. > >> > >> for example: node 0: 0-2g, 4-6g, node1: 2-4g, 6-8g. and if ramdisk sit > >> creoss 2G boundary. you will only free the range before 2g. > > > > yes. Such systems _will_ become more common - so the "this is rare" > > arguments are incorrect. bootmem has to be robust enough to deal with > > it. > > Ingo, I never doubted any of this, I was just asking more than once if > and when this might happen. And I don't want the allocator become > fragile, just not completely ignorant about bogus input. > > But the situation is still not clear for me. Ingo, how are these > node spanning pfn ranges represented in the kernel? How many node > descriptors will you have in the case Yinghai described and how will > they look like? according to patch from Suresh in x86.git, one node still only have one bdata. YH