Experiment: Measuring chunk load latency with an alternative storage layout
I’ve been experimenting with chunk storage layout and access patterns to better understand where chunk load latency in Minecraft actually comes from.
This is **not** a server advertisement, not a public release, and not a download — just benchmark results and observations from a local test environment.
Instead of Minecraft’s usual seek-heavy region file access pattern, I tested a single memory-mapped, append-only store with indexed chunk lookup. The goal was to isolate storage behavior and see how much latency comes from IO layout versus the rest of the server pipeline.
**Benchmark summary (local tests):**
* Random chunk lookups (10,000 queries):
* avg \~87µs, median \~75µs
* cache-hot repeated reads dropped into sub-microsecond territory
* Burst throughput peaked around \~11k chunks/sec
* Cache hit rate \~33% under normal movement patterns
Cold loads still depend on OS paging, and this doesn’t bypass Minecraft logic, serialization, or the tick loop — it just removes a lot of seek and decompression overhead on the storage side. The bottleneck shifts elsewhere pretty quickly.
This isn’t meant as a “fastest server” claim or a vanilla replacement. It’s just an experiment to better understand where time is actually being spent during chunk access and what kinds of storage layouts help or hurt.
I’m mainly interested in feedback on:
* whether this matches others’ understanding of chunk IO costs
* how much of the remaining latency people have seen come from serialization vs scheduling
* any obvious measurement pitfalls I should watch for
Happy to clarify methodology if needed.
This is **not** a server advertisement, not a public release, and not a download — just benchmark results and observations from a local test environment.
Instead of Minecraft’s usual seek-heavy region file access pattern, I tested a single memory-mapped, append-only store with indexed chunk lookup. The goal was to isolate storage behavior and see how much latency comes from IO layout versus the rest of the server pipeline.
**Benchmark summary (local tests):**
* Random chunk lookups (10,000 queries):
* avg \~87µs, median \~75µs
* cache-hot repeated reads dropped into sub-microsecond territory
* Burst throughput peaked around \~11k chunks/sec
* Cache hit rate \~33% under normal movement patterns
Cold loads still depend on OS paging, and this doesn’t bypass Minecraft logic, serialization, or the tick loop — it just removes a lot of seek and decompression overhead on the storage side. The bottleneck shifts elsewhere pretty quickly.
This isn’t meant as a “fastest server” claim or a vanilla replacement. It’s just an experiment to better understand where time is actually being spent during chunk access and what kinds of storage layouts help or hurt.
I’m mainly interested in feedback on:
* whether this matches others’ understanding of chunk IO costs
* how much of the remaining latency people have seen come from serialization vs scheduling
* any obvious measurement pitfalls I should watch for
Happy to clarify methodology if needed.
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote is ending in approximately 2 hour*)
That cache hit rate seems lower than I'd expect though - are you testing with realistic player movement or just random teleporting around? Real players tend to load adjacent chunks way more often than truly random access
Quick disclosure for transparency: I did use AI tools to help with explanation and prototyping, but the architecture choices, testing setup, and benchmarks themselves were done and validated by me on local hardware.
On the cache hit rate: it’s lower mainly because I intentionally mixed in **non-ideal access patterns**. Part of the testing used random or semi-random movement to stress worst-case behavior and avoid over-fitting to a perfectly coherent walk pattern.
When I switch to more realistic movement (walking/flying with a fixed render distance), the hit rate climbs noticeably because adjacent chunks get reused heavily and the OS page cache does most of the work. In that case, the storage side largely disappears as a bottleneck and serialization/scheduling dominate instead.
So roughly:
* Randomized access → lower hit rate, good for probing cold-path costs
* Realistic player movement → much higher hit rate, storage becomes secondary
The main takeaway for me was how quickly the bottleneck shifts away from disk once access patterns become even mildly coherent.