Re: detecting kernel mem leak

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Lameter
Date: Tuesday, April 29, 2008 - 9:58 am

On Tue, 29 Apr 2008, Pekka Enberg wrote:


For slub: Just enable debugging and then do a cat on 
/sys/kernel/slab/<cachename>/allocs or frees to see where memory is 
allocated or freed.

 

If you run a report on a slabcache with f.e.

	slabinfo kmalloc-2048

and debugging is enabled then all functions that allocate and free objects 
in kmalloc-2048 are listed.

Just doing
	slabinfo

list all caches with the number of objects allocated.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
detecting kernel mem leak, sancelot, (Tue Apr 29, 2:41 am)
Re: detecting kernel mem leak, Pekka Enberg, (Tue Apr 29, 5:46 am)
Re: detecting kernel mem leak, Christoph Lameter, (Tue Apr 29, 9:58 am)