Tagged articles

memory management

1093 articles · Page 6 of 11
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++Performance Optimizationcacheline alignment
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.

Lazy Deletionasynchronous 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.

KatalystKubernetesResource Optimization
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.

JVMJavagarbage collection
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.

CPythonPEPPerformance
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 StructuresRediskey-value store
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.

Class LoadingJVMJava
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 DevelopmentJavaNetty
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.

Generational GCJVMgarbage collection
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.

LinuxOS fundamentalsVirtual Memory
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.

JavaPerformancememory management
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++RCURecommendation Engine
0 likes · 12 min read
Design and Implementation of DGraph: A High‑Performance Recommendation Engine
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 PoolMySQLOptimization
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.

Generational GCJVMJava
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.

JavaPerformance Optimizationbig data
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.

Pythondebugginggarbage collection
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.

JVMJavagarbage collection
0 likes · 12 min read
Master JVM Tuning: Balancing Pause Time, Throughput, and Memory Usage
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.

ClassLoaderJVMJava
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.

Freeze ThresholdOceanBasedatabase
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.

LinuxVirtual Memorymemory management
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 kernelcompound pagefolio
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.

LinuxPhysical MemoryVirtual 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.

LinuxPage TableSLUB
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.

PEP 554faster-cpythonmemory management
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.

Javagarbage collectionmemory 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.

LinuxVirtual Memorymemory management
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.

LinuxTLBmemory management
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.

JVMJavagarbage collection
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.

CompilationWASIWebAssembly
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 ImagesPerformance OptimizationQMAnimatedImageView
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 ExecutionVirtual MachineWASI
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.

LinuxNUMAmemory management
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 algorithmsGenerational GCJVM
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 kernelkernel developmentkmem_cache
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 StructuresFAQLanguage Design
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.

BackendCoding PracticesOptimization
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.

CMSG1JVM
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.

KernelLinuxSLUB
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.

JVMJavagarbage collection
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 PagesKernelLinux
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.

Mobile DevelopmentPerformance Optimizationlayout 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.

BackendJVMJava
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.

JVMZGCgarbage collection
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.

ExpandoFlutterPlatformView
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.

BackendJVMJava
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.

Operating SystemsTLBVirtual Memory
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.

JVMJavagarbage collection
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++Programming Fundamentalsmemory management
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.

BackendRedisSDS
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.

Class LoadingJITJVM
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.

JavaOHCOff‑Heap
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.

PerformanceRedisdatabases
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.

KernelMachVirtual Memory
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 PoolInnoDBMySQL
0 likes · 47 min read
In‑depth Analysis of MySQL InnoDB Buffer Pool Architecture and Performance Optimizations
Alibaba Terminal Technology
Alibaba Terminal Technology
Jan 16, 2023 · Mobile Development

How to Extend iOS App Virtual Address Space and Boost Memory Limits

This article explores iOS memory optimization by enabling the 'com.apple.developer.kernel.extended-virtual-addressing' entitlement to expand virtual address space and the 'com.apple.developer.kernel.increased-memory-limit' entitlement to raise memory caps, detailing implementation steps, kernel analysis, test results, and practical implications for app stability.

KernelVirtual Address Spaceentitlements
0 likes · 11 min read
How to Extend iOS App Virtual Address Space and Boost Memory Limits
Alibaba Cloud Native
Alibaba Cloud Native
Jan 14, 2023 · Cloud Native

Why Java Apps OOM in Kubernetes Even Below Xmx and How to Fix It

This article explains why Java applications running in Kubernetes can encounter Out‑Of‑Memory errors despite heap usage staying under the Xmx limit, by examining container resource limits, JVM memory models, cgroup behavior, and provides practical configuration recommendations to prevent OOM.

Cloud NativeJVMJava
0 likes · 16 min read
Why Java Apps OOM in Kubernetes Even Below Xmx and How to Fix It
Open Source Linux
Open Source Linux
Jan 12, 2023 · Fundamentals

Why Intel’s Linear Address Masking (LAM) Was Rejected from Linux 6.2

Intel’s Linear Address Masking (LAM) feature, which repurposes unused bits of 64‑bit virtual addresses for metadata, was proposed for Linux 6.2 but faced strong criticism from Linus Torvalds and was ultimately not merged, prompting Intel to rewrite the code for a future kernel release.

Intel LAMLinux kerneladdress masking
0 likes · 5 min read
Why Intel’s Linear Address Masking (LAM) Was Rejected from Linux 6.2
Sohu Tech Products
Sohu Tech Products
Jan 11, 2023 · Mobile Development

Deep Dive into Swift Array Implementation and Copy‑On‑Write Mechanics

This article provides a comprehensive, low‑level exploration of Swift's Array type, detailing its memory layout, the SIL generation process, buffer allocation, internal structures such as _ArrayBuffer and _ContiguousArrayStorage, and the copy‑on‑write behavior that governs mutation and reference counting.

Copy-on-WriteLow-Level DebuggingSIL
0 likes · 18 min read
Deep Dive into Swift Array Implementation and Copy‑On‑Write Mechanics
Bin's Tech Cabin
Bin's Tech Cabin
Dec 28, 2022 · Fundamentals

How Linux Allocates Physical Memory: Inside the Kernel’s Buddy Allocator

This article walks through Linux kernel physical memory allocation, explaining the hierarchy of allocation interfaces, the role of gfp_mask and ALLOC flags, the fast and slow allocation paths, memory watermarks, NUMA zone handling, and the complex fallback mechanisms including compaction, direct reclaim, and OOM, all illustrated with code snippets and diagrams.

LinuxNUMAallocation
0 likes · 68 min read
How Linux Allocates Physical Memory: Inside the Kernel’s Buddy Allocator
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 23, 2022 · Fundamentals

Four JVM Garbage Collection Algorithms Explained

This article introduces the four main JVM garbage collection algorithms—Mark‑Sweep, Copying, Mark‑Compact, and Generational collection—explaining their mechanisms, suitable scenarios, advantages, and drawbacks, and summarizing how they are applied to young and old generations in modern Java virtual machines.

CopyingGenerational GCJVM
0 likes · 7 min read
Four JVM Garbage Collection Algorithms Explained
High Availability Architecture
High Availability Architecture
Dec 23, 2022 · Fundamentals

Understanding Linux C++ Memory Management: Theory and Classification

This article explains the fundamentals of Linux memory management for C++ backend services, covering memory size categories, lifetime classifications, allocation mechanisms such as kmalloc, vmalloc, brk, mmap, virtual‑to‑physical mapping, lazy allocation, and the performance considerations that guide efficient memory usage.

Linuxmemory managementoperating system
0 likes · 11 min read
Understanding Linux C++ Memory Management: Theory and Classification
php Courses
php Courses
Dec 20, 2022 · Databases

Redis Memory Not Releasing Issue and Analysis of 20 Million Expiring Keys

This article describes a Redis 5.0 memory leak scenario where 20 million keys with expiration caused memory not to be released, details the investigation steps, findings about the activeExpireCycle, and concludes that memory will eventually be freed, followed by a promotional announcement for a PHP online live class.

PHPPerformanceRedis
0 likes · 3 min read
Redis Memory Not Releasing Issue and Analysis of 20 Million Expiring Keys
Baidu Geek Talk
Baidu Geek Talk
Dec 16, 2022 · Fundamentals

Exploring ptmalloc: Memory Management in Linux C++ Programs

The article explains how glibc’s default ptmalloc allocator structures memory into main and non‑main arenas, uses chunk‑based bins (fast, unsorted, small, large) for allocation and deallocation, details its locking and OS‑interaction mechanisms, and evaluates its design trade‑offs versus modern allocators.

C++Linuxfree
0 likes · 12 min read
Exploring ptmalloc: Memory Management in Linux C++ Programs
Liangxu Linux
Liangxu Linux
Nov 29, 2022 · Fundamentals

Master C Pointers: From Basics to Multi‑Level and Array Techniques

This guide explains C pointers, covering their definition, basic syntax, pointer arithmetic, multi‑level pointers, the relationship between pointers and multi‑dimensional arrays, and the distinction between array pointers and pointer arrays, supplemented with clear code examples and visual analogies.

C++Multi-level Pointersarrays
0 likes · 12 min read
Master C Pointers: From Basics to Multi‑Level and Array Techniques
Baidu Geek Talk
Baidu Geek Talk
Nov 21, 2022 · Mobile Development

How Baidu App Prevents OOM Crashes with Real‑Time Memory Monitoring and Prediction

This article details Baidu's multi‑step memory‑control solution for its iOS app, covering background challenges, real‑time memory monitoring, page‑level memory prediction, water‑level determination, frequency control, proactive degradation, and code examples that together reduce OOM incidents on low‑end devices.

Mobile DevelopmentOOM preventionapp performance
0 likes · 17 min read
How Baidu App Prevents OOM Crashes with Real‑Time Memory Monitoring and Prediction
Bin's Tech Cabin
Bin's Tech Cabin
Nov 21, 2022 · Fundamentals

Inside Linux Physical Memory Management: From FLATMEM to NUMA, Watermarks, and Page Structures

This article provides an in‑depth, step‑by‑step explanation of how the Linux kernel organizes and manages physical memory, covering memory models (FLATMEM, DISCONTIGMEM, SPARSEMEM), NUMA vs. UMA architectures, zone partitioning, watermarks, reserved pages, hot‑cold page handling, and the detailed struct page layout used for both anonymous and file‑backed pages.

LinuxNUMAmemory management
0 likes · 99 min read
Inside Linux Physical Memory Management: From FLATMEM to NUMA, Watermarks, and Page Structures