Linux Kernel (kernel)

Source: Internet
Author: User

1, the kernel is what, the kernel is the core of the operating system.
In Linux, in fact, the kernel is the system above a file, this file contains the driver of the hardware of the test program and driver module. The kernel file is in the/boot directory in the beginning of the Vmlinuz file, and sometimes found that boot has several files beginning with Vmlinuz, indicating that there can be more than one kernel, but when the start can only choose to load, Linux is a single core, modular system.

The output of the three columns of information is the module name, the memory size, whether it is used, if the third column 0, the module can be unloaded at any time, not 0 will not be able to execute the modprobe delete module.
2. View the kernel modules that have been loaded:
A.lsmod command

B. Viewing the files of a kernel module

C. You can view the information for the specified module modinfo

View information for bridge modules
D. Loading and unloading module Modprode
Load Modprode mod_name (automatically resolve dependencies)
Uninstalling Modprode-r Mod_name
E. Manual loading and unloading of module files
Load Insmod/path/to/module_file (dependencies are not automatically resolved)
Uninstalling Rmmod Mod_name
3,/proc directory is a system interface with the kernel of a pseudo-file system, each file name under the/proc directory is a kernel parameter, the directory name is the kernel parameter node (subsystem or sub-function) information. Like what:
Net.ipv4.ip_forward = 1 This parameter represents the core route forwarding function of IPv4, the corresponding kernel file is
/proc/sys/net/ipv4/ip_forward
Some of the read-only files in this directory represent the kernel information of the output, and some writable files represent the kernel features that can be modified, and these writable files are distributed in the/proc/sys directory.
The pseudo file system features: Files cannot be edited directly using the editor and can be modified in the following ways
(1) Echo
echo "New_value" >/proc/sys/path/to/file
(2) Sysctl-w
Sysctl-w Path.to.file = New_value
/proc/sys/net/ipv4/ip_forward

Both of these methods are set to take effect immediately, but the kernel is not valid after a reboot.
Kernel parameter configuration file/etc/sysctl.conf
Path.to.paramter=new_value
Note that this setting does not take effect immediately, but has been in effect since the system was restarted, in order to make it effective without restarting the system:
Sysctl-p
View all parameters and their values for the currently running kernel
Sysctl-a

Linux Kernel (kernel)

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.