torvalds/test-tlb
Stupid memory latency and TLB tester observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3449
- days_rel: n/a
- days_push: 744
- n_releases_24m: 0
Adoption not part of the score
1050 stars · 221 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small C benchmark tool by Linus Torvalds that measures memory access latency and TLB behavior across working-set sizes from a few kilobytes to hundreds of megabytes, including hugepage tests via madvise. It is a quick hack with hardcoded constants (page size, CPU frequency, stride) that users are expected to tweak for their machine.
Use cases
- measure memory latency across cache hierarchy levels
- test TLB performance with different page sizes
- benchmark hugepage vs normal page memory access
- measure cache line effects with different strides
- estimate memory access latency in CPU cycles
- compare memory latency on different machines
When to choose
- you want a tiny, hackable microbenchmark for memory latency and TLB behavior on Linux
- you want to experiment with strides, random chains, and hugepages to understand your machine's memory hierarchy
When to avoid
- you need polished, automated benchmarking with noise reduction or statistical reporting
- you need a portable tool - hugepage tests rely on Linux-specific madvise behavior
- you want a benchmark that works out of the box without editing hardcoded constants
Facets
cli-tool · maturity maintenance
benchmarking developer-tools performance hardware developer-tools operating-systems cli c cpp memory-latency tlb microbenchmark cache-testing hugepages hardware-performance linux
1 source
- readme: https://github.com/torvalds/test-tlb · fetched 2026-08-28 · 938dc7c3da27
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| torvalds/test-tlb | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="torvalds/test-tlb")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem