Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

Someone did test exactly that:

https://panthema.net/2019/0322-nvme-batched-block-access-spe...

From my experience as long as you can do that access multithreaded you won't really be penalized for random reads. Single threaded access I've seen as much as read performance halved (used fio for testing), but that didn't translate into multithreaded benchmarks



Just to be a bit pedantic, what you really want is several concurrent IOs, doesn’t have to be multithreaded. For example, io_uring can kick off many concurrent IOs off a single (userspace) thread.

But yes, if you don’t have io_uring you need to use threads, and if you use a lot of them context switches can have a nontrivial overhead from my experience.


Pedantic and wrong, good fucking luck saturating whole SSD from single thread on anything else than pure benchmark code




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: