Without deleting the file between the writes, it is even worse. This is the log:
The log below is for the test of writing 40 MB file. My questions are1) Why does it take much longer for YAFFS2 to write the same 40 MB file compared to JFFS2?2) After writing the file, I remove the file and write it again. Why does it take much longer?At the moment, I can only think of one reason. JFFS2 compressed the data before writing to flash, so for1) JFFS2 writes much less data and it takes less time.2) After deleting the file, eraseing the flash is deferred to the subsequent writes. Because YAFFS2 data is uncompressed, it takes more time to erase more data.For YAFFS2:# time ./write_fs 41943040 1
real 0m39.000suser 0m1.130ssys 0m37.850s# ls /mnt02800000_0 lost+found# rm /mnt/02800000_0# time ./write_fs 41943040 1
real 0m56.710suser 0m1.120ssys 0m55.590s# rm /mnt/02800000_0# time ./write_fs 41943040 1
real 0m57.810suser 0m1.070ssys 0m56.740s# rm /mnt/02800000_0# time ./write_fs 41943040 1
real 0m55.740suser 0m1.110ssys 0m54.630sFor JFFS2: # time ./write_fs 41943040 1
real 0m9.940suser 0m1.130ssys 0m8.810s# rm /mnt/02800000_0# time ./write_fs 41943040 1
real 0m9.940suser 0m1.150ssys 0m8.780s# rm /mnt/02800000_0# time ./write_fs 41943040 1
real 0m10.510suser 0m1.040ssys 0m8.900s
All-new Yahoo! Mail - Fire up a more powerful email and get things done faster._______________________________________________
yaffs mailing list
yaffs@lists.aleph1.co.uk
http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs