Processor type and features -> Processor falimy 选择你 CPU 所属的分类
Processor type and features -> Preemption Model 选择 Preemptible Kernel(Low-Latency Desktop)
Processor type and features -> Machine check support 如果是 Intel 用户则去掉 AMD 前面的钩,反之 AMD 用户则去掉 Intel 前面的钩
Processor type and features -> Memory model 如果是 Intel/VIA/其他非 AMD CPU 用户,去掉 K8 GART IOMMU support 前面的钩
Processor type and features -> Time Frequency 选择 1000Hz
Power management options -> CPU Frequency scaling 不支持 CPU 频率调整的老 CPU 直接去掉 CPU Frequency scaling 的钩,并跳过下面两条
Power management options -> CPU Frequency scaling -> AMD Opteron/Athlon64 PowerNow! 非 AMD CPU 用户去掉这一项前的钩
Power management options -> CPU Frequency scaling -> Intel Enhanced SpeedStep 非 Intel CPU 用户去掉这一项前的钩
编译内核所需软件及版本可以在内核的Documentation/Changes文件里找到
例如2.6.17
[code:1]
o Gnu C 3.2 # gcc --version
o Gnu make 3.79.1 # make --version
o binutils 2.12 # ld -v
o util-linux 2.10o # fdformat --version
o module-init-tools 0.9.10 # depmod -V
o e2fsprogs 1.29 # tune2fs
o jfsutils 1.1.3 # fsck.jfs -V
o reiserfsprogs 3.6.3 # reiserfsck -V 2>&1|grep reiserfsprogs
o xfsprogs 2.6.0 # xfs_db -V
o pcmciautils 004
o pcmcia-cs 3.1.21 # cardmgr -V
o quota-tools 3.09 # quota -V
o PPP 2.4.0 # pppd --version
o isdn4k-utils 3.1pre1 # isdnctrl 2>&1|grep version
o nfs-utils 1.0.5 # showmount --version
o procps 3.2.0 # ps --version
o oprofile 0.9 # oprofiled --version
o udev 071 # udevinfo -V
[/code:1]
配置内核可用命令除了make config以外还有一些其他的,例如2.6.17的
[code:1]
"make menuconfig" Text based color menus, radiolists & dialogs.
"make xconfig" X windows (Qt) based configuration tool.
"make gconfig" X windows (Gtk) based configuration tool.
"make oldconfig" Default all questions based on the contents of
your existing ./.config file and asking about
new config symbols.
"make silentoldconfig"
Like above, but avoids cluttering the screen
with questions already answered.
"make defconfig" Create a ./.config file by using the default
symbol values from arch/$ARCH/defconfig.
"make allyesconfig"
Create a ./.config file by setting symbol
values to 'y' as much as possible.
"make allmodconfig"
Create a ./.config file by setting symbol
values to 'm' as much as possible.
"make allnoconfig" Create a ./.config file by setting symbol
values to 'n' as much as possible.
"make randconfig" Create a ./.config file by setting symbol
values to random values.
[/code:1]
可以在内核的README文件里找到
有一个专用于优化性能的ck补丁 http://members.optusnet.com.au/ckolivas/kernel/ 。但是一般的发行版都会集成其中一部分,例如楼主提到的Processor type and features -> Time Frequency 。而且kernel.org的官方内核也会逐渐加入部分功能。所以有可能在打ck补丁的时候会遇到一些fail
[quote:55336753f3="cnhnln"]编译内核所需软件及版本可以在内核的Documentation/Changes文件里找到
例如2.6.17
[code:1]
o Gnu C 3.2 # gcc --version
o Gnu make 3.79.1 # make --version
o binutils 2.12 # ld -v
o util-linux 2.10o # fdformat --version
o module-init-tools 0.9.10 # depmod -V
o e2fsprogs 1.29 # tune2fs
o jfsutils 1.1.3 # fsck.jfs -V
o reiserfsprogs 3.6.3 # reiserfsck -V 2>&1|grep reiserfsprogs
o xfsprogs 2.6.0 # xfs_db -V
o pcmciautils 004
o pcmcia-cs 3.1.21 # cardmgr -V
o quota-tools 3.09 # quota -V
o PPP 2.4.0 # pppd --version
o isdn4k-utils 3.1pre1 # isdnctrl 2>&1|grep version
o nfs-utils 1.0.5 # showmount --version
o procps 3.2.0 # ps --version
o oprofile 0.9 # oprofiled --version
o udev 071 # udevinfo -V
[/code:1][/quote]
并非全部必须,例如文件系统那一块,如果不使用jfs\xfs...的话,就不需要jfsutils之类