Get the latest tech news

io_uring is faster than mmap


TL;DR Sourcing data directly from disk IS faster than caching in memory. I brought receipts.

My testing rig is a server with an old AMD EPYC 7551P 32-Core Processor on a Supermicro H11SSL-i and 96GB of DDR4 2133 MHz and a couple of 1.92TB Samsung PM983a PCIe 3.0 SSDs I pieced together from EBay parts. With such a system our throughput would not be affected by the dataset size, unlike the in-memory case, which has numa overhead and eventually runs out of memory to scale. Tis but a humble and hopefully fun exercise in exploring the limits and trends of modern hardware and the tradeoffs needed to maximize performance.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Memory

Memory

Photo of disk

disk

Related news:

News photo

Memory is slow, Disk is fast – Part 1

News photo

In-Memory Filesystems in Rust

News photo

Learning about GPUs through measuring memory bandwidth