In-Depth Analysis of the Core Mechanism and Engineering Practice of Linux mmap

In-Depth Analysis of the Core Mechanism and Engineering Practice of Linux mmap

In the collaborative design between the file system and the kernel, mmap is a core mechanism that combines elegance and complexity. It is far more than just “mapping files to memory”; it involves the intricate cooperation of virtual memory, file systems, page cache, and even hardware MMU. Today, we will penetrate the abstraction, delve into … Read more

What Are the Memory Performance Metrics of the Linux Operating System?

What Are the Memory Performance Metrics of the Linux Operating System?

During an interview for a testing position, the interviewer asked which memory performance metrics to focus on in the Linux operating system for performance testing. Answer: 1. 1. total – Total physical memory 2. used – Used physical memory 3. free – Free memory 4. buffer/cache – Buffer and cache memory Buffer is a cache … Read more

A Quick Guide to Page Faults in Modern SoC Architectures

A Quick Guide to Page Faults in Modern SoC Architectures

This series is a quick reference booklet on the core areas of knowledge in modern SoC architecture. Chapter 5Page Faults(Page Faults) Section 1Types of Page Faults Section 2Interrupt Service Routines Section 3Interrupt and Exception Handlers Section 4What is the Role of Page Fault Handlers? Chapter 5Page Faults(Page Faults) When the MMU detects an attempt to … Read more

Linux Memory Management

Linux Memory Management

(Click the public account above to quickly follow) Source:WsztRush Link: http://wsztrush.github.io/%E7%BC%96%E7%A8%8B%E6%8A%80%E6%9C%AF/2015/05/13/Linux-Memory.html Most servers today run on Linux, so as a programmer, it is necessary to have a basic understanding of how the system operates. Regarding memory, you need to know: Address Mapping Memory Management Methods Page Faults First, let’s look at some basic knowledge. From … Read more