On Fri, 23 Nov 2001, [iso-8859-1] Preben Mikael Bohn wrote:
Hi all, I have a program where I need to iterate through a binary file many times, and where each binary data needs to be processed each time.
[..]
My program seems to spend a lot of time on file I/O,
[..]
Can anyone tell me why it's so slow, and what may be done to speed it up? Isn't Linux also supposed to have a very efficient file-cashing system, so the above shouldn't really be problem?
While the program is running check to see if swap is being used. ( use another window ). There is a known speed problem with vm that was fixed in kernel 2.4.14
Russ