public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Slow mtd device & JFFS2
@ 2001-08-15 18:22 Jarkko Lavinen
  0 siblings, 0 replies; only message in thread
From: Jarkko Lavinen @ 2001-08-15 18:22 UTC (permalink / raw)
  To: linux-mtd

I am playing with embedded device with Arm925 @ 13MHz. JFFS2 works, 
but it is painfully slow. I have made some measurements and it 
looks like the reason must be very slow write access to flash chip.

  eraseall /dev/mtd0:                    258 s (= 2.0 s/sector)
  copying (dd) /dev/mtd0 to /dev/null:    35 s (= 240 kiB/s or 8 us/word)
  copying (dd) /dev/zero to /dev/mtd0:   899 s (= 9.3 kiB/s or 210 us/word
  Mounting an empty 8 MiB filesystem:     40 s
  Copying ~ 300 kiB files to JFFS2       ~ 5 min
  Mounting ~700 kiB filesystem:           70 s
 
These figures are with compression off: jffs2_compress() is here
patched to return always JFFS2_COMPR_NONE. JFFS2 debugging level is
0. MTD debugging level is 0. CPU gives 11.1 BogoMIPS. I am using
couple days old mtd CVS image but my kernel version is rather old,
2.4.2. The 8MiB flash chip shows in physical memory as continous 
area and I am using mapping similar to physmap.c.

The writing speed looks awful! The chip is AMD 64Mbit chip for which
AMD claims 11 us typical programming time per word and 360 us worst
case. Read and erase figures look normal.

Is the slow write access the main reason for painfully slow JFFS2?

Jarkko Lavinen

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-08-15 18:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-15 18:22 Slow mtd device & JFFS2 Jarkko Lavinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox