Hacker News new | ask | show | jobs
by Dylan16807 2738 days ago
Why set the block size to 1? Isn't that just going to cause a ridiculous amount of syscalls?
1 comments

Yah, and be incredibly slow as well. It should be at a minimum 32K which is the DVD block size, but even larger would be better (but may interleave badly with IO to other devices).
It should be 2048 which is DVD sector size.
Because of ECC it doesn't read a single sector at a time. And actually even 32K is not large enough for good performance, you should go higher, maybe 1MB.