转至繁体中文版     | 网站首页 | 图文教程 | 资源下载 | 站长博客 | 图片素材 | 武汉seo | 武汉网站优化 | 
最新公告:     敏韬网|教学资源学习资料永久免费分享站!  [mintao  2008年9月2日]        
您现在的位置: 学习笔记 >> 图文教程 >> 数据库 >> MySql >> 正文
Linux的内核配置选项         ★★★★

Linux的内核配置选项

作者:闵涛 文章来源:闵涛的学习笔记 点击数:1818 更新时间:2009/4/22 20:45:08


1.Code maturity level options:代码成熟等级。

1.1.prompt for development and/or incomplete code/drivers.
在Linux的世界里,每天都有许多人为它发展支持的driver和加强它的核心。但是有些driver还没进入稳定的阶段。但其作者很欢迎其他人去测试这些driver并提出一些bugs。很多参考书上说这是那些开发人员认为还不是很稳定的功能。但是我个人认为,这个是应该选的一个选项,系统默认是N,我建议还是选择Y,因为会使性能有所提高。


2.Loadable module support:对模块的支持。

2.1.Enable loadable module support(CONFIG_MODULES)[Y/n/?] .
启动动态载入额外模块的功能,系统默认为Y,建议选择该功能。
2.2.Set version information on all module symbols(CONFIG_MODVERSIONS)[N/y/?].
通常,我们更新核心版本之后,模块要重新的编译。这个选项可以为某个版本的内核编译的模块在另一个内核下使用,但通常用不到,可以不选,系统默认为Y。
2.3.Kernel module loader(CONFIG_KMOD)[N/y/?].
如果你启用这个选项,你可以通过kerneld程序的帮助在需要的时候自动载入或卸载那些可载入式的模块。建议选上。让内核在启动时有自己装入必需模块的能力,建议选上。注意:在开机就会 mount 上来的 partition 的 FS 、device driver 记得要 compiler 进 kernel,不能把它弄成 modules。请不要夸张到为了完全模组化而忘了把ext2fs和IDE dirver compiler 进 kernel 里。通常的建议是如果可能,将内核代码编译成可加载模块,因为这样可以使内核更小,而且更稳定。警告!千万不要将文件系统(File System)部分的代码编译为可加载模块,如果你犯了这个错误,将文件系统(File System)部分的代码编译为可加载模块,结果将是内核无法读取它自己的文件系统。 然后内核无法加载它自己的配置文件——一些很明显是在正常启动Linux时所必需的东西。我很少使用可加载模块:虽然会使内核文件变大,但我喜欢我的内核能够直接和硬件对话,这只是我自己的偏好。


3.Processor type and features:处理器类型和特色
3.1. Low latency scheduling(Pentium-Pro/Celeron/Pentium-II) Proceeor family.
可以用uname -a 查询你的详细系统信息。选择你的CPU的种类,BIOS可以自检得到,注意系统的启动信息。它会对每种CPU做最佳化,所以要选择正确的CPU否则会对该机的性能有一定的影响。不过,如果您的gCC编译器是2.7.0版以前的。那么只能选择386或是486。通常“/dev/cpu”选项更高级,多数用户并不需要选择它。需要注意的是不能选择比你的CPU类型还高级的CPU,否则可能不能正常工作。
3.2. Machine Check Exception(CONFIG_X86_MCE)
Machine Check Exception support allows the processor to notify the kernel if it detects a problem(e.g. overheating, componet failure).The action the kernel takes depends on the severity of the problem, ranging from a warning message on the console, to halting the machine. You can safely select this on machines that do not support this feature.
For pentium machines the mce support defaults to off as the mainboard support is not always present. You maust activate it as a boot option.
3.3. CPU Frequency scaling
3.3.1. CPU Frequency scaling (EXPERIMENTAL)(CONFIG_CPU_FREQ)
CPU clock scaling allows you to change the clock speed of the running CPU on the fly. This is a nice method to save battery power, because the lower the clock speed, the less power the CPU consumes. Note that this driver doesn''''t automatically change the CPU clock speed, you need some userland tools (which still have to be written) to implement the policy. If you don''''t understand what this is all about, it''''s safe to say ''''N''''
如果你选择了这一项,将出现下面几项:
3.3.2. /proc/sys/cpu/ interface (2.4. / OLD)
3.3.3. AMD Mobile K6-2/K6-3 PowerNow!
3.3.4. VIA Cyrix III Longhaul
3.3.5. Intel Speedstep
3.3.6. Intel Pentium 4 clock modulation
3.3.7. Transmeta LongRun
3.4. Toshiba Laptop support
3.5. Dell laptop support
3.6. /dev/cpu/microcode - Intel IA32 CPU microcode support
If you say Y here and also to "/dev file system support" in the ''''File systems'''' section, you will be able to update the microcode on Intel proceeors in the IA32 family, e.g. Pentium Pro, Pentium II, Pentium III, Pentium 4, Xeon etc. You will obviously need the actual microcode binary data itself which is not shipped with the Linux kernel.
3.7. /dev/cpu/*/msr - Model-specific register support(CONFIG_X86_MSR)
This device gives privileged processes access to the x86 Model-Specific Registers(MSRs). Th is a character device with major 202 and minors0 to 31 for /dev/cup/0/msr to /dev/cpu/31/msr. MSR accesses are direcred to a sprcific CPU on multi-processor systems.
3.8. /dev/cpu/*/cpuid - CPU information support (CONFIG_X86_CPUID)
This device gives processes access to the x86 CPUID instruction to be executed on a specific processor. It is a character device with major 203 and minors - to 31 for /dev/cpu/0/cpuid to /dev/cpu/31/cpuid.
3.9. E820 proc support
3.10. BIOS Enhanced Disk Drive calls determine boot disk (EXPERIMENTAL) (CONFIG_EDD)
Say Y or M here if you want to enable BIOS Enhanced Disk Frive Services real mode BIOS calls to determine whic disk BIOS tries boot from. This information is then exported via /proc.
3.11. (4GB)Hign Memmory Support (CONFIG_NOHIGHMEM)
Linux can use up to 64 Gigabyes of physical memory on x86 systems. However, the address space of 32-bit x86 processors is only 4 Gigabytes large. Thar means that, if you have a large amount of physical memory, not all of it can be "permanently mapped" by the kernel. The physical memory that''''s not permanently mapped is called "high memory".
<= 960M,那么4G的空间分成3G/1G。其中3G作为虚拟内存空间,剩下的1G有Kernel根据实际物理内存尽量使用。
1G<=MM<=4G,那么写4G
>4G,就写64G,这是应用Intel的PAE模式,PAE在IA32处理器是使用3层页面,Linux也支持APE,所有最近的Intel处理器的欧支持APE,注意:如果你些64G,如果CPU不支持APE,将不能启动。
3.12. HIGHMEM I/O support
3.13. Math emulation
3.14. MTRR (Memory Type Range Register) support
3.15. Symmetric multi-processing support
3.16. Local APIC support on uniprocessors (CONFIG_X86_UP_APIC)
A local APIC (Advanced Programmable Interrup Controller) is an intergrated interrrupt controller in the CPU.If you have a single-CPU system which has a proceeor with a local APIC, you can say Y. If you say Y here even though your machine doesn''''t have a local APIC, then the kernel will still run with no slowdown at all. The local APIC supports XPU-generated self-unterrupts (timer, performance counters), and the NMI watchdog whic detects hard lockups.
3.17. Unsynced TSC support (CONFIG_X86_TSC_DISABLE)
This option is used for getting Linux to run on a NUMA multi-node boxes, laptops and other systems suffering from unsynced TSCs or TSC frift, which can cause gettineofday to return non-monotonic values. Choosing this option will diasable the CONFIG_X86_TSC optimization, and allows you to then specify "notsc" as a boot option regardless of which prodessor you have compiled for.
NOTE: If your system hangs when init should run, you are probably using a i 686 compiled glibc which reads the TSC without checking for availability. Boot without "notsc" and install a i386 compiled glibc to solve the problem.
3.2.High Memory Support.
只有当你的计算机有超过1GB内存时才是必须的。因此“High Memory Support”通常并不使用。
3.3.Math emulation(CONFIG_MATH_EMULATION)[N/y/?].
这项询问是否需Linux核心模拟数学浮点运算器。如果你的机器没有数学协处理器,那就选上以提高性能,如果有486Dx、AMD以及Pentium机器的话,这个选项就不必选了,因为它们都有内建的浮点运算器。系统默认为N。
3.4.MTRR (memory type range register)support(CONFIG_MTRR)[N/y/?].
这个选项是用来启动pentinum pro和pentinum II 的特殊功能,如果你用的不是这类CPU就选N,否则也仅仅是使内核变大而已。这项允许在PCI或者AGP总线中进行更快速的通讯。 由于现在所有系统都将它们的显卡接在PCI或AGP总线上,你通常需要选择“MTRR”:无论如,打开这个选项通常都是安全的——即使你的机器没有使用PCI或AGP总线的显卡
3.5.Symmetric multi-processing support(CONFIG_SMP)[Y/n/?].
同步处理器支持该选项保证内核能够以最佳方式加载多处理器。假如被编译的计算机上有多个CPU。一般用户选择N。
3.6.Mutiquad NUMA system.
通常也需要多处理器,但它通常是关闭的。

 
4.General setup:常规内核选项。
 
4.1. Networking support(CONFIG_NET)[Y/n/?].
Linux网络支持,建议选上,否则可能导致内核无法编译。
4.2. PCI supportCONFIG_PCI)[Y/n/?].
这个一般是应该选上的,除非你用没有任何PCI设备的机器。现在的所有系统都使用PCI总线,系统默认为Y。PCIBIOS是用来侦测并启用PCI设备的。
4.3. PCI access mode(BIOS,Direct,Any)[Any].
PCI存取模式。可供选择的有BIOS、Direct和Any,选Any吧。
4.4. PCI quirks (CONFIG_PCI_QUIRKS)[Y/n/?]
用于修补BIOS中对PCI有影响的BUG,同样,如果您对主板很有信心,就选n。
PCI quirks (CONFIG_PCI_QUIRKS)[Y/n/?]
用于修补BIOS中对PCI有影响的BUG,同样,如果您对主板很有信心,就选n。
MCA support(CONFIG_MCA)[N/y/?]
MicroChannel Architecutrue,应用于IBM PS/2机器和掌上电脑
SGI Visual Workstation support(CONFIG_VISWS)[N/y/?]
您的机器是SGI的吗?是就选y。
4.5. Support for hot-pluggabel devices.
热插拔设备支持。支持的不是太好,可不选。
4.6. PCMCIA/CardBus support------>PCMCIA/CardBus support.
有PCMCIA就必选了。
4.7. System V IPC.
起用这个选项可以使内核支持System V 的进程间通信的功能(IPC),有些从System V转移过来的程序会需要这个功能,建议启用该功能.如果将来想编译dosemu(DOS模拟器),它是一个让各个程序(process)同步且能彼此交换数据的函数库和一些系统的调用,建议选择Y。在内核正在运行的时候修改内核。用8KB空间换取某种方便。别选吧,除非你真的想试试。
4.8. BSD Process Accounting.
用于启动由内核将进程信息写入文件的用户级系统调用。就看您想不想用它了。
4.9. Sysctl support.
除非你的内存少的可怜,否则你应该启动这个功能,启用该选项后内核会大8K,但能让你直接改变内核的参数而不必重新开机。以上三项是有关进程处理/IPC调用的,主要就是System V和BSD两种风格。如果你不是使用BSD,就按照缺省吧。
4.10. Kernel core (/proc/kcore/) format.
现在的Linux发行版以ELF格式作为它们的“内核核心格式”。
4.11. Kernel support for A.OUT binaries(CONFIG_BINFMT_AOUT)[Y/m/n/?] .
a.out的执行文件是比较古老的可执行码,用在比较早期的UNIX系统上。Linux最初也是使用这种码来执行程序,一直到ELF格式的可执行码出来后,有愈来俞多的程序码随着ELF格式的优点而变成了ELF的可执码。将来势必完全取代a.out格式的可执行码。但目前由于沿有许多的程序还没有取代过来,所以只好选择Y,等将来有一天,全部的程序都变成了ELF的天下时,那时再disable掉。
4.13. kernel support for elf binaries(CONFIG_BINFMT_ELF)[Y/m/n/?]
  该选项让你的系统得以执行用ELF格式存储的可执行文件,而ELF是现代Linux的可执行文件、目标文件和系统函数库的标准格式。当操作系统要和编译器以及连接器合作时会需要这些标准,所以应该回答Y。
Kernel support for MISC binaries(CONFIG_BINFMT_MISC)[Y/m/n/?]
一般选y,用于支持java等代码的自动执行。
4.12. Power Management support.
电源管理支持。
4.12. Advanced Power Management BIOS support.
高级电源管理BIOS支持。这通常是用在笔记本电脑上的东西,如果您有APM的BIOS,支持省电的设备的(有电池的那种),那么您可以选上这项,一般人这一项是选n,以避免一些可能会发生的问题。后有8个选项。ATX主板需要这两个选项来自动关闭计算机(turn off the computer,包括关闭电源)。

4.14. compile kernel as elf
这选项让你的内核本身以ELF的格式编译,如果你的系统上的过程gcc默认产生ELF格式的可执行文件,那么你就应该启动这个选项。先看看你的编译器的版本再决定。


5.Memory Technology Devices (MTD):配置存储设备。

5.1. Memory Technology Devices (MTD) support.
你需要这个选项来使Linux可以读取闪存卡(Flash Card)之类的存储器。 闪存卡通常用于数码相机。 通过这个选项,Linux可以读取闪存卡(从特殊的设备中,比如读卡机),并且将图片保存为.jpg格式。除非你确定你需要它,否则不必打开它:如果你发现自己需要,你可以在以后加上。
5.2pci bridge optimization(v1.3)??????????????????????
当这个选项被启动时,操作系统会对从CPU和系统内存在PCI总线来往的数据做最佳化,这个功能已经完成实验阶段,使用起来应该很安全,而且还可增进系统的效率。


6.Parallel port support:配置并口。

6.1. Parallel port support(

[1] [2] [3]  下一页


没有相关教程
教程录入:mintao    责任编辑:mintao 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网]
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    同类栏目
    · Sql Server  · MySql
    · Access  · ORACLE
    · SyBase  · 其他
    更多内容
    热门推荐 更多内容
  • 没有教程
  • 赞助链接
    更多内容
    闵涛博文 更多关于武汉SEO的内容
    500 - 内部服务器错误。

    500 - 内部服务器错误。

    您查找的资源存在问题,因而无法显示。

    | 设为首页 |加入收藏 | 联系站长 | 友情链接 | 版权申明 | 广告服务
    MinTao学以致用网

    Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved.
    闵涛 投放广告、内容合作请Q我! E_mail:admin@mintao.net(欢迎提供学习资源)

    站长:MinTao ICP备案号:鄂ICP备11006601号-18

    闵涛站盟:医药大全-武穴网A打造BCD……
    咸宁网络警察报警平台