lkml.org 
[lkml]   [2001]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjecticache > dentry cache. memory leak? Re: Fwd: Re: memory usage - dentry_cache
> 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/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.030 / U:5.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site