read two files simultaneously
Wojciech Puchar
wojtek at wojtek.tensor.gdynia.pl
Sat Feb 21 14:56:28 PST 2009
> I'm just guessing inode structure, the physical file location on HDD
> might be related to this. But, if I read only one file, the size
> doesn't matter. Reading file (10M, 100M, 700M) gives constantly about
> 70MB/s, and the weird thing happens when I read 2 files of big size.
if you use O_DIRECT it's read from disk exactly as you specified, without
readahead, so you do a lot of seeks.
simply use bigger buffer like 1MB
More information about the freebsd-questions
mailing list