jffs2 memory usage and OOM killer

Matthieu CASTET matthieu.castet at parrot.com
Mon May 28 03:50:46 EDT 2007


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.


Matthieu

PS : The ML keep think that the "Message has a
suspicious header", even after several retry.



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jffs2_oom
Url: http://lists.infradead.org/pipermail/linux-mtd/attachments/20070528/7622e8a5/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jffs2_oom1
Url: http://lists.infradead.org/pipermail/linux-mtd/attachments/20070528/7622e8a5/attachment-0001.pl 


More information about the linux-mtd mailing list