Increasing read request size in JFFS2

Artem Bityutskiy dedekind at infradead.org
Fri Sep 14 07:38:27 EDT 2007


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.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)




More information about the linux-mtd mailing list