libcachesim

a high performance library for building cache simulators

24 articles 288 View on GitHub ↗
24 articles
How to Contribute New Eviction Algorithms to libCacheSim: A Developer's Guide

Learn how to contribute new eviction algorithms to libCacheSim. Implement the cache_t interface, register your module, and validate with the test harness. A developer's guide for libCacheSim contributions.

how-to-guide
Feb 23, 2026
How to Build a Cache Simulator Using the C++ API of libCacheSim: A Complete Guide

Learn to build a high-performance cache simulator using the libCacheSim C++ API. This guide details using the trace reader, cache object, and request handler for efficient simulation.

tutorial
Feb 23, 2026
How to Consider Object Size Distributions in libCacheSim Simulations: A Complete Guide

Learn how to consider object size distributions in libCacheSim simulations using request_t.obj_size and ignore_obj_size for statistical analysis and byte-aware caching.

how-to-guide
Feb 23, 2026
How to Simulate Fractional Cache Sizes (Percentage of Working Set) in libCacheSim

Learn to simulate fractional cache sizes in libCacheSim. Specify cache capacity as a percentage of your working set for precise memory analysis.

how-to-guide
Feb 23, 2026
How to Interpret libCacheSim Trace Analysis Output to Identify Cache Performance Issues

Learn to interpret libCacheSim trace analysis output and diagnose cache performance issues. Decode metrics from stat files to pinpoint problems like cold misses and write amplification.

how-to-guide
Feb 23, 2026
Does libCacheSim Support Concurrent or Parallel Trace Processing?

Learn how libCacheSim handles concurrent trace processing. Discover its parallel simulation capabilities using GLib's thread pool for efficient performance analysis.

how-to-guide
Feb 23, 2026
How to Compare Different Cache Algorithms Fairly in libCacheSim

Compare cache algorithms fairly in libCacheSim. Run eviction policies side-by-side on the same trace with identical configurations for accurate results.

best-practices
Feb 23, 2026
How to Configure Hashpower and Memory Footprint for libCacheSim Simulations

Optimize libCacheSim simulations by configuring hashpower and memory footprint. Learn how hashpower controls table size, impacting memory usage for your cache simulations.

how-to-guide
Feb 23, 2026
Approximate Miss Ratio Computation Using Sampling in libCacheSim: SHARDS and MINISIM Explained

Discover how libCacheSim computes approximate miss ratios using SHARDS and MINISIM sampling profilers. Estimate miss-ratio curves from trace samples with high accuracy.

deep-dive
Feb 23, 2026
How to Extend libCacheSim to Support New Custom Trace Types: A 4-Step Implementation Guide

Effortlessly extend libCacheSim for custom trace types. Follow our 4-step implementation guide to define new entries, register mappings, wire dispatchers, and implement interface functions.

how-to-guide
Feb 23, 2026
How to Efficiently Process Very Large Cache Traces (Billions of Requests) with libCacheSim

Efficiently process billions of requests with libCacheSim. Discover how to manage large cache traces using memory mapping, sampling, and thread pools for constant memory and high CPU use.

how-to-guide
Feb 23, 2026
Which Eviction Algorithm Is Best for Your Workload in libCacheSim: S3‑FIFO vs. Sieve vs. LRU

Discover the best eviction algorithm for your workload in libCacheSim. Compare S3-FIFO, Sieve, and LRU to optimize cache performance and reduce misses.

best-practices
Feb 23, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →