Re: [PATCH] x86: put initial_pg_tables into .bss -v4

From: Yinghai Lu
Date: Mon Mar 09 2009 - 13:37:26 EST


H. Peter Anvin wrote:
> Yinghai Lu wrote:
>> Impact: cleanup
>>
>> Don't use ram after _end blindly for pagetables. aka init pages is before _end
>> put those pg table into .bss
>>
>> v2: keep initial page table up to 512M only.
>> v4: put initial page tables just before _end
>>
>> Signed-off-by: Yinghai Lu <yinghai@xxxxxxxxxx>
>>
>
> I still feel that this is a movement in *EXACTLY* the wrong direction,
> as it is deliberately intended to prevent a general allocator for
> anything that needs to be dynamic very early on. I still think that
> makes a lot more sense.

it just estimates initial_pg_tables size, and make _end a little bigger (1M), so boot loader could have idea of correct size of vmlinux aka the uncompressed size of in kernel.

I assume brk patches could estimate the extra size that it needs too.

YH


--
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/