Linux Kernel configuration options

Source: Internet
Author: User
Tags dell laptop intel pentium
The Linux Kernel configuration option-general Linux technology-Linux programming and kernel information is described in detail. Part 1

01. Code maturity level options ---> Code maturity level options

01.01 [] Prompt for development and/or incomplete code/drivers is selected by default, this will display the code and driver that are still being developed or not completed on the settings page. you should select it because many devices may have to select this option for configuration. In fact, it is safe.

01.02, [] Select only drivers expected to compile cleanly Select this option, you will not see some known problematic driver options, which are also selected by default. If you have a device that does not find the driver option, you can remove this option, or you can find the relevant driver, but it may have a BUG.

Part 2

02. General setup ---> General Installation Options

02.01. () Local version-append to kernel release

02.02,

Support for paging of anonymous memory (swap) will enable your kernel to Support virtual memory, that is, it makes your computer seem to have more memory space than the actual memory to execute large programs. It is selected by default.

02.03,

System v ipc (IPC: Inter Process Communication) is a group System call and function library that allows programs to exchange information with each other synchronously. Some programs and DOS simulation environments need it. Provides a communication mechanism for processes, which enables information exchange and synchronization between processes in the system. Some programs can run only when Y is selected, so you do not need to consider it.

02.04,

BSD Process Accounting A program generally executed by a user, which notifies the kernel to Write Program statistics into a file and record relevant information in detail.

02.05. [] BSD Process Accounting version 3 file format

02.06,

Sysctl support this feature allows you to dynamically change certain kernel parameters and variables without re-compiling or re-starting the kernel, giving greater flexibility to the kernel. Unless the memory is too small or the compiled kernel is used by the installation or rescue disk, this option must be selected. This provides an interface for you to dynamically change some core parameters and variables without restarting the system. Enabling this option will increase the kernel size by at least 8 KB. If your kernel is only used to create, install, and recover the system disk, you can leave it unselected to reduce memory usage.

02.07,

Auditing support audit support is used to work with some sub-modules of the kernel, such as SELinux. Only this item and its subitem can be selected to call the system call for review.

02.08,

Enable system-call auditing support

--- Support for hot-pluggable devices whether hot swapping is supported must be selected. Otherwise, neither USB nor PCMCIA can be used.

02.09,

The Kernel of Kernel Userspace Events is divided into the system zone and user zone. In this example, the system zone and user zone are used for communication.

02.10. [] Kernel. config support will compile the Kernel configuration information and related documentation into the kernel. Later, you can use some tools to extract it for re-building the kernel. Generally, you do not need to select it.

02.11 [] Configure standard kernel features (for small systems) ---> This is used to compile kernels for some special purposes, such as boot disk systems. Generally, you do not have to worry about the sub-items below this option.

Part 3

03. Loadable module support ---> the support for bootable modules is recommended to be added to the kernel as a module.

03.01,

The Enable loadable module support option enables your kernel support module. What is the module? A module is a small piece of code. After compilation, You can dynamically Add the kernel when the system kernel is running, so as to add some features to the kernel or support certain hardware. Generally, some commonly used drivers or features can be compiled into modules to reduce the size of the kernel. You can run the modprobe command to load it to the kernel (you can also remove it when it is not needed ). The principle of compiling some features into modules is that they are not often used. In particular, drivers that are not required during system startup can compile them into modules, if the driver is used when the system starts, for example, the file system, the support of the system bus should not be compiled as a module, or the system cannot be started.

03.02,

The Module unloading option allows you to detach a Module that is no longer used. If you do not select this option, you cannot detach any Module (some modules cannot be detached Once loaded, whether or not you have selected this option ). If you do not select this option, your kernel size will be reduced a little.

03.03. [] Source checksum for all modules is used to prevent version conflicts caused by code changes to the kernel module but the version number is not changed. I guess no company is using version control tools in development, so I don't need this. If you do not write the kernel module by yourself, you do not need this option.

03.04,

In general, if our kernel needs to use a driver or feature compiled as a module in some tasks, we must first use The modprobe command to load the module, only the kernel can be used. However, if you choose this option, when the kernel needs some modules, it can automatically call The modprobe command to load the required modules. This is a great feature, of course, you must choose Y.

Part 4

04. Processor type and features ---> Processor type

04.01. Subarchitecture Type (PC-compatible) ---> the main purpose of this option is to enable Linux to support multiple PC standards, generally, the pc we use follows the so-called IBM compatibility structure (pc/). This option allows you to select other architectures. We generally choose PC-compatible.

Select PC mode for 04.01.01 and (X) PC-compatible.
04.01.02, () AMD Elan
04.01.03, () Voyager (NCR)
04.01.04, () NUMAQ (IBM/Sequent)
04.01.05, () SGI 320/540 (Visual Workstation)
04.02 Processor family (Pentium-Pro) ---> CPU options here, select the appropriate options for your CPU model.
04.02.01, () 386
04.02.02, () 486
04.02.03, () 586/K5/5x86/6x86/6 x86MX
04.02.04, () Pentium-Classic
04.02.05, () Pentium-MMX
04.02.06, () Pentium-Pro
04.02.07, () Pentium-II/celon (pre-Coppermine)
04.02.07, () Pentium-III/celon (Coppermine)/Pentium-III Xeon
04.02.08, () Pentium M
04.02.09, () Pentium-4/celon (P4-based)/Pentium-4 M/Xeon
04.02.10, () K6/K6-II/K6-III
04.02.11, (x) Athlon/Duron/K7 I used the CPU Athlon XP2000 +, so I chose this.
04.02.12, () Opteron/Athlon64/Hammer/K8
04.02.13, () Crusoe
04.02.14, () Efficeon
04.02.15, () Winchip-C6
04.02.16, () Winchip-2
04.02.17, () Winchip-2A/Winchip-3
04.02.18, () GeodeGX1
04.02.19, () CyrixIII/VIA-C3
04.02.20, () VIA C3-2 (Nehemiah)

04.03. [] the Generic x86 support option provides maximum compatibility with the X86 series CPU to support some rare x86 system CPUs, which may reduce some system performance. If your CPU can be found in the above list, you do not need to select it.

04.04,

HPET Timer Support is also a new feature. HPET is a new Timer developed by intel to replace the traditional 8254 (PIT) interrupt Timer and RTC Timer. If you have a newer machine, select it. Generally, it is a security option. Even if your hardware does not support HPET, it will not cause problems, because it will be replaced with 8254 automatically.

04.05. [] Provide RTC interrupt There is no help available for this kernel option.

04.06. [] Symmetric multi-processing support supports multi-processor options. If you only use a single CPU, disable it.

04.07,

Preemptible Kernel is a new feature. As mentioned in almost all articles about 2.6, This is the preemptive Kernel. That is to say, some high-priority programs can first execute with some low-priority programs, even if these programs are executed in the core State (which is actually not really a preemptive kernel ). This reduces the kernel latency and improves system response. Of course, in some special points, the kernel cannot be preemptible. For example, the scheduling program in the kernel itself cannot be preemptible during execution. This feature can improve the performance of the desktop and real-time systems.

04.08 [] Local APIC support on uniprocessors

04.09,

Machine Check Exception if the system has some problems, such as CPU overheating, the kernel will print relevant information on the screen to remind you. This feature requires hardware support. You can check/proc/cpuinfo to see if the mce mark exists. If yes, choose. If you have a problem after selecting it, you can disable it by adding the nomce parameter at startup.

04.10. <*> Check for non-fatal errors on AMD Athlon/Duron/Intel Pentium 4. Enabling this option will Check possible problems on your machine, if a non-fatal error occurs, it will be automatically repaired and recorded. This can help you find out the cause of the problem in the program and is a good option. Of course, it can only be used on AMD Athlon/Duron/Intel Pentium 4 CPUs. If you are using one of them, choose.

04.11. <> toshba Laptop support Toshiba notebook support. This option is for the toshba notebook and can be used to access the system management mode of toshba, that is, you can directly set the BIOS. However, note that it only plays a role in toshba's own BIOS. If you have a toshba notebook, but its BIOS is Phoenix, this option is still useless. Close the desktop!

04.12. <> Dell laptop support DELL notebook support. As shown above, the desktop is disabled!

04.13, [] Enable X86 board specific fixups for reboot

04.14 <>/dev/cpu/microcode-Does Intel IA32 CPU microcode support Intel IA32 architecture CPU (Xeon )? This option allows you to update the microcode of the Intel IA32 series processor. Of course, you must select devfs in the file system option to use it normally. If you translate it into a module, you also need to use modprobe. add this line of alias char-major-10-184 microcode kernel itself does not have a binary file with microcode, you can get the new information http://www.urbanmyth.org/microcode/ at this URL

04.15,/dev/cpu/*/msr-Model-specific register support do you Want to enable the special register function of Pentium CPU? This option is generally unavailable to desktop users. It is mainly used in Intel's embedded CPU. The function of this register is also different from that of different CPU types, it can be used to change the usage of some CPU's original physical structure, but the CPU usage varies greatly.

04.16,/dev/cpu/*/cpuid-CPU information support? Is the function of recording Petium CPU information enabled? This creates a series of device files in/dev/cpu to allow the process to access the specified CPU. Generally, this parameter is not required.

04.17. Firmware Drivers --->

04.18, High Memory Support (4 GB) ---> High-capacity Memory Support

04.18.01, (x) off I use M memory, choose this.

04.18.02, () 4 GB

04.18.03, () 64 GB

04.19,

Allocate 3rd-level pagetables from highmem unless there is a few GB of memory, it makes no sense to choose this option.

04.20. [] Math emulation Linux core Math floating point simulator, coprocessor is the darling of the 386 age and has been laid off.

04.21,

MTRR (Memory Type Range Register) support for faster communication in the PCI or AGP bus. Since all systems now connect their graphics cards to PCI or the AGP bus, you usually need to select "MTRR ". In any case, enabling this option is usually safe-even if your machine does not use a PCI or AGP bus graphics card.

04.22, [] Boot from EFI support (EXPERIMENTAL) Since I am using GRUB, it is useless to choose this one. If you are going to use the EFI feature, you can go to the http://elilo.sourceforge.net to see it.

04.23,

Enable seccomp to safely compute untrusted bytecode

Part 5

05. Power management options (ACPI, APM) ---> Power management options

05.01,

Power Management support

05.02. [] Power Management Debug Support debugging information Support for Power Management. Do not select this option if you do not want to Debug the Power Management part of the kernel.

05.03. ACPI (Advanced Configuration and Power Interface)
Support ---> Some kernel features may be built directly into the kernel. Some
May be made into loadable runtime modules. Some features may be completely
Removed altogether. There are also certain kernel parameters which are not
Really features, but must be entered in as decimal or hexadecimal numbers
Or possibly text.
Menu items beginning, Or [] represent features configured to be
Built in, modularized or removed respectively. Pointed brackets <> represent
Module capable features.
To change any of these features, highlight it with the cursor keys and press
To build it in, To make it a module or To removed it. You may also
Press To cycle through the available options (ie.
Y-> N-> M-> Y ).
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.