Let's say I want to write a 1 GB of data to the file on, say ext3
Linux filesystem using write(2)
syscall and this happens in a very busy environment (many similar I/Os concurently). What is the optimal buffer size in the interval, say, [4 kB, 4 MB]
to do that when
- not using
O_DIRECT
open flag, or - using
O_DIRECT
?
Please, no "check it yourself" answers -- I'd like to get some answer from "filesystems" guys.
See Question&Answers more detail:os