public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] eCos JFFS2 file system poor performance..
@ 2007-02-05  7:13 shailesh lomate
  2007-02-05  7:27 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: shailesh lomate @ 2007-02-05  7:13 UTC (permalink / raw)
  To: ecos-discuss

I am using the JFFS2 file system in my project which
is using a flash (having access time of 70 ns) as
jffs2 flash.
My project included a ARM7 processor running at 73
MHz.
I am using the JFFS2 file system with zlib compression
support. My buffering for File IO is 256 bytes. Also
the file read operation works fine but the problem 
which I am facing is the time taken by the fread call
to jffs2 file system takes almost 18 ms to read a
small chunk of just 256 bytes.
DonÂ’t this sound to be very in-efficient? Or is there
anything wrong with my system? 

Those of you having similar hardware configuration, do
u also get similar performance?

Kindly let me your expert comments on this or if you
require any more details for analyzing the problem.
Early reply neededÂ…Â…Â…Â…..

Shailesh


 
____________________________________________________________________________________
Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] eCos JFFS2 file system poor performance..
  2007-02-05  7:13 [ECOS] eCos JFFS2 file system poor performance shailesh lomate
@ 2007-02-05  7:27 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2007-02-05  7:27 UTC (permalink / raw)
  To: shailesh lomate; +Cc: eCos Disuss

On Sun, Feb 04, 2007 at 11:12:50PM -0800, shailesh lomate wrote:
> I am using the JFFS2 file system in my project which
> is using a flash (having access time of 70 ns) as
> jffs2 flash.
> My project included a ARM7 processor running at 73
> MHz.
> I am using the JFFS2 file system with zlib compression
> support. My buffering for File IO is 256 bytes. Also
> the file read operation works fine but the problem 
> which I am facing is the time taken by the fread call
> to jffs2 file system takes almost 18 ms to read a
> small chunk of just 256 bytes.
> Don?t this sound to be very in-efficient? Or is there
> anything wrong with my system? 

I got much better sequential access by using bigger buffers. Try using
4Kbyte buffers and do 4Kbyte reads. Also make sure zlib has plenty of
memory available to it. Plus you might want to see how much of a
performance gain you get without zlib. When you have a slow CPU and
fast flash, compression could be the bottleneck. This is especially
true for writing, when the jffs2 code will try many different
compressions schemes to find which is the best for a given block of
data.

        Andrew

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-05  7:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-05  7:13 [ECOS] eCos JFFS2 file system poor performance shailesh lomate
2007-02-05  7:27 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).