Comprehensive In-Depth Analysis of Linux TLB Management Mechanism: From Principles to Practice

Comprehensive In-Depth Analysis of Linux TLB Management Mechanism: From Principles to Practice

Comprehensive In-Depth Analysis of Linux TLB Management Mechanism: From Principles to Practice 1 TLB Basic Concepts and Background Introduction 1.1 What is TLB and Its Importance in Memory Management Translation Lookaside Buffer (TLB) is a specialized cache in the Memory Management Unit (MMU) used to accelerate the translation process from virtual addresses to physical addresses. … Read more

Introduction to Memory Management in Armv8/Armv9

Introduction to Memory Management in Armv8/Armv9

Click the blue "Arm Selection" in the upper left corner and choose "Set as Star" 1 Overview This article introduces memory translation in Armv8-A, which is key to memory management. It explains how virtual addresses are converted to physical addresses, the format of translation tables, and how software manages Translation Lookaside Buffers (TLB). This is … Read more

28 Questions About Learning Armv8/Armv9 MMU

28 Questions About Learning Armv8/Armv9 MMU

01. How many MMUs are there in a large system? 02. How many Translation regimes are there in an ARM Core? 03. What are the differences among EL1&0 Translation regime Stage 2, EL2 Translation regime Stage 1, and EL2&0 Translation regime Stage 1? 04. What is special about the TTBR1EL2 register, and who uses this … Read more

Multi-Size THP Creation: Two Different Approaches

Multi-Size THP Creation: Two Different Approaches

February 13, 2025 The primary benefit from subscribing to LWN is helping to keep us publishing, but, beyond that, subscribers get immediate access to all site content and access to a number of extra site features. Please sign up today! The primary benefit from subscribing to LWN is helping us maintain our publishing, but beyond … Read more

Linux Memory Management: Huge Pages

Linux Memory Management: Huge Pages

1. IntroductionRecently, a group member in our WeChat group encountered a problem: on an ARMv8 architecture CPU, after the Linux system starts, when dynamically enabling 1G huge pages, the maximum contiguous memory allocated is only 32M.This has caused confusion among everyone, and with this issue in mind, today we will discuss huge pages.2. What are … Read more