That's true. Using bigger buffer will help, but it doesn't tell why reading
large size file is slower than reading small size file.
On Sat, Feb 21, 2009 at 5:56 PM, Wojciech Puchar
woj...@wojtek.tensor.gdynia.pl wrote:
I'm just guessing inode structure, the physical file location on HDD
Both of them.
Reading two 100M files in interleaved way with 16K buffer, 62MB/s
Reading two 700M files in interleaved way with 16K buffer, 9MB/s
Reading two 100M files in interleaved way with 1M buffer, 55MB/s
get worse with large buffer somehow
Reading two 700M files in interleaved way with
Hello,
I need to read two files simultaneously, and simply read(2) is
interleaved to do this. The problem is the performance varies
dramatically depending on the file size. I'm wondering what is the
problem in this case.
The test application does following:
open 2 files
- the size of two file
Hi BSD guys,
While I was doing simple file read test, I found that there is a huge
difference in file read performance between read() and fread(). I'm
wondering if I'm doing something wrong or if someone has experienced
similar things.
Here is what I did,
For the specific application, I need to
setvbuf(file, buf, _IOFBF, bufsize) solved the problem perfectly.
Thanks a lot.
On Fri, Feb 20, 2009 at 4:09 PM, Pieter de Goeje pie...@degoeje.nl wrote:
On Friday 20 February 2009 21:07:57 Junsuk Shin wrote:
Hi BSD guys,
While I was doing simple file read test, I found