Tagged articles

Memory Management

1009 articles · Page 5 of 11
DeWu Technology
DeWu Technology
Feb 5, 2024 · Fundamentals

Understanding Dart VM Garbage Collection and Memory Management

The article explains Dart VM’s generational garbage collection, detailing object allocation, the young‑generation Scavenge copying collector, old‑generation Mark‑Sweep and Mark‑Compact algorithms, safepoints, write‑barrier mechanics, debugging a write‑protect crash, and the importance of logging for memory‑management analysis.

DARTGC AlgorithmsGarbage Collection
0 likes · 33 min read
Understanding Dart VM Garbage Collection and Memory Management
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Feb 2, 2024 · Fundamentals

Linux Shared Memory (shmem) Deep Dive: Architecture, Implementation, and Practice

Linux’s shmem subsystem provides hybrid anonymous/file‑backed pages that enable diverse shared‑memory scenarios—parent‑child communication, IPC, tmpfs, Android ashmem, and memfd—by using APIs such as shmem_file_setup, handling page faults through cache and swap mechanisms, and employing a specialized reclamation process to manage memory efficiently.

Linux kernelMemory ManagementVirtual Memory
0 likes · 10 min read
Linux Shared Memory (shmem) Deep Dive: Architecture, Implementation, and Practice
DataFunSummit
DataFunSummit
Jan 22, 2024 · Artificial Intelligence

Improving Efficiency of Large‑Scale AI Model Training, Fine‑tuning, and Deployment with Colossal‑AI

This article introduces Colossal‑AI, an open‑source platform that tackles the challenges of training, fine‑tuning, and deploying massive AI models by leveraging efficient memory management, N‑dimensional parallelism, and high‑performance inference to dramatically reduce cost and improve scalability across thousands of GPUs.

AI InfrastructureColossal-AIMemory Management
0 likes · 21 min read
Improving Efficiency of Large‑Scale AI Model Training, Fine‑tuning, and Deployment with Colossal‑AI
Java Tech Enthusiast
Java Tech Enthusiast
Jan 4, 2024 · Databases

Redis Simple Dynamic String (SDS) Implementation Overview

Redis implements its own Simple Dynamic String (SDS) instead of plain C strings because SDS stores length for O(1) queries, pre‑allocates extra space and lazily reuses freed bytes, prevents buffer overflows, handles binary data, and uniformly backs all string keys, values and container elements.

C languageDatabaseMemory Management
0 likes · 8 min read
Redis Simple Dynamic String (SDS) Implementation Overview
Test Development Learning Exchange
Test Development Learning Exchange
Jan 1, 2024 · Fundamentals

Handling Circular References and Memory Leaks in Python with weakref and gc Modules

This article explains how circular references cause memory leaks in Python, describes the role of reference counting and the cyclic garbage collector, and provides practical examples using the weakref and gc modules to create weak references, detect, and manually manage cyclic garbage.

Circular ReferencesGarbage CollectionMemory Management
0 likes · 6 min read
Handling Circular References and Memory Leaks in Python with weakref and gc Modules
Code Ape Tech Column
Code Ape Tech Column
Dec 31, 2023 · Backend Development

How to Set JVM Parameters for a Platform Handling 1 Million Daily Logins on an 8 GB Server

This article explains how to estimate capacity, choose appropriate garbage collectors, and configure JVM memory settings—including heap size, young generation, thread stack, and GC options—for a service that processes one million login requests per day on a node with 8 GB of RAM, providing step‑by‑step guidance and example command lines.

GC TuningJVMJava
0 likes · 25 min read
How to Set JVM Parameters for a Platform Handling 1 Million Daily Logins on an 8 GB Server
Bilibili Tech
Bilibili Tech
Dec 29, 2023 · Artificial Intelligence

Performance Optimization of Bilibili's Online Inference Service for the Effect Advertising Engine

To cope with soaring traffic on Bilibili’s effect‑advertising engine, the team systematically measured latency, eliminated redundant Redis calls, switched JSON to Protobuf, applied branch‑prediction hints, loop‑unrolling and AVX256 SIMD, introduced object‑pooling and an inverted‑index request format, cutting CPU usage by 21 % and boosting peak throughput 13 %.

C#CPUMemory Management
0 likes · 21 min read
Performance Optimization of Bilibili's Online Inference Service for the Effect Advertising Engine
Liangxu Linux
Liangxu Linux
Dec 25, 2023 · Fundamentals

7 Proven Techniques to Boost Embedded System Reliability

This article presents seven practical, long‑term strategies—such as ROM filling, CRC checks, RAM validation, stack monitoring, MPU usage, robust watchdog design, and avoiding volatile memory allocation—to help embedded engineers build more reliable firmware and catch abnormal behavior early.

FirmwareMPUMemory Management
0 likes · 9 min read
7 Proven Techniques to Boost Embedded System Reliability
php Courses
php Courses
Dec 20, 2023 · Backend Development

File Caching and Memory Management in PHP Development

This article explains how to implement file caching and effective memory management in PHP, providing step‑by‑step instructions and code examples for creating cache directories, generating cache filenames, checking and clearing caches, and releasing variables and objects to prevent memory leaks.

Code examplesMemory ManagementPerformance
0 likes · 5 min read
File Caching and Memory Management in PHP Development
MaGe Linux Operations
MaGe Linux Operations
Dec 17, 2023 · Fundamentals

How Linux Kernel Manages Dynamic Memory and Process Address Space

This article explains how the Linux kernel allocates dynamic memory, distinguishes kernel and user‑space allocation strategies, describes the mm_struct layout of a process address space, and shows how pages and page tables translate virtual addresses to physical memory.

LinuxMemory ManagementVirtual Memory
0 likes · 10 min read
How Linux Kernel Manages Dynamic Memory and Process Address Space
Test Development Learning Exchange
Test Development Learning Exchange
Dec 12, 2023 · Fundamentals

Python Memory Management and Optimization Techniques

Python automatically manages memory through garbage collection, and this article explains how the garbage collector works and presents ten practical techniques—including manual gc calls, generators, sys.getsizeof, slice copying, del statements, sys.intern, NumPy, pandas, reference counting, and __slots__—to reduce memory usage and improve performance.

Garbage CollectionMemory ManagementOptimization
0 likes · 5 min read
Python Memory Management and Optimization Techniques
DevOps Cloud Academy
DevOps Cloud Academy
Dec 11, 2023 · Operations

Managing Java Process Memory in Kubernetes Pods to Prevent OOMKilled

This article explains why Java processes in Kubernetes pods often encounter OOMKilled despite correct JVM heap settings, analyzes the discrepancy between JVM‑reported memory and container metrics, and provides practical steps such as adjusting MaxRAMPercentage and pod memory limits to stabilize memory usage.

JVMJavaKubernetes
0 likes · 9 min read
Managing Java Process Memory in Kubernetes Pods to Prevent OOMKilled
Deepin Linux
Deepin Linux
Dec 1, 2023 · Fundamentals

65 Essential Embedded System Interview Questions and Answers

This comprehensive guide presents 65 common embedded‑system interview questions covering topics such as memory layout, stack vs. heap, static and volatile keywords, pointers and references, malloc usage, C vs. C++ differences, compilation stages, process and thread concepts, IPC mechanisms, and networking fundamentals, providing concise explanations and code examples for each.

C ProgrammingMemory Managementembedded systems
0 likes · 64 min read
65 Essential Embedded System Interview Questions and Answers
Architect
Architect
Nov 19, 2023 · Artificial Intelligence

Why AutoGPT Abandoned Vector Databases – A Deep Dive into Simpler Memory Strategies

The article examines AutoGPT's shift away from vector databases, detailing the original vision of using embeddings for long‑term memory, the performance calculations that exposed unnecessary complexity, the adoption of JSON‑based storage, and the emerging trend of specialized multi‑agent architectures.

AI agentsArtificial IntelligenceAutoGPT
0 likes · 9 min read
Why AutoGPT Abandoned Vector Databases – A Deep Dive into Simpler Memory Strategies
Open Source Linux
Open Source Linux
Nov 17, 2023 · Databases

How Large Linux Pages Boost Database Performance on Kubernetes

This article explains how using larger Linux page sizes—especially 2 MB hugepages—dramatically improves database throughput on Kubernetes nodes by reducing TLB cache misses, and provides practical guidance on configuring hugepages, disabling transparent hugepages, and sizing resources for optimal performance.

Database PerformanceHugePagesKubernetes
0 likes · 13 min read
How Large Linux Pages Boost Database Performance on Kubernetes
FunTester
FunTester
Oct 30, 2023 · Backend Development

How to Build a High‑Performance Object Pool for Multithreaded Systems

This article explores the motivation, design, implementation, and performance testing of a high‑performance object pool that reduces allocation overhead in multithreaded environments by using thread‑local storage, freelists, and lock‑optimized global resources.

C#Memory ManagementObject Pool
0 likes · 25 min read
How to Build a High‑Performance Object Pool for Multithreaded Systems
Sohu Tech Products
Sohu Tech Products
Oct 25, 2023 · Backend Development

Deep Analysis of Netty FastThreadLocal: From Production Issue to Source Code Implementation

The article traces a production bug where unreleased JDK ThreadLocal data corrupted user info, then compares JDK ThreadLocal with Netty’s FastThreadLocal, detailing their source‑code implementations, performance trade‑offs (O(n) vs O(1) access), memory‑leak risks, and recommends explicit remove() calls to avoid leaks.

Backend DevelopmentFastThreadLocalJava
0 likes · 15 min read
Deep Analysis of Netty FastThreadLocal: From Production Issue to Source Code Implementation
dbaplus Community
dbaplus Community
Oct 22, 2023 · Databases

How Redis Implements Lazy Deletion and When Expired Keys Stay Undeleted

This article explains Redis's two expiration mechanisms—lazy (access‑time) and periodic deletion—then dives into the source code of lookupKey, expireIfNeeded, deleteExpiredKeyAndPropagate, and the underlying delete functions, highlighting the differences between synchronous and asynchronous deletion, the conditions that prevent deletion of expired keys, and practical recommendations for configuring lazyfree.

Memory Managementasynchronous deletedbGenericDelete
0 likes · 16 min read
How Redis Implements Lazy Deletion and When Expired Keys Stay Undeleted
Volcano Engine Developer Services
Volcano Engine Developer Services
Oct 12, 2023 · Cloud Native

How ByteDance’s Katalyst Memory Advisor Boosts Kubernetes Memory Efficiency

This article explains the challenges of memory management in mixed workloads, outlines the limitations of native Linux and Kubernetes mechanisms, and details how ByteDance’s open‑source Katalyst Memory Advisor improves memory utilization, QoS, and eviction handling through user‑space policies, multi‑dimensional interference detection, and adaptive mitigation actions.

KatalystKubernetesMemory Management
0 likes · 17 min read
How ByteDance’s Katalyst Memory Advisor Boosts Kubernetes Memory Efficiency
ByteDance Cloud Native
ByteDance Cloud Native
Oct 11, 2023 · Cloud Native

How Katalyst Memory Advisor Optimizes Kubernetes Memory Management in Mixed Workloads

This article explains the challenges of memory management in mixed Kubernetes workloads, introduces ByteDance's open‑source Katalyst Memory Advisor, details native allocation and reclamation mechanisms, outlines its architecture and plugins, and describes interference detection and multi‑level mitigation strategies to improve memory utilization and service quality.

Cloud NativeKatalystKubernetes
0 likes · 19 min read
How Katalyst Memory Advisor Optimizes Kubernetes Memory Management in Mixed Workloads
Java Captain
Java Captain
Oct 7, 2023 · Fundamentals

Understanding the JVM Memory Model, Garbage Collection, and Memory Management Strategies

This article explains the Java Virtual Machine's memory architecture—including heap, method area, stack, program counter, and non‑heap memory—details common garbage‑collection algorithms such as mark‑sweep, copying, mark‑compact, and generational, and outlines Java's memory‑management practices like object lifecycle, memory partitioning, references, and synchronization.

Garbage CollectionJVMJava
0 likes · 6 min read
Understanding the JVM Memory Model, Garbage Collection, and Memory Management Strategies
21CTO
21CTO
Oct 5, 2023 · Fundamentals

What’s Coming in Python 3.12? Inside the Faster CPython Roadmap

The article outlines the major performance and architectural goals for Python 3.12, describing the Faster CPython project’s specialized opcodes, multithreading proposals, object size reductions, memory‑management improvements, and API stability efforts that aim to boost speed and maintainability.

CPythonMemory ManagementPEP
0 likes · 8 min read
What’s Coming in Python 3.12? Inside the Faster CPython Roadmap
政采云技术
政采云技术
Sep 27, 2023 · Databases

Understanding Redis Data Types and Their Internal Memory Implementations

This article explains Redis’s five core data object types—strings, lists, hashes, sets, and sorted sets—detailing their encoding schemes, underlying memory structures such as SDS, ziplist, linkedlist, hashtable, and skiplist, and how Redis optimizes storage and access performance.

Data StructuresKey-Value StoreMemory Management
0 likes · 13 min read
Understanding Redis Data Types and Their Internal Memory Implementations
Architect's Tech Stack
Architect's Tech Stack
Sep 16, 2023 · Fundamentals

Understanding Java Object Creation, JVM Memory, and Class Loading

This article explains how Java objects are created using the new operator, details the JVM memory model (stack and heap), describes the generation and loading of .class files by the ClassLoader, compares Class.newInstance() with new, and outlines the initialization steps and key concepts developers must master.

JVMJavaMemory Management
0 likes · 11 min read
Understanding Java Object Creation, JVM Memory, and Class Loading
政采云技术
政采云技术
Sep 7, 2023 · Backend Development

Understanding Netty's Memory Management and Allocation Strategies

This article explains how Netty implements memory management by borrowing concepts from Jemalloc and Tcmalloc, detailing the hierarchy of arenas, chunks, pages and sub‑pages, the allocation algorithms for both large and small buffers, and the role of thread‑local caches in reducing fragmentation and improving performance.

Backend DevelopmentJavaMemory Management
0 likes · 24 min read
Understanding Netty's Memory Management and Allocation Strategies
Efficient Ops
Efficient Ops
Sep 5, 2023 · Operations

Master Linux Performance: Boost Throughput, Cut Latency, and Optimize CPU & Memory

This guide explains how high concurrency and fast response depend on throughput and latency, defines key performance metrics, shows how to interpret average load, CPU context switches, and memory usage, and provides practical Linux tools and command‑line examples for diagnosing and tuning system performance.

CPU optimizationLinux performanceMemory Management
0 likes · 44 min read
Master Linux Performance: Boost Throughput, Cut Latency, and Optimize CPU & Memory
JD Tech
JD Tech
Aug 31, 2023 · Fundamentals

Understanding JVM Runtime Memory Layout, Garbage Collection Roots, and Algorithms

This article provides a comprehensive overview of the Java Virtual Machine's runtime memory areas, object layout, garbage collection roots, marking algorithms, generational hypotheses, remembered sets, and the main GC algorithms such as Mark‑Sweep, Mark‑Copy, and Mark‑Compact, explaining their principles and trade‑offs.

Garbage CollectionGenerational GCJVM
0 likes · 16 min read
Understanding JVM Runtime Memory Layout, Garbage Collection Roots, and Algorithms
MaGe Linux Operations
MaGe Linux Operations
Aug 30, 2023 · Fundamentals

How Linux Translates Virtual Addresses into Physical Memory

This article explains Linux's memory management, detailing how physical memory is organized into pages, zones, and nodes, how virtual addresses are structured for user and kernel space, and how page tables, the buddy system, SLUB, and TLB work together to map virtual addresses to physical memory.

LinuxMemory ManagementOS fundamentals
0 likes · 12 min read
How Linux Translates Virtual Addresses into Physical Memory
Top Architect
Top Architect
Aug 22, 2023 · Backend Development

31 Essential Java Performance Optimization Tips for Backend Development

This article presents a comprehensive list of thirty‑one practical Java performance optimization techniques—including proper use of singletons, avoiding static variables, minimizing object creation, leveraging final modifiers, choosing appropriate collections, and efficient exception handling—to help backend developers write faster, more memory‑efficient code.

JavaMemory ManagementPerformance
0 likes · 18 min read
31 Essential Java Performance Optimization Tips for Backend Development
DeWu Technology
DeWu Technology
Aug 21, 2023 · Backend Development

Design and Implementation of DGraph: A High‑Performance Recommendation Engine

DGraph, a C++ recommendation engine launched in 2022 for 得物, combines an index layer with a service layer, uses lock‑free RCU structures, a custom mmap‑based D‑Allocator, RoaringBitmap invert indexes, and a multi‑operator fusion scheduler to achieve high‑performance, eventually consistent, scalable recommendations.

C#IndexingMemory Management
0 likes · 12 min read
Design and Implementation of DGraph: A High‑Performance Recommendation Engine
Selected Java Interview Questions
Selected Java Interview Questions
Aug 13, 2023 · Databases

Impact of Linux Page Size on Database Performance and Kubernetes Node Optimization

This article examines how Linux page size, especially the use of huge pages (2 MB and 1 GB), influences database throughput by reducing TLB misses, presents benchmark results, and offers practical guidance for configuring Kubernetes nodes to leverage large pages for optimal database performance.

Database PerformanceHuge PagesMemory Management
0 likes · 13 min read
Impact of Linux Page Size on Database Performance and Kubernetes Node Optimization
Tencent Database Technology
Tencent Database Technology
Aug 10, 2023 · Databases

Optimizing Buffer Pool Memory Management in TDSQL-C Serverless

This article explains the architecture of TDSQL-C Serverless buffer pool, details how InnoDB buffer pool resize works, analyzes performance bottlenecks such as IO and mutex contention, and presents optimization techniques like chunk pre‑allocation, delayed release, and hash‑resize improvements that make serverless scaling more stable.

Buffer PoolDatabaseMemory Management
0 likes · 11 min read
Optimizing Buffer Pool Memory Management in TDSQL-C Serverless
Top Architect
Top Architect
Aug 10, 2023 · Fundamentals

Understanding Automatic Garbage Collection and Generational GC in Java

This article explains the concept of automatic garbage collection in Java, detailing the mark‑sweep‑compact process, the need for generational collection, and how objects move through Eden, Survivor, and Old generations, while also noting promotional links for further resources.

Garbage CollectionGenerational GCJVM
0 likes · 8 min read
Understanding Automatic Garbage Collection and Generational GC in Java
Selected Java Interview Questions
Selected Java Interview Questions
Aug 8, 2023 · Big Data

Processing 10GB Age Data on a 4GB Memory Machine Using Java: Single‑Threaded and Multi‑Threaded Solutions

This article demonstrates how to generate, read, and analyze a 10 GB file of age statistics on a 4 GB RAM, 2‑core machine using Java, comparing a single‑threaded counting method with a producer‑consumer multi‑threaded approach that dramatically improves CPU utilization and reduces processing time.

Big DataJavaMemory Management
0 likes · 11 min read
Processing 10GB Age Data on a 4GB Memory Machine Using Java: Single‑Threaded and Multi‑Threaded Solutions
Test Development Learning Exchange
Test Development Learning Exchange
Aug 6, 2023 · Fundamentals

Practical Python Garbage Collection and Memory Analysis: 10 Useful Code Examples

This article presents ten practical Python code examples demonstrating various garbage collection mechanisms and memory‑analysis tools, including reference counting, cyclic references, object inspection, tracemalloc, memory_profiler, pympler, and objgraph, to help developers understand and optimize memory usage.

Garbage CollectionMemory ManagementPython
0 likes · 4 min read
Practical Python Garbage Collection and Memory Analysis: 10 Useful Code Examples
Senior Tony
Senior Tony
Jul 23, 2023 · Backend Development

Master JVM Tuning: Balancing Pause Time, Throughput, and Memory Usage

This article explains the core trade‑offs of JVM tuning—short pause times versus high throughput—provides quantitative goals, outlines when tuning is needed, details step‑by‑step optimization procedures, and lists common GC strategies and command‑line parameters for effective Java performance tuning.

Garbage CollectionJVMJava
0 likes · 12 min read
Master JVM Tuning: Balancing Pause Time, Throughput, and Memory Usage
Deepin Linux
Deepin Linux
Jul 22, 2023 · Fundamentals

DPDK Memory Management: Architecture, Hugepage Initialization, and Allocation Mechanisms

This article explains DPDK's memory management architecture, covering the hierarchical memory layout, hugepage discovery and mapping, shared configuration structures, NUMA‑aware allocation, custom malloc‑heap implementation, memzone and mempool creation, and the mbuf buffer model, with detailed code examples.

HugePagesMemory Managementmalloc heap
0 likes · 41 min read
DPDK Memory Management: Architecture, Hugepage Initialization, and Allocation Mechanisms
Architect
Architect
Jul 21, 2023 · Fundamentals

JVM Basics, Class Loading, Runtime Data Areas, Garbage Collection and Tuning Guide

This article provides a concise yet comprehensive overview of the Java Virtual Machine, covering its core components, how Java source files are compiled and executed, class‑loader mechanisms, runtime memory areas, garbage‑collection algorithms, and practical JVM tuning parameters for optimal performance.

Garbage CollectionJVMJava
0 likes · 31 min read
JVM Basics, Class Loading, Runtime Data Areas, Garbage Collection and Tuning Guide
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 20, 2023 · Databases

Understanding the Dynamic Freeze Threshold in OceanBase: Source Code Analysis and Debugging

This article investigates why OceanBase's memory freeze threshold changes during load testing by analyzing monitoring data, inspecting the relevant source code, and demonstrating debugging steps, ultimately revealing that the threshold is computed dynamically based on real‑time memory usage and can be lowered when other memory modules consume space.

DatabaseFreeze ThresholdMemory Management
0 likes · 18 min read
Understanding the Dynamic Freeze Threshold in OceanBase: Source Code Analysis and Debugging
Bin's Tech Cabin
Bin's Tech Cabin
Jul 20, 2023 · Fundamentals

How Linux Maps Virtual Memory to Physical Memory: Inside Page Tables

This article walks through the Linux kernel's memory‑management subsystem, explaining how virtual memory is linked to physical memory via page tables, covering single‑level, two‑level and multi‑level paging, the structure of page‑table entries, the role of the MMU and TLB, and the complete CPU address‑translation process.

LinuxMemory ManagementVirtual Memory
0 likes · 67 min read
How Linux Maps Virtual Memory to Physical Memory: Inside Page Tables
Top Architect
Top Architect
Jul 18, 2023 · Cloud Native

Java Containerization Guide: Base Image Selection, JDK/JRE Choice, JVM Options, Signal Handling, Memory Limits, DNS Caching, and Native Compilation

This comprehensive guide explains how to containerize Java applications by choosing appropriate base images, deciding between JDK and JRE, selecting a JVM, handling graceful shutdown signals, configuring memory limits, managing DNS caching, and optionally compiling to native binaries with GraalVM.

DockerJVMJava
0 likes · 23 min read
Java Containerization Guide: Base Image Selection, JDK/JRE Choice, JVM Options, Signal Handling, Memory Limits, DNS Caching, and Native Compilation
Open Source Linux
Open Source Linux
Jul 17, 2023 · Backend Development

Unlocking Linux Memory: From Address Spaces to Allocation Algorithms

This comprehensive guide explores Linux memory fundamentals, address space layout, fragmentation, the buddy and slab allocation algorithms, kernel and user‑space memory usage scenarios, and common pitfalls, providing backend developers with practical insights to improve performance and stability.

Allocation AlgorithmsDMALinux
0 likes · 20 min read
Unlocking Linux Memory: From Address Spaces to Allocation Algorithms
vivo Internet Technology
vivo Internet Technology
Jul 5, 2023 · Databases

Implementation of Redis LRU and LFU Cache Eviction Algorithms

Redis implements approximate LRU and LFU eviction policies by sampling keys and using a compact 24‑bit field to store timestamps and counters, where LRU evicts the least recently accessed items and LFU evicts those with low, decay‑adjusted access frequency, each with trade‑offs for different workloads.

Cache EvictionLFULRU
0 likes · 13 min read
Implementation of Redis LRU and LFU Cache Eviction Algorithms
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jun 30, 2023 · Fundamentals

Understanding Linux Kernel Folio: From Page to Folio and Its Design Rationale

Linux kernel introduced the struct folio abstraction to replace ad‑hoc compound‑page tricks, giving a clear collection‑oriented representation for power‑of‑two page groups such as THP and HugeTLB, and providing dedicated APIs that eliminate naming confusion, unify reference handling, and make memory‑management code safer and easier to understand.

Linux kernelMemory Managementcompound page
0 likes · 15 min read
Understanding Linux Kernel Folio: From Page to Folio and Its Design Rationale
Open Source Linux
Open Source Linux
Jun 29, 2023 · Fundamentals

Master Linux Memory Management: From Physical to Virtual Memory Explained

This comprehensive guide covers Linux memory management fundamentals, detailing physical and virtual memory concepts, allocation and release mechanisms, key kernel functions, code examples, process switching, performance tuning, leak detection, fragmentation mitigation, and real‑world applications across system, driver, and optimization layers.

LinuxMemory ManagementPhysical Memory
0 likes · 38 min read
Master Linux Memory Management: From Physical to Virtual Memory Explained
Open Source Linux
Open Source Linux
Jun 26, 2023 · Fundamentals

How Linux Organizes Memory: From Physical Pages to Virtual Address Mapping

This article explains how Linux manages memory by organizing physical pages, using zones and nodes, allocating memory with the buddy system and SLUB, structuring user and kernel virtual address spaces, and translating virtual addresses to physical ones via page tables, TLBs, and dynamic mapping.

LinuxMemory ManagementPage Table
0 likes · 13 min read
How Linux Organizes Memory: From Physical Pages to Virtual Address Mapping
Python Programming Learning Circle
Python Programming Learning Circle
Jun 20, 2023 · Fundamentals

The Shannon Plan: Faster CPython Initiatives for Python 3.13

The article outlines the Shannon Plan, a multi‑year effort led by CPython core developers to accelerate Python by introducing a Tier 2 optimizer, enabling sub‑interpreters via PEP 554, and improving memory management, with the ultimate goal of making Python five times faster by version 3.13.

Memory ManagementPEP 554faster-cpython
0 likes · 4 min read
The Shannon Plan: Faster CPython Initiatives for Python 3.13
FunTester
FunTester
Jun 9, 2023 · Fundamentals

Comparison of Java and Go Garbage Collection Mechanisms

This article compares the memory management and garbage collection architectures of Java and Go, detailing their heap and stack regions, GC trigger conditions, collection algorithms, fragmentation handling, root object selection, and write‑barrier strategies, and includes illustrative code examples.

Garbage CollectionJavaMemory Management
0 likes · 13 min read
Comparison of Java and Go Garbage Collection Mechanisms
21CTO
21CTO
Jun 2, 2023 · Artificial Intelligence

Why LangChain Is the Fast‑Growing Framework for LLM‑Powered Apps

LangChain, launched in 2022, quickly evolved from a Python library to a multi‑environment framework that helps developers build chat‑based applications, agents, and memory‑aware LLM solutions, while integrating with major cloud and AI tooling ecosystems.

AI agentsAuto-GPTChat applications
0 likes · 8 min read
Why LangChain Is the Fast‑Growing Framework for LLM‑Powered Apps
Open Source Linux
Open Source Linux
May 22, 2023 · Fundamentals

How Virtual Memory Works: From CPU Addressing to Linux Implementation

Virtual memory abstracts physical memory, giving each process a private, contiguous address space, and relies on CPU virtual addressing, MMU translation, page tables, TLB caching, multi-level paging, Linux’s memory mapping, dynamic allocation, and garbage collection to efficiently manage memory and protect processes.

LinuxMemory ManagementVirtual Memory
0 likes · 29 min read
How Virtual Memory Works: From CPU Addressing to Linux Implementation
Liangxu Linux
Liangxu Linux
May 16, 2023 · Fundamentals

How Virtual Memory Works: From CPU Addressing to Linux Implementation

This article explains the concepts and mechanisms of virtual memory, covering CPU virtual addressing, page tables, TLB caching, page faults, multi‑level page tables, Linux's memory‑mapping structures, and dynamic allocation strategies such as fragmentation and garbage collection.

LinuxMemory ManagementPaging
0 likes · 27 min read
How Virtual Memory Works: From CPU Addressing to Linux Implementation
JD Cloud Developers
JD Cloud Developers
May 10, 2023 · Fundamentals

Mastering Java Garbage Collectors: When to Choose Serial, Parallel, CMS, or G1

This article explores the evolution of Java garbage collectors—from the simple Serial and Parallel collectors to the concurrent CMS and region-based G1—detailing their algorithms, tuning parameters, strengths, weaknesses, and best‑practice recommendations for selecting the optimal collector based on workload and memory constraints.

Garbage CollectionJVMJava
0 likes · 14 min read
Mastering Java Garbage Collectors: When to Choose Serial, Parallel, CMS, or G1
ByteDance Web Infra
ByteDance Web Infra
May 9, 2023 · Fundamentals

WebAssembly Runtime Architecture: Loading, Parsing, Execution, Memory Management and GC

This article provides a comprehensive overview of the WebAssembly runtime, detailing its binary format, module loading and validation, execution engine designs, linear memory layout, garbage‑collection proposals, and the WebAssembly System Interface (WASI), while illustrating each concept with diagrams and code examples.

CompilationGarbage CollectionMemory Management
0 likes · 34 min read
WebAssembly Runtime Architecture: Loading, Parsing, Execution, Memory Management and GC
Tencent Music Tech Team
Tencent Music Tech Team
May 9, 2023 · Mobile Development

Optimizing Animated Image Loading on iOS: Practices and Performance Comparison

The article explains how iOS’s lack of native GIF/WebP support leads to crashes when decoding all frames, and describes an optimized per‑frame loading component (QMAnimatedImageView) that uses CADisplayLink, NSCache, downsampling and memory‑limit tuning to dramatically reduce CPU, memory usage and jank while preserving smooth animation.

Animated ImagesMemory ManagementPerformance Optimization
0 likes · 22 min read
Optimizing Animated Image Loading on iOS: Practices and Performance Comparison
ByteFE
ByteFE
May 8, 2023 · Fundamentals

Deep Dive into WebAssembly Runtime Architecture: Parsing, Execution, Memory Management, and WASI

This article provides a comprehensive technical analysis of the WebAssembly runtime architecture, detailing the module loading and parsing process, stack-based execution engines, linear memory management strategies, and the evolving garbage collection proposals, while also introducing the WebAssembly System Interface (WASI) for cross-platform system interactions.

Bytecode ExecutionGarbage CollectionMemory Management
0 likes · 32 min read
Deep Dive into WebAssembly Runtime Architecture: Parsing, Execution, Memory Management, and WASI
Bin's Tech Cabin
Bin's Tech Cabin
May 4, 2023 · Fundamentals

How Linux’s Slab Allocator Manages Memory: Deep Dive into Fast and Slow Paths

This article dissects the Linux kernel’s slab allocator, explaining its complete architecture, the fast‑path allocation from per‑CPU caches, the slow‑path mechanisms involving partial lists, NUMA node caches, and fallback to the buddy system, while detailing object initialization and freelist construction.

LinuxMemory Managementnuma
0 likes · 41 min read
How Linux’s Slab Allocator Manages Memory: Deep Dive into Fast and Slow Paths
JD Cloud Developers
JD Cloud Developers
Apr 27, 2023 · Fundamentals

Understanding JVM Runtime Memory and Garbage Collection: A Complete Guide

This article explains the JVM's runtime memory structure—including the method area, heap, stacks, and program counter—details object memory layout, garbage collection roots, marking algorithms, generational models, and various GC algorithms such as mark‑sweep, mark‑copy, and mark‑compact, providing a comprehensive overview.

GC AlgorithmsGarbage CollectionGenerational GC
0 likes · 16 min read
Understanding JVM Runtime Memory and Garbage Collection: A Complete Guide
Liangxu Linux
Liangxu Linux
Apr 19, 2023 · Fundamentals

Understanding Linux System Architecture: Kernel, Memory, Processes, and More

This article provides a comprehensive Q&A guide covering Linux system components, kernel subsystems, memory addressing, process concepts, scheduling algorithms, interrupt handling, system calls, synchronization mechanisms, file system structure, and device driver classifications, offering clear explanations for each topic.

LinuxMemory Management
0 likes · 16 min read
Understanding Linux System Architecture: Kernel, Memory, Processes, and More
Bin's Tech Cabin
Bin's Tech Cabin
Apr 11, 2023 · Fundamentals

How Linux Kernel Builds Slab Caches: A Deep Dive into kmem_cache Creation

This article walks through the Linux kernel's slab allocator, explaining how kmem_cache and kmem_cache_node structures are created, how slab objects are laid out in memory, how the required number of pages is calculated, and how the allocator is bootstrapped to avoid circular dependencies.

Linux kernelMemory Managementkernel development
0 likes · 64 min read
How Linux Kernel Builds Slab Caches: A Deep Dive into kmem_cache Creation
Python Programming Learning Circle
Python Programming Learning Circle
Apr 10, 2023 · Fundamentals

Common Python Design Questions and Explanations

This article explains why Python uses indentation for block grouping, how floating‑point arithmetic works, why strings are immutable, the purpose of the explicit self parameter, the absence of assignment in expressions, and many other design decisions that shape Python's syntax and runtime behavior.

Data StructuresFAQMemory Management
0 likes · 27 min read
Common Python Design Questions and Explanations
Laravel Tech Community
Laravel Tech Community
Apr 5, 2023 · Backend Development

PHP Performance Optimization: String Handling, Statements, Functions, Variables, Arrays and Architecture

This article presents a comprehensive set of PHP performance‑optimization techniques, covering efficient string operations, statement usage, function design, variable handling, array manipulation and architectural choices such as compression, static pages and caching, all illustrated with concrete code examples.

Coding PracticesMemory ManagementOptimization
0 likes · 14 min read
PHP Performance Optimization: String Handling, Statements, Functions, Variables, Arrays and Architecture
Selected Java Interview Questions
Selected Java Interview Questions
Mar 29, 2023 · Backend Development

JVM Parameter Tuning for a Platform Handling 1 Million Daily Login Requests on an 8 GB Node

This article presents a comprehensive, step‑by‑step guide on estimating capacity, selecting and configuring garbage collectors, sizing heap, young and survivor spaces, tuning thread stacks, and adding diagnostic options for a Java service that must handle one million login requests per day on a server with 8 GB of memory.

CMSGarbage CollectionJVM
0 likes · 26 min read
JVM Parameter Tuning for a Platform Handling 1 Million Daily Login Requests on an 8 GB Node
AI Cyberspace
AI Cyberspace
Mar 27, 2023 · Fundamentals

Understanding Linux Memory Allocation: Buddy, Slab, and Slub Explained

Linux’s memory allocation mechanisms—Buddy for main memory and Slab/Slub for CPU cache—aim to maximize memory utilization, minimize fragmentation, and boost allocation efficiency, with detailed explanations of their structures, operation steps, and how to inspect them via /proc interfaces.

LinuxMemory ManagementSLUB
0 likes · 9 min read
Understanding Linux Memory Allocation: Buddy, Slab, and Slub Explained
Java Backend Technology
Java Backend Technology
Mar 24, 2023 · Backend Development

Optimizing JVM Settings for 1M Daily Logins on an 8GB Server

This article walks through a step‑by‑step approach to sizing JVM heap, young generation, GC selection, and related parameters for a platform handling one million login requests per day on a node with 8 GB memory, providing practical formulas, example configurations, and tuning tips.

Garbage CollectionJVMJava
0 likes · 24 min read
Optimizing JVM Settings for 1M Daily Logins on an 8GB Server
AI Cyberspace
AI Cyberspace
Mar 24, 2023 · Fundamentals

Unlock Faster Linux Performance with Huge Pages: Why and How

This article explains Linux huge pages, their performance benefits, implementation details, configuration steps, and the impact on memory reporting, including guidance on using and disabling Transparent Huge Pages for optimal system tuning.

Huge PagesLinuxMemory Management
0 likes · 14 min read
Unlock Faster Linux Performance with Huge Pages: Why and How
58 Tech
58 Tech
Mar 21, 2023 · Mobile Development

Flutter Performance, Layout, and Memory Optimization Techniques

This article explains how to detect and resolve performance bottlenecks in Flutter apps by using compile modes, profiling tools, layout tree insights, widget build optimizations, const constructors, list view strategies, raster thread tuning, and memory‑saving practices such as oversized‑image detection and layer separation.

Memory ManagementMobile DevelopmentPerformance Optimization
0 likes · 14 min read
Flutter Performance, Layout, and Memory Optimization Techniques
Architect
Architect
Mar 18, 2023 · Backend Development

How to Configure JVM Parameters for a Platform Handling 1 Million Daily Login Requests on an 8 GB Server

This article explains a step‑by‑step methodology for estimating capacity, selecting appropriate garbage collectors, sizing JVM memory regions, and tuning advanced parameters such as survivor ratio, tenuring threshold, and Metaspace to reliably support a login service that processes one million requests per day on a machine with 8 GB of RAM.

Garbage CollectionJVMJava
0 likes · 25 min read
How to Configure JVM Parameters for a Platform Handling 1 Million Daily Login Requests on an 8 GB Server
JD Tech
JD Tech
Mar 16, 2023 · Fundamentals

A Comprehensive Overview of Java Garbage Collection Algorithms and ZGC

This article explains the fundamentals of Java garbage collection, detailing classic algorithms such as reference counting, reachability analysis, mark‑sweep, copying, mark‑compact, and generational collectors, then introduces modern collectors like Serial, Parallel, CMS, G1, and the low‑latency ZGC, highlighting their mechanisms, advantages, and drawbacks.

Garbage CollectionJVMMemory Management
0 likes · 27 min read
A Comprehensive Overview of Java Garbage Collection Algorithms and ZGC
Soul Technical Team
Soul Technical Team
Mar 14, 2023 · Mobile Development

Memory Optimization and Leak Detection in Flutter iOS Apps: Image Component, PlatformView, IOSurface and Tooling

This article analyzes the high memory consumption of Flutter's Image widget, PlatformView leaks, and IOSurface residues on iOS, then presents concrete solutions such as external texture rendering, empty‑page redraw, engine reset, and a custom Expando‑based memory‑leak detector built with Dart VM Service.

ExpandoFlutterMemory Management
0 likes · 21 min read
Memory Optimization and Leak Detection in Flutter iOS Apps: Image Component, PlatformView, IOSurface and Tooling
Top Architect
Top Architect
Mar 8, 2023 · Backend Development

JVM Parameter Tuning for a Service Handling 10 Million Daily Login Requests on an 8 GB Node

This article walks through a systematic approach to sizing and configuring JVM parameters—including heap, young generation, GC algorithm, Metaspace, and safety‑point settings—for a high‑traffic login service that receives one million requests per day on a server with 8 GB of memory, providing both practical code examples and interview‑style explanations.

Garbage CollectionJVMJava
0 likes · 25 min read
JVM Parameter Tuning for a Service Handling 10 Million Daily Login Requests on an 8 GB Node
Open Source Linux
Open Source Linux
Mar 7, 2023 · Fundamentals

How Virtual Memory Powers Modern Operating Systems: A Deep Dive

Virtual memory abstracts physical memory, providing each process with a private, contiguous address space, while the CPU, MMU, page tables, TLB, and paging mechanisms collaborate to translate virtual addresses, manage page faults, and optimize performance through locality, multi‑level tables, and memory‑mapped files.

Memory ManagementOperating SystemsPaging
0 likes · 31 min read
How Virtual Memory Powers Modern Operating Systems: A Deep Dive
Selected Java Interview Questions
Selected Java Interview Questions
Mar 5, 2023 · Backend Development

JVM Parameter Tuning for a Platform with 1 Million Daily Login Requests on an 8 GB Node

This article walks through a systematic approach to sizing and configuring JVM memory and garbage‑collector parameters for a service handling one million login requests per day on an 8 GB server, covering capacity planning, GC selection, heap region sizing, thread‑stack settings, dynamic age thresholds, large‑object handling, and diagnostic options such as heap dumps and GC logging.

Garbage CollectionJVMJava
0 likes · 23 min read
JVM Parameter Tuning for a Platform with 1 Million Daily Login Requests on an 8 GB Node
MaGe Linux Operations
MaGe Linux Operations
Mar 3, 2023 · Databases

How Redis Manages Memory Exhaustion: Expiration, Eviction, LRU & LFU

Redis uses key expiration commands, periodic scanning, and a combination of lazy and active deletion strategies, and when memory is full it applies one of eight eviction policies—including refined LRU and LFU algorithms with sampling and decay mechanisms—to decide which keys to discard.

Key ExpirationLFULRU
0 likes · 13 min read
How Redis Manages Memory Exhaustion: Expiration, Eviction, LRU & LFU
AI Cyberspace
AI Cyberspace
Feb 28, 2023 · Fundamentals

Mastering C Pointers: From Value Semantics to Advanced Pointer Types

This article explains C's value semantics versus reference semantics, introduces pointers as the bridge between them, details pointer definitions, types, operators, and common pitfalls such as null, dangling, and wild pointers, and demonstrates pointer arithmetic with clear code examples.

C#Memory ManagementProgramming Fundamentals
0 likes · 12 min read
Mastering C Pointers: From Value Semantics to Advanced Pointer Types
AI Cyberspace
AI Cyberspace
Feb 27, 2023 · Fundamentals

Master C Data Types: From Basics to Platform‑Specific Details

This article provides a comprehensive overview of C language data types, covering basic, derived, pointer, void, and derived types, their memory sizes, value ranges, signedness, platform‑dependent variations, and related keywords such as sizeof, size_t, and fixed‑width uintX_t types.

C#Data TypesMemory Management
0 likes · 11 min read
Master C Data Types: From Basics to Platform‑Specific Details
NiuNiu MaTe
NiuNiu MaTe
Feb 22, 2023 · Databases

Master Redis String Internals: Common Interview Questions & Answers

This article reviews essential Redis string concepts, covering typical interview questions, encoding types, the EMBSTR threshold, SDS structure, and memory allocation details to help readers solidify their understanding of Redis string implementation.

Memory ManagementRedisSDS
0 likes · 8 min read
Master Redis String Internals: Common Interview Questions & Answers
37 Interactive Technology Team
37 Interactive Technology Team
Feb 20, 2023 · Fundamentals

Fundamentals of the JVM: HotSpot, JIT, Memory Areas, Garbage Collection, and Class Loading

The article explains how the HotSpot JVM executes Java by interpreting bytecode, using client or server JIT compilers to translate hot methods into native code, describes the five runtime memory areas, outlines major garbage‑collection algorithms and tuning options, and details the class‑loading process and hierarchical classloader model.

JITJVMJava
0 likes · 24 min read
Fundamentals of the JVM: HotSpot, JIT, Memory Areas, Garbage Collection, and Class Loading
Su San Talks Tech
Su San Talks Tech
Feb 8, 2023 · Backend Development

Boost Java Performance with Off‑Heap Caching: A Practical OHC Guide

This article explains why moving large local caches to off‑heap memory using the open‑source OHC library can reduce GC pressure, provides a step‑by‑step demo with custom serialization, compares it with a HashMap OOM example, and dives into the library's core allocation mechanisms and configuration options.

CachingJavaMemory Management
0 likes · 18 min read
Boost Java Performance with Off‑Heap Caching: A Practical OHC Guide
Architecture Digest
Architecture Digest
Feb 5, 2023 · Databases

Redis Memory Management and Optimization Practices

This article explains Redis's internal memory architecture, details the various memory components such as used_memory, object memory, client buffers, and fragmentation, and provides practical optimization techniques and real‑world case studies to reduce memory usage and improve performance.

DatabasesMemory ManagementPerformance
0 likes · 22 min read
Redis Memory Management and Optimization Practices
Baidu App Technology
Baidu App Technology
Feb 2, 2023 · Fundamentals

Inside iOS: How Mach Virtual Memory and Memory Pressure Work

This article explains the architecture of Mach virtual memory in iOS, details its page‑based management, describes the core data structures and kernel APIs, analyzes the Objective‑C alloc implementation, and walks through the memory‑pressure (Jetsam) mechanism that triggers low‑memory warnings.

MachMemory ManagementSource Code
0 likes · 21 min read
Inside iOS: How Mach Virtual Memory and Memory Pressure Work
Tencent Database Technology
Tencent Database Technology
Jan 18, 2023 · Databases

In‑depth Analysis of MySQL InnoDB Buffer Pool Architecture and Performance Optimizations

This article provides a comprehensive technical walkthrough of MySQL‑8.0.22 InnoDB's buffer pool, detailing its physical and logical structures, page management algorithms, fast read/write optimizations, change buffer, adaptive hash index, and the complete page‑read call stack, complete with code excerpts and diagrams.

Buffer PoolCachingDatabase Performance
0 likes · 47 min read
In‑depth Analysis of MySQL InnoDB Buffer Pool Architecture and Performance Optimizations