217 static define_per_cpu (struct runqueue, runqueues);One #define DEFINE_PER_CPU (type, name)__ATTRIBUTE__ ((__section__ (". Data.percpu")) __typeof__ (type) per_cpu__# #name13
First of all, there are in the Arch/i386/kernel/vmlinux.lds
* 'll
Usually in addition to the disk or new system, it is essential to format the disk, partition, mount the partition. Played Ali and other virtual host friends know that the data disk is required to partition and mount, for the novice is indeed a
If you think you know more about your process than the kernel's process scheduler, and you don't want to consume too much CPU0 and a higher cache hit, you can set up a process to run on one or some CPUs.
Redis is a single process model, in order to
A Cygwin
Cygwin is a class UNIX® environment for microsoft®windows® operating systems. It contains a real Unix shell, a portable operating System Interface (POSIX) emulation library, and thousands of UNIX utilities.
Role:
1 as a beginner of
Linux Network Initialization process
1. System initialization
(1) X86 of PC initialization process
1) Initialization of the CPU itself
2 BIOS Power self-test post
Complete the system hardware detection, including memory detection, system bus
In this article, we analyze Input_register_handler, a very important function. As mentioned before, this is registered as a driver.
We go to the input directory to look at those file calls this function, respectively: EVDEV.C (Evdev Drive), JOYDEV.
http://www.perfgeeks.com/?p=723 http://www.perfgeeks.com/?p=770You often use the top command to understand process information, including information about memory. The command top Help document explains each field in this way.Virt, Virtual Image (KB)
1. Create a function of the folder:
extern int mkdir (_const char *_path,_mode_t _mode);
Failure returned-1, successfully returning 1.
2. Delete the folder function:
extern int rmdir (_const char *_path);
Failure returned-1, successfully returning 1.
This article mainly refers to: http://forum.ubuntu.org.cn/viewtopic.php?f=122&t=196562&start=0, but in the operation is not the same as the text description of the order, recorded.After decompression, compile, errorConfigure:error:GNU GetText tools
Thread
Mainly used to 3 functions, pthread_create (Create), Pthread_exit (exit), Pthread_join (Waiting to exit).
Examples are as follows:
/* example.c*/
#include
#include
void thread (void)
{
int i;
for (i=0;i
We compile this program:GCC
It should be noted that the use of Pthread_detach after the thread can not use pthread_join, or there will be invalid argument error
#include
#include
#include
void *th_run (void *arg)
{
int n = 3;
while (n--)
{
printf ("Thread run\n");
Linux system startup, refers to the system from the power to the system console display "Login:" Login prompt to the operating stage, and the most closely related to this part of the code is: four assembler: Bootsect. S Setup. S head. S entry.
One, one CPU runs the specified function on another CPU
int smp_call_function_single (int cpu, smp_call_func_t func, void *info, int wait) Smp_call_function_single () function,
Run a function on a guided CPU.
I. Introduction and use of lsof
1.lsof
The lsof command tool allows you to see which handles are occupied by a process. You can also see which processes are used by a file.
2.lsof Common usage
(A) Find files opened by the application
The Lsof-p PID
The first contact screen is through Devstack deployment OpenStack, Devstack Environment, OpenStack running in a screen, each service running in a window screen is what
System administrators often need SSH or telent to telnet to a Linux server, often
1.ethtool
Ethtool provides a powerful network card and network driver management capabilities, its concrete implementation framework and network driver and network hardware are closely related, easy to modify and expand, can provide Linux network
ZZ from:http://blog.sina.com.cn/s/blog_7993615401015244.html
tar [-cxtzjvfppn] files and directories .... Parameters:-C: Create a compressed file parameter instruction (create meaning);-X: Unlocks a parameter directive for a compressed file.-T: View
Activate Win10 built-in Linux (Ubuntu)
Microsoft has been natively supporting the Linux Bash command line since version 14316.
1. First go to System setup--Update and security--for developers--Select the developer model.
2. Control Panel →
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