Re: Memory leak in the ramfs file system

Linus Torvalds (torvalds@transmeta.com)
29 Mar 2001 15:48:30 -0800


In article <200103292206.f2TM6sJ10808@zero.monsters.org>,
Stephen L Johnson <sjohnson@monsters.org> wrote:
>
>A group of us from the handhelds.org site think that we have found a memory
>leak in the ramfs file system. After a long period of create and deleting
>small files in a mounted ramfs partition we have substantially less freemem.
>The problem has been confirmed on 2.4.2 on an i386 and StormARM ports.

What does /proc/slabinfo say? The most likely leak is a dentry leak or
an inode leak, and both of those should be fairly easy to see in the
slab info (dentry_cache and inode_cache respectively).

Obviously, it could be a data page leak too, but such a leak should be
easy to see by creating a few big files and deleting them..

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/