mmap Performance Debate
Discussions center on the mmap system call's performance, use cases, advantages over read(), limitations like latency and memory pressure, and best practices for high-performance I/O.
Activity Over Time
Top Contributors
Keywords
Sample Comments
What's wrong with plain old mmap ?
This is one of mmap's designed-for use cases. Look at DPDK maybe.
Can you give some examples where mmap is useful?
mmap isn't magic, it's just one of many mechanisms for getting data off disk and into memory
Aren't you overlooking memory latency mattering in mmap (MMU) page miss contexts?
mmap is not free. It just moves bandwidth around.
Hold up. Isn't mmap a system call?
if you made something 100x faster you donβt understand how mmap works
Memory mapping is not faster than read(2) for typical access patterns.
many applications just straight use mmap