On Mon, Mar 27, 2006 at 07:50:20AM +0200, Andi Kleen wrote: > > A 2GB x86-64 desktop system here is currently swapping itself to death after > a few days uptime. > > Some investigation shows this: > > inode_cache 1287 1337 568 7 1 : tunables 54 27 8 : slabdata 191 191 0 > dentry_cache 1867436 1867643 208 19 1 : tunables 120 60 8 : slabdata 98297 98297 0 > Would it be possible to try out this experimental patch which gets some stats from the dentry cache ? Patch 1: dcache_stats.patch - shows some dentry cache stats in /proc/meminfo. Patch 2: cache_shrink_stats.patch (currently in mm) - applies on top of the 1st patch; shows the of shrinking of slab caches in /proc/slabinfo. The patches are against 2.6.16-git8. I have just verified that these work on x86_64. Haven't really stress tested to check if they hold for reasonable time. Regards, Bharata.