Linux Kernel source Code Analysis-process management and scheduling
http://wenku.baidu.com/link?url=yzMjiwX-ZzlnYZgb8CKG5veDdv6_uTbweFpb0_ lpddf7xyilf4fimm4qcl5-0gsk6snu9krfuqvrzydbl0wlu8rhgilvfms_mpil0hrsb4m
Tasks for Process Management
. Allow a
MkdevThe function converts the primary and secondary device number to the dev_t type main device number major the secondary device number minor
Header file
Macros defined in
Mkdev (int major,int minor)
Macro definition
#define MKDEV
1.windows and Linux file system differences Windows file System 98 and before Fat NTFS, while Linux is ext2 ext3 ext4
2.EXT2 File System Analysis:
(1) schematic diagram
(2) Interpretation of each block
1.Data block, area where block is
Putty is a very small SSH client, but Linux, the LS directory's default color output is dark blue, in the putty looks very difficult, so I have a little bit of information to modify, so that the directory color open up a little more comfortable. As
Today the Linux device Driver (third edition) of the first module Hello module compiled passed, this thing card for me for a long time, during which I spent a lot of time to see the Linux Program Design (second edition), finally today the mechanical
Today, with WINSCP modified the Management machine Linux system under a file, the results of the restart after the management machine is not connected ... But with the debug mouth in, ifconfig a look, I, I changed the site is not good, restart
1. Edit virtual machine settings in the virtual machine
2. Add Hard Drive
3. Run the fdisk-l command to view the current Mount information
4.FDISK/DEV/SDB, creating partitions
5.fdisk-l can see that the current system has
Thread:A thread is an execution stream that performs a smaller granularity than a process; a thread is a control sequence that runs within the address space of the process.In the Linux thread has a separate PCB, in order to realize the switch in the
Reference text: http://blog.csdn.net/w18600281813/article/details/50977688
Scene:
After installing the virtual machine, you can normally access the extranet (test whether normal method: Ping www.baidu.com), in order to facilitate our future access,
Linux Module Programming
1.1 Module Learning what
1. Know what a module is. What does it have to do with the drive I'm learning?
2. Familiar with the installation of the module, uninstall, view
3. Familiar with the basic framework of the module
4.
You can first use Rpm-qa |grep rsync to see if rsync is installed
Let's talk about the Rsyns configuration process
I. Configuring server-side
First edit the/etc/rsyncd.conf content as follows:
UID = nobody #进行备份的用户nobody为任何用户
GID = Nobody #进行备份的组
Original URL:
Http://www.cnblogs.com/kaituorensheng/p/4002697.html
1 2 3 4 5 6 7 8
$# is the number of arguments passed to the script $0 is the name of the script itself $1 is the first argument passed to the shell script $2 is
The Linux kernel load process is approximate:
The first step-loading the BIOS
People with a slight computer base should have heard the BIOS (basic Input/output System), which can be viewed as software that is recorded in ROM. It is also clear how
Often found in the regular detection of the script kill, the process will be zombie inside, unable to clean. You can refer to the following method to clean up:
Processes that have the following environments:
#ps aux |grep monitorast.plRoot 3962 0.0 1
The kernel module is a socket provided externally by the Linux kernel, which is known as the dynamic loadable kernel module (Loadable Kernel module,lkm), and is referred to as a module . The Linux kernel provides a modular mechanism because it
1. Demand Analysis
After the project on the line, due to various factors, Linux cloud services may be full of disk running, memory run full, CPU running a series of performance optimization problems, today I take everyone to see how to perform
NETSTAT-ANP | grep xxxx #xxxx为端口号OrLsof-i: xxxx #xxxx为端口号
We know, according to Ps-aux | grep xxx is to quickly realize the process name and process number of mutual check, so we only say process number PID on the line. In the following
How to build a local source
Mount-iso9660-o loop/dev/cdrom/media/
To connect to a virtual machine and Linux under a virtual machine
Ls/media
Mkisofs-r-O/RHEL6.ISO/MEDIA/RHL
umount/media/rhel_6.3\ x86_64\ disc\ 1/
ls/media/
Similar: can be performed as and executed when both the before and after statements are true.
Difference:&& must be successful before the next sentence will be executed; The latter sentence is executed regardless of the success of the previous
I. Achieving
In Linux, the implementation of the tunnel is based primarily on two files new_tunnel.c and ipip.cAt the same time Linux defines a new protocol type--IPIP (IPPROTO_IPIP), similar to the package type described above.Basic ideasThe
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