|
-
January 10th, 2009, 01:48 AM
#1
Excessively slow file sequence access
I am having trouble getting good performance from CreateFile/ReadFile when accessing a sequence of files.
I am using FILE_FLAG_NO_BUFFERING | FILE_FLAG_SEQUENTIAL_SCAN.
My sequence has files of ~10 MB each, with 200 files in the sequence.
If I store the same data in a single contiguous file, I can read 40 chunks/sec (400 MB/sec). If I read the files as a sequence, I can read 10 chunks/sec (100 MB/sec).
I read the files in 3 API calls after opening the files:
Read header (4kb max)
Seek
Read data (~10 MB)
How can I increase the performance of this situation?
I am using windows XP pro.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|