[Yaffs] Question about writing time in YAFFS2

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: goog long
Date:  
To: yaffs List
Subject: [Yaffs] Question about writing time in YAFFS2
I have a test program to create and write many files of the same size. The following log shows a test of writing 2000 files of size 100 bytes.
I repeatly write 2000 files and deleted all the files and do the same again. The write time increases any time I repeat the cycle. Is it the behavior that we expect? I thought the time should be almost the same.
Does it mean the writing will be slower if there are a lot of writing, reading and deleting? I am writing a stress test to verify that.


root@omap2430-sdp:/root> flash_eraseall /dev/mtd4
Erasing 16 Kibyte @ 2b04000 -- 70 % complete.
Skipping bad block at 0x02b08000
Erasing 16 Kibyte @ 2bf0000 -- 71 % complete.
Skipping bad block at 0x02bf4000
Erasing 16 Kibyte @ 2c54000 -- 72 % complete.
Skipping bad block at 0x02c58000
Erasing 16 Kibyte @ 2cdc000 -- 73 % complete.
Skipping bad block at 0x02ce0000
Erasing 16 Kibyte @ 3d4c000 -- 99 % complete.
root@omap2430-sdp:/root> mount /dev/mtdblock4 /mnt -t yaffs2
root@omap2430-sdp:/root> time ./small_write 100 2000

real    0m5.150s
user    0m0.040s
sys     0m5.110s
root@omap2430-sdp:/root> rm /mnt/*
rm: cannot remove `/mnt/lost+found': Is a directory
root@omap2430-sdp:/root> ls /mnt
lost+found
root@omap2430-sdp:/root> time ./small_write 100 2000


real    0m5.160s
user    0m0.030s
sys     0m5.130s
root@omap2430-sdp:/root> rm /mnt/*
rm: cannot remove `/mnt/lost+found': Is a directory
root@omap2430-sdp:/root> time ./small_write 100 2000


real    0m5.170s
user    0m0.060s
sys     0m5.110s
root@omap2430-sdp:/root> rm /mnt/*
rm: cannot remove `/mnt/lost+found': Is a directory
root@omap2430-sdp:/root> time ./small_write 100 2000


real    0m5.340s
user    0m0.060s
sys     0m5.280s
root@omap2430-sdp:/root> rm /mnt/*
rm: cannot remove `/mnt/lost+found': Is a directory
root@omap2430-sdp:/root> time ./small_write 100 2000


real    0m5.550s
user    0m0.060s
sys     0m5.490s


Ceco

        
---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail.