The Wait_on_buffer and Wait_on_inode functions in the Linux0.11 kernel are very representative of the delay function processing, and the discussion on the two functions on the net
Also a lot of, the most important one question is why in Judge B_lock
A. Linux memory allocation
Linux memory allocation simple meaning is divided into four paragraphs
1. Code Area
2. Global variable Area
3. Stack
4. Heap
Verify by using the following program
#include
#include
#include
int add (int a,int b)
{
Linux system swappiness parameters optimized between memory and switching partitions 2014-08-14 10:24:19
Category: Linux
The size of the swappiness value has a great connection to how the swap partition is used. Swappiness=0 the maximum use
Valgrind Introduction:
Valgrind is the framework of dynamic analysis tools. There are many Valgrind tools that automatically detect many memory management and multiple process/thread bugs, and dissect your program in detail. You can also use the
This blog is written because it needs to be used later when using keepalived to implement Nginx high availability. The role of virtual IP in high availability is followed. Today to see how to configure the server virtual IP, in fact, is to allocate
download CAs
Download cas-server-4.0.0-release.zipfrom GitHub, as shown in Figure 2.1.1 Red box, address:https://github.com/apereo/cas/releases/ tag/v4.0.0.
Figure 2.1.1 Publishing CAs
Unzip the downloaded CAs compressed file to
1. Compile and link to deliver executable file sample
Gcc-c-i/usr/local/include/http_test.cpp-o HTTP_TEST.O
Gcc-l/usr/local/lib-lboost_locale http_test.o-o Test
2. Find
The contents of the current directory contain a field file and display the
Open System port number
A./sbin/iptables-i input-p TCP--dport 8181-j ACCEPT
B./etc/rc.d/init.d/iptables Save
C. The status of the port can be viewed through the following command:
/etc/init.d/iptables status
[Root@localhost
How to use the awk tool jarly Publishing
When you first pick up your hands and use the awk command on your computer to process one or more files, it reads each line of the file sequentially, then processes it, and the awk command obtains the
if statement to determine:
Instance:
#!/bin/sh# This A is test ssh scrptecho "Plase input a number:"Read-p A#echo "Your number is ${a}"if [$a = "1"]; Then echo "Linux";elif [$a = "2"]; Then echo "Solaris";else echo "What?";Exitfi;
1 string
Now most enterprises are enabled Liunx or Ubuntu and other Liunx operating system as a core server, but most of the desktop system is using the window system. In management, as a network administrator, is often used for remote connections. So how do
Linux formatted disk command linux mkfs directive: MKFS Use Rights: MKFS [-v] [-t Fstype] [fs-options] Filesys [blocks] [-l lable] said Ming: The establishment of the Linux file system on specific partition parameters: device:
Original website: http://blog.csdn.net/akatope/article/details/6506101bootloader introduction of embedded Linux system
SupportLinuxBootloader more, the development to 2010, there have been some inevitable results, some bootloader have disappeared,
Include/linux/stringify.h:
#ifndef __linux_stringify_h
#define __LINUX_STRINGIFY_H/
* Indirect stringification. Doing two levels allows the parameter to be a
* macro itself. For example, compile With-dfoo=bar, __stringify (FOO)
* converts to
For example, the environment variable path in Linux is:
/opt/ros/indigo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
If you want to get each of these directories, you can do this in two ways:1 First
In the virtual machine Linux installed httpd, that is, Appache, after the boot, according to the normal situation in the host can be accessed by the browser through the virtual machine Linux IP to access. If an inaccessible situation occurs, the
"Linux" rsync usage
Rsync is the first to replace the RCP this directive, because rsync not only the speed of transmission, and he can transfer, compared to the local and remote host to copy the contents of the file, but only the difference
First, the installation reason
Small rookie has been using Windows system to write code, after experiencing the win7,win8,win10, decisively changed back to Win7, with very good, may be the computer age do not like new gadgets, change back to Win7,
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