Re: bootmem allocator

From: Andi Kleen
Date: Mon Apr 07 2008 - 15:44:30 EST


Ingo Molnar <mingo@xxxxxxx> writes:

> * Cyrill Gorcunov <gorcunov@xxxxxxxxx> wrote:
>
>> Hi Ingo, Peter,
>>
>> small question. It was a patch recently posted which removes memset(x,
>> 0, x) after __alloc_bootmem call. There are a few another code
>> snippets who still call memset(x, 0, x). And who is responsible for
>> memory clearing? bootmem allocator or caller?
>
> hm, bootmem allocator is supposed to clear memory. We have a couple of
> places that rely on that.

I was actually considering to change that for the GB pages hugetlbfs
patchkit, because memset for 1G is a little slow and not needed (will be cleared later
anyways) and it might be a problem for very large systems with a lot of such
pages at boot.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/