3 ms·
If you want to get good random read performance out of an SSD, you can't use mmap. A thread can only page fault on one address at a time, but full random IO per
by wtallis 4y ago
If you want to get good random read performance out of an SSD, you can't use mmap. A thread can only page fault on one address at a time, but full random IO performance requires giving the SSD many requests to work on in parallel.
- gavinray 4y agoThis, you should open the fd in O_DIRECT, non-mmap'ed You have a lot more control this way