UBI memory leak after creating and removing volumes
Artem Bityutskiy
dedekind at infradead.org
Tue Feb 17 10:24:51 EST 2009
On Tue, 2009-02-17 at 17:24 +0200, Artem Bityutskiy wrote:
> On Tue, 2009-02-17 at 14:33 +0000, John.Smith at pace.com wrote:
> > After 0, 1000 and 2000 iterations of a test of creating 2 UBI volumes,
> > then removing them, /proc/slab_allocators shows these three items
> > obviously increasing:
> >
> > inode_cache: 327 alloc_inode+0x140/0x148
> > inode_cache: 3329 alloc_inode+0x140/0x148
> > inode_cache: 6329 alloc_inode+0x140/0x148
> > (3 objects per iteration)
> >
> > sysfs_dir_cache: 1402 sysfs_new_dirent+0x2c/0xa0
> > sysfs_dir_cache: 15402 sysfs_new_dirent+0x2c/0xa0
> > sysfs_dir_cache: 29402 sysfs_new_dirent+0x2c/0xa0
> > (14 objects per iteration)
> >
> > dentry_cache: 669 d_alloc+0x30/0x214
> > dentry_cache: 3823 d_alloc+0x30/0x214
> > dentry_cache: 6823 d_alloc+0x30/0x214
> > (3 objects per iteration)
>
> Hmm, may be this is related to sysfs? Every time you create or delete
> a volume UBIFS creates/deletes sysfs entries. May be some are forgotten,
s/UBIFS/UBI/
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
More information about the linux-mtd
mailing list