This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Why it takes long time to first-time open large file in JFFS2?


As I run TFTP server test, I bind the TFTP file ops to the posix file I/O APIs. Then I can put/get file to/from JFFS2 on my target.

It works fine, but I find every the first-time to "get" a file from TFTP, it always fails with timeout, and following "get" all success.

I debugged and find the reason. The file I try to "get" is about 700 KB, when first-time open it, JFFS2 takes long time(about 20 seconds), which cause TFTP client timeout.
And following open this file takes very short time(I think it is because JFFS2 buffered the file info into RAM), then TFTP "get" success.
If the file size is small, everything is OK.


So why is JFFS2 so slow? How to configure to make it faster?

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn



-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]