Caching of reads

David Woodhouse dwmw2 at
Fri Nov 16 10:48:29 EST 2001

icampbell at said:
>  It seems as if reads from a JFFS2 file system are not being cached as
> we would expect, for instance this small script:

> while true ; do sleep 1; done

> causes a read from the flash every time the sleep is executed. This is
> true even if the fs is mounted read only. 

Strange. JFFS2 doesn't do caching - that's supposed to be handle by the 
Linux VFS/VM. But set CONFIG_JFFS2_FS_DEBUG=1 and 
echo 9 > /proc/sys/kernel/printk, then see what it's actually being asked 
to read each time.


More information about the linux-mtd mailing list