Re: vfat <-> vfat copying of ~700MB file, so slow!

From: Ion Badulescu (ionut@moisil.cs.columbia.edu)
Date: Sun Jan 28 2001 - 00:52:01 EST


On Fri, 26 Jan 2001 18:41:37 +0100, Pavel Machek <pavel@suse.cz> wrote:
> Hi!
>
>> > Copying between vfat <-> vfat partitions is so slow. It seems
>> > that it's vfat/msdos kernel driver problem because I tried to copy
>>
>> I reported this years ago, with a 700 kB file on a floppy and
>> a 4 MB file on a Zip disk. In both cases mcopy was several times
>> faster than the kernel code.
>
> Perhaps linear scan of FAT?

Maybe. Quite likely, in fact. But there is no reason why fatfs can't
store the current FAT cluster number in struct file's private data,
making seeks, reads and writes O(1) (from O(n)).

You'll have to give up using generic_file_read(), however. So it's
not a trivial change.

Ion

-- 
  It is better to keep your mouth shut and be thought a fool,
            than to open it and remove all doubt.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 31 2001 - 21:00:29 EST