Hacker News new | ask | show | jobs
by im3w1l 1992 days ago
If I read with a huge block size, say 100mb. Will the OS request things in a sane way?
1 comments

Yeah. Linux will end up splitting the requests down to typically 128kB blocks, but they're submitted to the SSD as a batch rather than one at a time, so there's sufficient work to keep the drive properly busy. But only do this if you actually need all 100MB. If you're randomly accessing only bits and pieces of the file, it's usually better to stick with 4kB requests (or larger if your file format and access patterns make that appropriate).