Multiplexer epoll
epoll related system calls
#include <sys/epoll.h>
int epoll_create(int size);
epoll_create creates an epoll model and returns a file descriptor pointing to the epoll model.Parameter is deprecated and reserved for compatibility. Fill in at will.The file descriptor is returned successfully, and - 1 is returned for failure.
int e ...
Added by mjs87 on Sun, 05 Dec 2021 13:05:54 +0200
Software implementation method of process mutual exclusion
Principle of mutual exclusion of processes
Idle admission: when the critical area is idle, a process should be allowed to access it.
Wait when busy: when the critical area is being accessed, other processes trying to access need to wait.
Limited waiting: to enter the critical area within a limited time, the packaging will not be hung ...
Added by Moocat on Sun, 05 Dec 2021 04:49:04 +0200
File system and log analysis
File system and log analysis
summary
inode and block
Hard link and soft link
Recover accidentally deleted files
Analysis log file
inode and block overview
File data includes meta information and actual dataFiles are stored on the hard disk. The minimum storage unit of the hard disk is "sector". Each sector stores 512 bytesBlock ...
Added by savagenoob on Sat, 04 Dec 2021 21:54:39 +0200
Linux Docker image packaging
Introduction: This article mainly explains how to install and package Linux Docker images.
For image download, domain name resolution and time synchronization, please click Alibaba open source mirror station
1, Build Docker environment
1. Installation under linux environment
Install / upgrade your Docker client
It is recomm ...
Added by b2k on Sat, 04 Dec 2021 03:45:12 +0200
A generic makefile
Is there a more general makefile?
Write before:
This general mkaefile document comes from one of the documents mentioned in the positive atom learning board. Of course, this does not mean that it is the most appropriate. It is just the most powerful document I have encountered in the learning process.
The focus is still on learning. Learn how ...
Added by quizzical on Sat, 04 Dec 2021 02:16:01 +0200
LED experiment with C language, assembly Oh!
C language LED experiment
1. Assembly activation CPU
First of all, we should understand that there is no way to directly identify C without a system development board (that is, bare metal). Therefore, an assembly language is needed to configure CPU resources, select CPU operation mode and initialize pointer position.
The code is as follows:
.gl ...
Added by Pepe on Sat, 04 Dec 2021 00:03:38 +0200
Performance: detailed explanation of vmstat command
introduction
vmstat obtains rough information about the performance of the whole system, including:
Number of running processesCPU usageNumber of interrupts received by CPUNumber of context switches performed by the scheduler
grammar
NAME
vmstat - Report virtual memory statistics
Overview
vmstat [-n] [delay[count]]
vms ...
Added by CG_dude on Fri, 03 Dec 2021 18:46:23 +0200
Kubebuild and code generator
overview
kubebuilder and k8s.io/code-generator Similarly, it is a code generation tool used to generate code for your CRD kubernetes-style API realization. At present, Kubebuilder generates CRD and manifest yaml, and then code generator generates informers, listers and clientsets. Note that the methods described in this article can no long ...
Added by asgerhallas on Fri, 03 Dec 2021 01:04:17 +0200
docker single host network type
As a small note reference!!!
This article mainly writes the docker single host network type none host container bridge
The first three are simple. Finally, I will talk about the bridge network in detail
When docker is installed, three different networks will be created by default:
[^_^] kfk ~# docker network ls
NE ...
Added by ollie007 on Thu, 02 Dec 2021 00:29:39 +0200
LNMP+Wordpress for building Docker image
catalogue
1, Deployment environment
2, Installing centos:7
3, Custom network
4, Installing nginx
1. Create Nginx directory
2. Write the Dockerfile script of Nginx
3. Configure nginx.conf file
4. Generate nginx image
5. Customize the ip address and start the image container (limit the maximum use of 500MB of memory and 1G of Swap by the ...
Added by kartul on Wed, 01 Dec 2021 20:39:53 +0200