[linux] allocate physical memory page of linux memory management

linux allocate physical memory page 1, Physical memory allocation overview In the linux kernel, the page allocator can allocate one or more consecutive physical pages. The number of allocated pages can only be an integer power of 2; Allocating continuous physical pages is more beneficial to alleviate the memory fragmentation of the system ...

Added by PandaFi on Mon, 28 Feb 2022 15:38:16 +0200

linux virtual file system source code analysis (detailed explanation)

preface Virtual file system is a huge architecture. If you want to analyze everything, it will be particularly complex and clumsy. If you look at it, you won't know what to say (of course, it's mainly the author's food). Therefore, this blog tries to analyze the operation mechanism of VFS file system with the open() function as the startin ...

Added by Patch^ on Mon, 28 Feb 2022 15:02:08 +0200

Hadoop environment configuration (Linux virtual machine)

Hadoop environment configuration (Linux virtual machine) This semester, I chose the course of big data management and analysis, which mainly uses Hadoop framework for data analysis and application development. First, I will configure the environment be careful It's better to put JDK and Hadoop under / usr/local When adding environment ...

Added by stargate03 on Mon, 28 Feb 2022 13:06:21 +0200

Text 3: swordsman and find

Text 3: swordsman and find wildcard Match file name *: Match 0 or more characters ?: Match any character [list]: matching list Any single character in [c1-c2]: matching c1-c2 Any single character in [^c1-c2]/[!c1-c2]: Mismatch c1-c2 Any character in {string1,string2,...}: matching{}Any single string in find file lookup Complete the file s ...

Added by KaFF on Mon, 28 Feb 2022 06:16:57 +0200

Tips for using Linux operating system

The virtual machine only installs ssh and can only connect to other servers. After installing openssh server, you can use ssh to connect to other terminalsRemote file transferCopy from local to remotescp local_file remote_username@remote_ip:remote_folder perhaps scp local_file remote_username@remote_ip:remote_file perhaps scp local_file rem ...

Added by wowiz on Mon, 28 Feb 2022 04:47:39 +0200

Software Test-Linux Build Test Environment

1. Database yum -y install mysql mysql-server mysql-devel MySQL (client), MySQL-server (server), mysql-devel (library) Start MySQL:service mysql start Confirm installation success: mysql-u root-p View the database: show databases; Use the database: use mysql; Query from the user table for all users that can log in and the host that suppo ...

Added by raguskra on Sun, 27 Feb 2022 20:53:30 +0200

Embedded Linux Development - Introduction to common commands of uboot (Part 2)

1. Preface This article is the second part of the introduction of UBOOT command, and then the last article introduces the usage of the remaining commands. The main commands involved are: disk partition, disk file loading, kernel boot, binary file loading, jump command, disk file system format, etc. 2. UBOOT command 2.1 fatls – lists ...

Added by gvp16 on Sun, 27 Feb 2022 18:39:39 +0200

linux Basics

1. Signal Signals are software interrupts that provide a way to handle asynchronous events The simplest interface of unix signaling mechanism is the signal function /* * sign Signal integer * func Function pointer * return : Function pointer (a function address, function has an integer parameter, no return value) */ void (* signal(int ...

Added by egorig on Sun, 27 Feb 2022 15:38:00 +0200

Linux - directory structure

Reprint and: Linux system directory structure | rookie tutorial The file directory structure is a tree structure starting from '/'! FHS (File System Hierarchy Standard); 1, Four interactive forms of directory Shareable, which can be shared to the directory used by other systems;unshared, device files running on your own mac ...

Added by sportryd on Sun, 27 Feb 2022 15:17:14 +0200

KVM virtual machine image operation, capacity expansion and compression

KVM mirror operation QEMU img command Create mirror qemu-img create # Create an image with a device space of 10G qemu-img create -f qcow2 centos7-guest.qcow2 10G # Based on backing_file creates an image with a size of 20G. Use the - b parameter and - F to specify backing_file format qemu-img create -F qcow2 -b /path/to/backing-kvm.img -f qco ...

Added by maskme on Sat, 26 Feb 2022 17:59:38 +0200