[Linux:] read / write lock and spin lock

1. read and write locks In multithreading, the chance to modify public data is less, and the chance to read data is greater than rewriting. If you simply lock It will greatly reduce the efficiency of the program, so we need a read-write lock. The characteristics of the read-write lock are "write ...

Posted on Fri, 21 Feb 2020 07:39:58 -0800 by MrAlaska

Deployment LAMP dynamic static separation

1, LAMP dynamic and static separation When it is necessary to build an efficient web architecture, dynamic static separation is undoubtedly the best choice. This blog will write down the dynamic static separation deployment mode of LAMP. So called LAMP? LAMP architecture is one of the most mature application modes of enterprise website. It re ...

Posted on Fri, 21 Feb 2020 03:41:17 -0800 by Dedix

Linux learning Day4: pipelining, redirection and environment variables

It's not enough just to learn the commands of Linux system. Only by combining multiple commands in the way you want, can you improve your work efficiency. Today's content is mainly about how to combine commands to make the input commands more accurate and efficient, and lay a good foundation for the next Shell script. 1, I / O redirection Inpu ...

Posted on Thu, 20 Feb 2020 22:50:59 -0800 by mash

redhat 7.0 configuring multi network card binding -- learning notes

This experiment environment is RedHat 7.0 systemNetwork card binding can not only improve the network transmission speed, but also ensure the normal use of the server when a network card fails. There are three modes of network card binding: mode0 (balanced load mode): two network cards work at the same time and are automatically prepared. How ...

Posted on Thu, 20 Feb 2020 21:49:05 -0800 by _SAi_

PyTorch learning notes (18) -- cuda extension based on Python 1.1.0

0. Preface For some special operators, we need to customize their forward and reverse processes, so that they can obtain faster speed and accelerate the training of the model. In this way, we will naturally think of using PyTorch's cuda extension to realize. Here, I will start with a simple and easy t ...

Posted on Wed, 19 Feb 2020 21:24:44 -0800 by mammy

Common built-in modules

There are three modules: Custom module Third party module Built in module Built in modules:I. sys Used to provide operations related to Python interpreter: sys.argv command line parameter List, the first element is the path of the program itself sys.exit(n) exit the program, exit(0) when exiting norm ...

Posted on Wed, 19 Feb 2020 21:11:48 -0800 by ibechane

Some command sets for linux to view system resource usage information

Process view and management tools on linux: pstree,ps,pidof,pgrep,top,htop,glances,pmap,vmstat,dstat,kill,pkill,job,bg,fg,nohup,nice,renice,killall. . . When linux is powered on, it will start the first process. This process will start other processes. The first process is implemented differently on CentOS 5, 6 and 7. centos ...

Posted on Wed, 19 Feb 2020 18:49:29 -0800 by arkismad

# IT Stars Are Not Dreams # Illustrate the Implementation Principle of kubernetes Resource QOS Mechanism

QOS is a resource protection mechanism in k8s. It is mainly a control technology for incompressible resources such as memory, such as by constructing OOM scores for different Pods and containers in memory, and assisted by the kernel's policy, so that when the node has insufficient memory resources, the kernel can kill which priority is lower a ...

Posted on Wed, 19 Feb 2020 09:20:36 -0800 by Lord Brar

SOAPUI SOAP stress test

Purpose: To implement stress testing for the specified Soap protocol Environment: SoapUI Pro 5.1.2 + Linux + simple-4.1.21.jar (Achieve Soap Protocol Receive, Process and Response) + wsdl The simple-4.1.21 framework is available at: Click to open the link Process: 1) Install SoapUI Pro 5.1.2, Deploy Processing Soap Protocol Pro ...

Posted on Wed, 19 Feb 2020 08:06:55 -0800 by AP81

Getting started with golang [5.2] - how the go language works - memory overview

Preceding text golang quick start [2.1]-go language development environment configuration windows golang quick start [2.2]-go language development environment configuration - macOS golang quick start [2.3]-go language development environment configuration linux Get started with golang [3]-go language helloworld How to compile golang into mach ...

Posted on Wed, 19 Feb 2020 02:02:32 -0800 by keiran420