icache > dentry cache. memory leak? Re: Fwd: Re: memory usage - dentry_cache

From: Studierende der Universitaet des Saarlandes (masp0008@stud.uni-sb.de)
Date: Wed Apr 11 2001 - 08:16:32 EST


> To possbile answer my own question:
> if I do a can on /proc/slabinfo I get on the machine with "MISSING" memory:
> ----
> slabinfo - version: 1.1 (SMP)
> --- cut out
> inode_cache 920558 930264 480 116267 116283 1 : 124 6
> --- cut out
> dentry_cache 557245 638430 128 21281 21281 1 : 252 126
>
You've found the missing memory: the fifth number is the number of pages
allocated for a cache: 125000 pages or 500 MB.

The first number is the number of allocated objects, the second number
is the total number of objects (the difference are preallocated
dentries/inodes to speed up further allocations and internal
fragmentation)
the third number is the size in bytes of one structure, then the number
of pages in use, and the total number of pages (the difference are
freeable pages that can be free by the memory pressure code)

The odd thing is that the inode cache is nearly twice as large as the
dentry cache.
Does that indicate a memory leak?

--
	Manfred
-
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/



This archive was generated by hypermail 2b29 : Sun Apr 15 2001 - 21:00:15 EST