Re: Memory leak in 2.4.19-pre7(-ac2)?\?

Jan Harkes (jaharkes@cs.cmu.edu)
Sat, 4 May 2002 19:08:30 -0400


On Sat, May 04, 2002 at 04:20:08PM +0200, Roy Sigurd Karlsbakk wrote:
> Below is output from free and /proc/meminfo. Attached is a screen shot
> from the 'gtop' Memory usage output. They show a computer with uptime 2
> days and 2 hours. It looks like quite a large chunk is 'missing'...

Did you check /proc/slabinfo? The 6th column lists the number of 4KB
pages used by each 'slabcache'. The following script shows meminfo as
well as the 2 (typically) large slab-users.

Jan

#!/bin/sh
cat /proc/meminfo
awk '/^inode_cache/ {printf("Inode slab:\t%6d kB\n", 4 * $6);} /^dentry_cache/ {printf("Dentry slab:\t%6d kB\n", 4 * $6);}' < /proc/slabinfo

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