- 论坛徽章:
- 0
|
LZ的这个配置是默认的吗?
我贴一下我的
xcm@u32:/u64/home/xcm/source/linux-2.6$ dmesg|grep -e ".text :" -B 2
[ 0.000000] .init : 0xc168e000 - 0xc1715000 ( 540 kB)
[ 0.000000] .data : 0xc148bd92 - 0xc168db68 (2055 kB)
[ 0.000000] .text : 0xc1000000 - 0xc148bd92 (4655 kB)
xcm@u32:/u64/home/xcm/source/linux-2.6$ uname -an
Linux u32 2.6.37-rc5+ #2 SMP PREEMPT Wed Dec 8 13:34:48 CST 2010 i686 GNU/Linux
xcm@u32:/u64/home/xcm/source/linux-2.6$
最新的内核默认是16MB了
commit ceefccc93932b920a8ec6f35f596db05202a12fe
Author: H. Peter Anvin <hpa@zytor.com>
Date: Mon May 11 16:12:16 2009 -0700
x86: default CONFIG_PHYSICAL_START and CONFIG_PHYSICAL_ALIGN to 16 MB
Default CONFIG_PHYSICAL_START and CONFIG_PHYSICAL_ALIGN each to 16 MB,
so that both non-relocatable and relocatable kernels are loaded at
16 MB by a non-relocating bootloader. This is somewhat hacky, but it
appears to be the only way to do this that does not break some some
set of existing bootloaders.
We want to avoid the bottom 16 MB because of large page breakup,
memory holes, and ZONE_DMA. Embedded systems may need to reduce this,
or update their bootloaders to be aware of the new min_alignment field.
[ Impact: performance improvement, avoids problems on some systems ]
Signed-off-by: H. Peter Anvin <hpa@zytor.com> |
|