Increasing read request size in JFFS2

Josh Boyer jwboyer at linux.vnet.ibm.com
Fri Sep 14 08:50:51 EDT 2007


On Fri, 14 Sep 2007 14:38:27 +0300
Artem Bityutskiy <dedekind at infradead.org> wrote:

> On Fri, 2007-09-14 at 07:24 -0400, payagond at aol.com wrote:
> > Hi,
> > I want to know, whether, we can exploit the fast sequential read 
> > (multiple pages at one go) feature of a nand flash device by existing 
> > JFFS2 code.
> > read_pages in readahead decides to call either 
> > mapping->a_ops->readpages or mapping->a_ops->readpage
> > can I implement jffs2_readpages to do so?
> > The problem I feel is (if I have understood correctly)
> > To read more pages at one shot, we need to anyway read the 
> > jffs2_raw_inode header first and then calculate the lenth to read, will 
> > it give me more performance than what is existing?
> > regards
> > payagond
> 
> JFFS2 reads maximum 3 2K NAND pages at a time, although very rarely.
> Mostly it reads one page if compression is enabled.

And isn't a performance gain only seen if the data is actually
in sequential pages on flash?  For fresh filesystems, that may be true.
But over time, the data for each individual file can scatter everywhere.

josh



More information about the linux-mtd mailing list