Skip to contentSkip to conversation

Disk Performance

DISCUSSION Dan Maas 1 participant 1 message Nov 10, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Dan Maas

author
#1 lore raw
Quoted 2 lines

Why does my 40 Megabyte per second IDE drive, transfer files at best at 1-2 Megabytes per second?

Keep in mind that some disk benchmarks just read/write long contiguous regions of the disk, whereas the files you are copying may be fragmented. So, while your drive may be able to sustain 40 MB/sec on a contiguous region, it might slow down a lot if it has to seek to different parts of a fragmented file, or between many files.

Actually while I'm on this subject - does anyone have experience with "preallocating" files for low-latency transfers? e.g. if I know I'm going to capture several GB of video to disk, will it reduce I/O latency if I truncate the destination file to the proper size and fill it with zeros beforehand? (I assume it helps for the fs to be as empty as possible) Are any filesystems particularly good/bad for cases like this?

Regards,
Dan