Tag

LRU

0 views collected around this technical thread.

Code Ape Tech Column
Code Ape Tech Column
Apr 23, 2025 · Databases

Impact of Full Table Scans on MySQL Server Memory and InnoDB Buffer Pool

A full‑table scan of a 200 GB InnoDB table on a MySQL server with 100 GB RAM does not exhaust server memory because MySQL streams rows to the client, uses a fixed net_buffer, and InnoDB’s optimized LRU algorithm limits buffer‑pool pressure, ensuring stable performance.

Buffer PoolFull Table ScanInnoDB
0 likes · 10 min read
Impact of Full Table Scans on MySQL Server Memory and InnoDB Buffer Pool
Cognitive Technology Team
Cognitive Technology Team
Mar 3, 2025 · Databases

Understanding Redis Memory Management: maxmemory Configuration and Eviction Policies

This article explains how Redis uses memory as a cache, details the maxmemory setting and its configuration methods, describes various eviction policies—including LRU, LFU, and random strategies—and outlines expiration handling, replication considerations, and best‑practice recommendations for stable high‑load deployments.

Eviction PolicyLFULRU
0 likes · 10 min read
Understanding Redis Memory Management: maxmemory Configuration and Eviction Policies
Lobster Programming
Lobster Programming
Dec 16, 2024 · Databases

Why MySQL Never Runs Out of Memory During Massive Full Table Scans

Even when scanning tables with tens of millions of rows, MySQL avoids out‑of‑memory crashes by streaming data in small 16 KB net buffers, using socket buffers, and employing an improved LRU algorithm that isolates cold data in the buffer pool’s old generation.

Buffer PoolFull Table ScanLRU
0 likes · 5 min read
Why MySQL Never Runs Out of Memory During Massive Full Table Scans
IT Services Circle
IT Services Circle
Dec 3, 2024 · Databases

Using Redis as a High‑Performance Cache Layer for MySQL‑Backed Services

The article explains how to alleviate MySQL bottlenecks in high‑traffic product services by introducing Redis as a local and remote cache, covering data structures, expiration policies, eviction strategies, persistence mechanisms, and a lightweight TCP protocol to achieve scalable, reliable performance.

CacheLRUMySQL
0 likes · 10 min read
Using Redis as a High‑Performance Cache Layer for MySQL‑Backed Services
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 26, 2024 · Databases

Performance Issues of TRUNCATE/DROP TABLE in MySQL and Their Historical Fixes

This article reviews the long‑standing performance problems of TRUNCATE and DROP TABLE in MySQL, tracing their origins through official manuals and historical bugs, summarizing the optimizations introduced in MySQL 5.5.23, 5.7, 8.0, and 8.4, and offering practical guidance for mitigating remaining latency.

Adaptive Hash IndexDrop TableInnoDB
0 likes · 12 min read
Performance Issues of TRUNCATE/DROP TABLE in MySQL and Their Historical Fixes
Python Programming Learning Circle
Python Programming Learning Circle
Nov 14, 2024 · Fundamentals

Using Python Dictionaries as a Cache Mechanism

This article explains how Python dictionaries can serve as an efficient caching mechanism, covering basic dictionary concepts, common operations, simple cache examples, advanced techniques like LRU cache implementation, and practical use cases such as caching API responses, with complete code snippets.

APICacheLRU
0 likes · 8 min read
Using Python Dictionaries as a Cache Mechanism
Lobster Programming
Lobster Programming
Aug 14, 2024 · Databases

How MySQL InnoDB’s Prefetch and LRU Buffer Pool Boost Query Performance

This article explains MySQL InnoDB’s linear and random prefetch mechanisms, the role of the innodb_read_ahead_threshold and innodb_random_read_ahead variables, and how the LRU buffer‑pool list manages hot and cold pages to improve overall query efficiency.

Buffer PoolInnoDBLRU
0 likes · 6 min read
How MySQL InnoDB’s Prefetch and LRU Buffer Pool Boost Query Performance
Deepin Linux
Deepin Linux
Jun 6, 2024 · Fundamentals

Linux Page Reclaim Mechanism and PFRA Design Overview

This article explains Linux's page reclamation process, describing how the kernel recovers memory under pressure using PFRA, LRU algorithms, direct reclaim, compaction, and OOM handling, and provides detailed source code analysis of the involved kernel functions.

LRULinuxMemory Management
0 likes · 54 min read
Linux Page Reclaim Mechanism and PFRA Design Overview
政采云技术
政采云技术
Oct 25, 2023 · Databases

Redis Memory Management: Eviction and Expiration Strategies Explained

This article provides a comprehensive overview of Redis memory management, detailing how maxmemory limits trigger various eviction policies, explaining the internal freeMemoryIfNeeded algorithm, and describing expiration mechanisms—including active and lazy deletion—and offering guidance on selecting the appropriate eviction strategy for different workloads.

CacheDatabaseLFU
0 likes · 18 min read
Redis Memory Management: Eviction and Expiration Strategies Explained
Top Architect
Top Architect
Oct 11, 2023 · Databases

Understanding Redis Memory Eviction Policies and Configuration

This article explains how Redis uses the maxmemory setting to trigger memory eviction, details the various eviction policies (including LRU and LFU), shows how to query and modify these settings with config commands, and briefly mentions promotional offers for a ChatGPT community.

LFULRUMemory Eviction
0 likes · 10 min read
Understanding Redis Memory Eviction Policies and Configuration
Architect
Architect
Jul 19, 2023 · Databases

Understanding Redis LRU and LFU Cache Eviction Algorithms

This article explains the principles, implementation details, and trade‑offs of Redis’s LRU and LFU cache eviction algorithms, including their data structures, code snippets, configuration parameters, and practical guidance on choosing the appropriate strategy based on workload characteristics.

Cache EvictionLFULRU
0 likes · 13 min read
Understanding Redis LRU and LFU Cache Eviction 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
Tongcheng Travel Technology Center
Tongcheng Travel Technology Center
Mar 24, 2023 · Databases

Understanding MySQL Buffer Pool: Memory Structure, Page Types, and Management Strategies

This article explains the MySQL Buffer Pool architecture, describing data pages, cache pages, the three page states, the various linked lists (Free, Flush, LRU), pre‑read mechanisms, hot‑cold separation, concurrency handling, and dynamic resizing using the chunk mechanism.

Buffer PoolChunkInnoDB
0 likes · 18 min read
Understanding MySQL Buffer Pool: Memory Structure, Page Types, and Management Strategies
HelloTech
HelloTech
Dec 15, 2022 · Backend Development

Optimization of Reverse Geocoding Service: Caching, GeoHash, and LRU Strategies

By eliminating unnecessary reverse‑geocode calls, aggregating nearby coordinates with GeoHash, and employing a multi‑layer LRU‑K cache with time‑ and access‑count eviction, the Hellobike map team cut daily requests from 200‑300 million to 20‑30 million while adding fallback and monitoring mechanisms.

GeoHashLRULRU-K
0 likes · 13 min read
Optimization of Reverse Geocoding Service: Caching, GeoHash, and LRU Strategies
Top Architect
Top Architect
Dec 9, 2022 · Backend Development

In-Memory Caching with Guava LoadingCache: Design, Algorithms, and Best Practices

This article explains the principles and practical implementation of in‑memory caching using Guava’s LoadingCache, covering cache initialization parameters, put and loading strategies, eviction policies, common algorithms such as LRU, LFU, FIFO, and tips for avoiding memory issues and monitoring cache performance.

GuavaJavaLRU
0 likes · 15 min read
In-Memory Caching with Guava LoadingCache: Design, Algorithms, and Best Practices
Top Architect
Top Architect
Nov 8, 2022 · Backend Development

Understanding In-Memory Caching with Guava LoadingCache and LRU Implementation in Java

This article explains the fundamentals of in‑memory caching, compares it with buffering, introduces Guava's LoadingCache configuration and operations, discusses eviction strategies, illustrates common cache algorithms (FIFO, LRU, LFU), provides a simple LRU implementation using LinkedHashMap, and offers practical guidelines for when and how to apply caching to improve backend performance.

GuavaJavaLRU
0 likes · 14 min read
Understanding In-Memory Caching with Guava LoadingCache and LRU Implementation in Java
Top Architect
Top Architect
Oct 28, 2022 · Backend Development

Configuring Redis Memory Size and Eviction Policies (LRU & LFU)

This article explains how to size Redis memory, configure maxmemory and maxmemory‑policy settings, and choose among various eviction strategies—including no‑eviction, allkeys‑lru, allkeys‑lfu, and volatile options—while detailing the underlying LRU and LFU algorithms used by Redis.

LFULRURedis
0 likes · 7 min read
Configuring Redis Memory Size and Eviction Policies (LRU & LFU)
Top Architect
Top Architect
Oct 23, 2022 · Backend Development

In‑Memory Cache Design with Guava LoadingCache, Eviction Strategies, and LRU Implementation

This article explains the fundamentals of in‑memory caching, introduces Guava's LoadingCache API, discusses cache sizing, eviction policies, common algorithms like FIFO, LRU, LFU, shows a simple LRU implementation using LinkedHashMap, and provides practical guidance on when and how to apply caching for performance optimization.

GuavaJavaLRU
0 likes · 14 min read
In‑Memory Cache Design with Guava LoadingCache, Eviction Strategies, and LRU Implementation
Top Architect
Top Architect
Sep 27, 2022 · Databases

Configuring Redis Memory Size and Eviction Policies (LRU and LFU)

Redis caches can fill up, requiring memory eviction; this guide explains how to set Redis maxmemory (e.g., 5GB), choose appropriate eviction policies such as allkeys-lru or allkeys-lfu, and details the underlying LRU and LFU algorithms and their configuration commands.

DatabaseEviction PolicyLFU
0 likes · 7 min read
Configuring Redis Memory Size and Eviction Policies (LRU and LFU)
Architecture Digest
Architecture Digest
Sep 8, 2022 · Databases

Configuring Redis Memory Size and Understanding Eviction Policies (LRU, LFU)

This article explains how to set Redis memory limits, choose appropriate eviction policies such as noeviction, allkeys‑lru, allkeys‑lfu, volatile‑ttl, and describes the underlying LRU and LFU algorithms, including their implementation details and practical configuration commands.

Eviction PolicyLFULRU
0 likes · 9 min read
Configuring Redis Memory Size and Understanding Eviction Policies (LRU, LFU)