13.3, Linux kernel Introduction

Source: Internet
Author: User

1. CentOS system Start-up process:

Post (Detect hardware environment)--->bootloader (based on the settings in the BIOS to find out which device to boot from, and then boot the system based on the MBR on the selected device, booting the first stage of grub)---> Load kernel (run kernel image placed in INITRD)--->roofs (Mount root filesystem as read-only)--->switchroot (root switch to official root filesystem)--->/sbin/ Init (first program in user space)


2, Kernel design system: Single core design, micro-core design Two

Linux is a single-core design, but it draws on the design benefits of micro-kernel systems (introducing a modular mechanism for the kernel)


3. Components of the Linux kernel:

There are three main parts: Vmlinuz (core of kernel), kernel object (Kernel objects), RAMDisk (auxiliary file)

3.1 , Vmlinuz: core of the kernel

    vmlinuz generally bzimage compressed files, usually in the/boot directory, The name is: Vmlinuz-version-release  


3.2, kernel Object: Kernel object  

    kernel object kernel objects are kernel modules, usually placed in// Lib/modules/version-release  //Note: The version number of the kernel module version-release information must match the version number of the kernel core file


    []: N, kernel module not compiled

    [m] : modules, compile as kernel module, compile kernel module when used, do not compile when not, the advantage is: Although Occupy disk space, but reduce memory space occupy

  

3.3, RAMDisk: Auxiliary files, it is not necessary, depending on whether the kernel can directly drive the device Rootfs, if you can not need, otherwise need this file.

RAMDisk can load the drive:

Target device drivers: Drivers for SCSI devices

Logical device drivers: such as the drive of an LVM device

File systems: Drivers such as XFS file systems


RAMDisk is a lite version of the root file system, which is placed in memory, it is only to be able to find the real root filesystem exists, the real root filesystem is placed on the hard disk, the data is not lost.



Note: When the system boot is complete and the kernel is loaded, the kernel files we see are static, and the kernel files are changed without immediate effect and restart.


4, Kernel information view:

4.1.
























13.3, Linux kernel Introduction

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.