JFFS2 mount time

David Woodhouse dwmw2 at infradead.org
Tue Jan 13 10:30:00 EST 2004


On Tue, 2004-01-13 at 16:25 +0100, Kenneth Johansson wrote:
> I have done some work on the JFFS2 code in u-boot and found that the
> fastest way was to load the entire FLASH into a continuous disk image in
> DRAM and then have code that directly dereference pointers into this
> image without any access functions or read on demand.

What we do in the current JFFS2 code is similar. We directly dereference
pointers into the _flash_ without access functions, rather than copying
it into DRAM first.

> When I tried to be smart and skip the copy and only read in what needed
> to be read that was significantly slower.

Bear in mind that the question was about NAND flash though -- it's not
directly deferenceable, and you're not going to get the same results.

-- 
dwmw2




More information about the linux-mtd mailing list