jffs2 memory usage and OOM killer

Matthieu CASTET matthieu.castet at parrot.com
Wed May 30 06:01:46 EDT 2007


Matthieu CASTET a écrit :
> Hi,
> 
> On a system with 16 MB of ram  (6700KB free at the time of mounting), I
> have a 50 MB jffs2 partition with a big file on it (30 MB). This file
> was uploaded with xmodem, and a dump of the partition show that the
> inode node are very small (128 o).
> 
> 
> After the file was uploaded on the jffs2 partition and a reboot :
> 
> if I do a rw mount, the partition is mounted, but jffs2 memory usage
> increase until it eats all the memory and the system die (see jffs2_oom1
> attachement).
> 
> if I do a ro mount, the partition is mounted (use 2MB of RAM), but if I
> list directory, jffs2 start to eat all memory until OOM killer is called
> (see jffs2_oom attachement).
> 
> 
> I know that jffs2 eats some memory, but I am impressed that it can eat
> so much memory.
> 
Using git jffs2, allow to mount the fs without OOM. Now jfss2 eats 3MB.


Matthieu




More information about the linux-mtd mailing list