jffs_file_write

David Woodhouse dwmw2 at infradead.org
Tue Jul 25 06:01:40 EDT 2000


finn at axis.com said:
>  I cannot understand that. How much time are we talking about? How
> large is the flash? How long does an erase take? One garbage collect
> cannot consume more time than (sectors on flash * number of sectors)
> time I think. 

After making a few copies of /usr and /lib, then deleting them, I saw it
take an hour and a half with a 16Mb flash which was about half-full.

Now I've implemented buffer writes on chips which support it, that should be
down to ten minutes. I'm sure the verbose logging over the serial port
doesn't help :)

But it's still done in process context, and writes of new nodes have to 
wait while it's happening. Shifting that into its own kernel thread would 
be nice, and would also allow us to merge writes. 

I'm far more concerned by the thing getting corrupted when I abruptly 
remove power - I'm about to see if I can reproduce it with the patches you 
committed just before I left - do you have any ideas from the log I posted 
on the 17th of July?



--
dwmw2




To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org



More information about the linux-mtd mailing list