public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Great jffs2 speedup
@ 2005-09-28  9:36 hinko.kocevar
  2005-09-28 10:00 ` Jörn Engel
  2005-09-29  8:21 ` Ferenc Havasi
  0 siblings, 2 replies; 37+ messages in thread
From: hinko.kocevar @ 2005-09-28  9:36 UTC (permalink / raw)
  To: Linux MTD

Hi,

We started using new CVS code that provides EBS and fragtree method. 
Below are some measurements of mount times for old and new setup.

NAND partitions size tested were:
flash4 - 4Mb
flash5 - 12Mb
flash6 - 16Mb

OLD setup uses ~April 2005 MTD code, 2.6.11 kernel, no EBS and produces 
following:

Mounting flash4 clean partition	[1]
real	0m 0.83s
user	0m 0.01s
sys	0m 0.83s
-- -- -- -- -- -- -- -- -- --
Mounting flash4 dirty partition	[2]
real	0m 8.37s
user	0m 0.01s
sys	0m 8.35s
-- -- -- -- -- -- -- -- -- --
Mounting flash5 clean partition
real	0m 2.70s
user	0m 0.02s
sys	0m 2.38s
-- -- -- -- -- -- -- -- -- --
Mounting flash5 dirty partition
real	0m 26.42s
user	0m 0.01s
sys	0m 26.40s
-- -- -- -- -- -- -- -- -- --
Mounting flash6 clean partition
real	0m 3.29s
user	0m 0.02s
sys	0m 3.16s
-- -- -- -- -- -- -- -- -- --
Mounting flash6 dirty partition
real	0m 35.81s
user	0m 0.01s
sys	0m 35.77s
-- -- -- -- -- -- -- -- -- --

On new setup - using yesterdays MTD CVS and 2.6.12 kernel with EBS enabled:
Mounting flash4 clean partition	[1]
real    0m 3.75s
user    0m 0.02s
sys     0m 1.17s
-- -- -- -- -- -- -- -- -- --
Mounting flash4 dirty partition	[2]
real    0m 0.75s
user    0m 0.02s
sys     0m 0.73s
-- -- -- -- -- -- -- -- -- --
Mounting flash5 clean partition
real    0m 3.55s
user    0m 0.02s
sys     0m 3.47s
-- -- -- -- -- -- -- -- -- --
Mounting flash5 dirty partition
real    0m 2.12s
user    0m 0.03s
sys     0m 2.08s
-- -- -- -- -- -- -- -- -- --
Mounting flash6 clean partition
real    0m 4.82s
user    0m 0.01s
sys     0m 4.63s
-- -- -- -- -- -- -- -- -- --
Mounting flash6 dirty partition
real    0m 2.82s
user    0m 0.01s
sys     0m 2.80s
-- -- -- -- -- -- -- -- -- --

Compared to old setup this is GREAAAAAT improvment (if my mesurements 
are correct:). Great job!

This holds true /only/ if partition is erased beforehand and then 
mounted, filled with files, umounted and mounted again to mesure mount 
time for dirty partition. Mounting jffs2 partition filled on old setup 
shows no performance improvement.

We found sumtool utility in tools dir and if my understanding is correct 
it is used to convert jffs2 image with no EBS to jffs2 image with EBS.

Is this the only way to upgrade 'old' jffs2 partitions already in place 
(on the nand flash) to use EBS? Thing is, we have several system up and 
running in the wild and would like to upgrade jffs2 partitions 
as-painless-as-possible, preferably without complete reflash of the systems.

I've just ran sumtool on old raw 4Mb mtd char device (containing jffs2 
fs) and it produced 4Mb image on the output. I figure, if I copy this 
image back to flash and test it with EBS supported kernel it should 
recognize it as new jffs2 image and mount it super-fast. I still need to 
erase the nand partition and gather enough ram for temporary EBS image 
on the system and so this could be a problem in our setup.

regards,
hinko

[1] Mounting clean partition means that we erased the partition with 
flash_eraseall and then mounted it. mount time was measured with 'time'.
[2] After cleaning up the partition, then creating, appending, erasing 
several small files on it, we umounted the partition and mounted it 
back. mount time was measured eith 'time'.

All partitions contained 150 - 700 few kbytes sizes files and were ~80 % 
full when dirty.

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

end of thread, other threads:[~2005-10-01  7:44 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-28  9:36 Great jffs2 speedup hinko.kocevar
2005-09-28 10:00 ` Jörn Engel
2005-09-28 15:26   ` hinko.kocevar
2005-09-29  7:53     ` Jörn Engel
2005-09-30 12:26   ` hinko.kocevar
2005-09-29  8:21 ` Ferenc Havasi
2005-09-29  9:34   ` Jörn Engel
2005-09-29  9:44     ` Artem B. Bityutskiy
2005-09-29  9:52     ` Ferenc Havasi
2005-09-29  9:55       ` Jörn Engel
2005-09-29  9:59       ` Artem B. Bityutskiy
2005-09-29 10:12         ` Jörn Engel
2005-09-29 10:21           ` Artem B. Bityutskiy
2005-09-29 10:26             ` Jörn Engel
2005-09-29 11:34               ` Ferenc Havasi
2005-09-29 11:35                 ` Jörn Engel
2005-09-29 11:45                   ` Ferenc Havasi
2005-09-29 11:52                     ` Jörn Engel
2005-09-29 12:39                       ` Josh Boyer
2005-09-29 10:23         ` Ferenc Havasi
2005-09-29 10:29           ` Jörn Engel
2005-09-29 10:45           ` Artem B. Bityutskiy
2005-09-29 11:29             ` Ferenc Havasi
2005-09-29 11:32               ` Artem B. Bityutskiy
2005-09-29 16:10         ` Peter Grayson
2005-09-29 17:45           ` Sergei Sharonov
2005-09-30  4:19             ` Peter Grayson
2005-09-30  8:58               ` Artem B. Bityutskiy
2005-09-30  9:08                 ` Artem B. Bityutskiy
2005-09-30 20:25                 ` Peter Grayson
2005-10-01  7:01                   ` Artem B. Bityutskiy
2005-09-30 21:15               ` Sergei Sharonov
2005-09-30 23:22                 ` Peter Grayson
2005-10-01  7:43                   ` Artem B. Bityutskiy
2005-09-29 10:15   ` hinko.kocevar
2005-09-29 12:01     ` Ferenc Havasi
2005-09-29 13:07     ` Jörn Engel

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