[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87iqyihoiv.fsf@saeurebad.de>
Date: Tue, 15 Apr 2008 22:05:44 +0200
From: Johannes Weiner <hannes@...urebad.de>
To: "Yinghai Lu" <yhlu.kernel@...il.com>
Cc: "Andi Kleen" <andi@...stfloor.org>,
"Andrew Morton" <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, "Ingo Molnar" <mingo@...e.hu>,
"Yasunori Goto" <y-goto@...fujitsu.com>,
"KAMEZAWA Hiroyuki" <kamezawa.hiroyu@...fujitsu.com>,
"Christoph Lameter" <clameter@....com>
Subject: Re: [patch 2/2] bootmem: Node-setup agnostic free_bootmem()
Hi,
"Yinghai Lu" <yhlu.kernel@...il.com> writes:
> On Tue, Apr 15, 2008 at 12:51 PM, Johannes Weiner <hannes@...urebad.de> wrote:
>> Hi,
>>
>>
>> "Yinghai Lu" <yhlu.kernel@...il.com> writes:
>>
>> > On Tue, Apr 15, 2008 at 4:53 AM, Johannes Weiner <hannes@...urebad.de> wrote:
>> >>
>> >> Andi Kleen <andi@...stfloor.org> writes:
>> >>
>> >> > Andrew Morton wrote:
>> >> >> On Sun, 13 Apr 2008 18:56:57 +0200 Andi Kleen <andi@...stfloor.org> wrote:
>> >> >>
>> >> >>> Johannes Weiner <hannes@...urebad.de> writes:
>> >> >>>
>> >> >>>> Make free_bootmem() look up the node holding the specified address
>> >> >>>> range which lets it work transparently on single-node and multi-node
>> >> >>>> configurations.
>> >> >>> Acked-by: Andi Kleen <andi@...stfloor.org>
>> >> >>>
>> >> >>> This is far better than the original change it replaces and which
>> >> >>> I also objected to in review.
>> >> >>>
>> >> >>
>> >> >> So... do we think these two patches are sufficiently safe and important for
>> >> >> 2.6.25?
>> >> >
>> >> > It's only strictly needed for .26 I think for some (also slightly
>> >> > dubious) changes queued in git-x86.
>> >>
>> >> Does anything yet rely on this new free_bootmem() behaviour? If not,
>> >> the safest thing would be to just revert the original patch in mainline
>> >> and drop the second patch completely.
>> >
>> > 1. free_bootmem(ramdisk_image, ramdisk_size) in setup_arch of x86_64
>> > need that
>> > 2. another patch in x86.git need that.
>>
>> Ok, to avoid confusion: we are talking about free_bootmem() iterating
>> over nodes and looking up an area WITHIN a node or free_bootmem()
>> freeing an area ACROSS nodes?
>>
>> The first is what my patch does _only_.
>
> Yes, your patch for free_bootmem only can free blocks in the same
> node.
Yep.
> but the free_bootmem(ramdisk_image,...) in setup_arch could cross
> node... , and some other via reserve_early...
>
> for example two nodes, every node have 2G, and in case use
> memmap=NN$SS to execlude some memory on node1. the ramdisk could sit
> cross the boundary.
Now it gets clear. Alright, then my patches should be dropped and I'll
whip something up for the 2.6.26 merge window.
Hannes
--
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