Linux
R
Kernel Configuration
中文手册(2.6.26.4)
刘少侠
中国·October 12, 2008
2
i
前言
这是关于Linux内核配置菜单选项的书。
Linux发 展到今天 ,已 经是 版本2.6.26.4( 截止2008年9月26日 )。 为了 让广
大Linux爱好者能够更加清楚的了解Linux内核的配置,笔者在业余时间里翻译
了它的部分配置菜单。
由于本人水平有限,且时间仓促,不 足之处在所难免。 欢迎 广大读者批评指
正,共同提高。
作者:刘少侠
October 12, 2008
ii
Contents
I 总总总览览览 1
II 开开开始始始配配配置置置菜菜菜单单单 7
1 General setup 常常常规规规设设设置置置 9
1.1 Prompt for development and/or incomplete code/drivers . . . . . . 9
1.2 Local version - append to kernel release . . . . . . . . . . . . . . . . 9
1.3 Automatically append version information to the version string . . . 9
1.4 Support for paging of anonymous memory (swap) . . . . . . . . . . 10
1.5 System V IPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.6 BSD Process Accounting . . . . . . . . . . . . . . . . . . . . . . . . 10
1.7 Export task/process statistics through netlink . . . . . . . . . . . . . 10
1.8 Auditing support . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.9 Kernel .config support . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.9.1 Enable access to .config through /proc/config.gz . . . . . . . 11
1.10 Kernel log buffer size . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.11 Control Group support . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.12 Create deprecated sysfs file . . . . . . . . . . . . . . . . . . . . . . . . 12
1.13 Kernel→user space relay support (formerly relayfs) . . . . . . . . . . 12
1.14 Namespaces support . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1.15 UTS Namespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1.15.1 IPC Namespaces (IPC NS) . . . . . . . . . . . . . . . . . . . 12
1.16 Initial RAM filesystem and RAM disk support . . . . . . . . . . . . . 13
1.16.1 Initramfs source files . . . . . . . . . . . . . . . . . . . . . . . 13
1.17 Optimize for size . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.18 Configure standard kernel features (for small systems) . . . . . . . . 13
1.19 Disable heap randomization . . . . . . . . . . . . . . . . . . . . . . . 13
1.20 Choose SLAB allocator . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.20.1 SLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.20.2 SLUB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
iii