[lugip] losing memory

Thomas Pfau pfau at nbpfaus.net
Sun Sep 14 14:59:35 EDT 2008


I've been searching internet for kernel buffer allocation information 
and found some information on the slab allocator.  Information about 
kernel buffers can be found in /proc/slabinfo.

I wrote a new script to monitor changes in this file.  It scans the file 
every 30 seconds.  When it sees a change in one of the caches, the 
script shows the cache name, the new number of pages allocated, and the 
change in pages allocated.  Here's its output over the last several minutes.

      size-2048 761 (+1)
skbuff_head_cache 73 (+1)
      size-2048 764 (+3)
        size-32 10 (+1)
      size-2048 768 (+4)
      size-2048 771 (+3)
      size-2048 775 (+4)
skbuff_head_cache 74 (+1)
      size-2048 776 (+1)
      size-2048 781 (+5)
      size-2048 785 (+4)
skbuff_head_cache 75 (+1)
      size-2048 787 (+2)
      size-2048 791 (+4)
      size-2048 792 (+1)
      size-2048 796 (+4)
skbuff_head_cache 76 (+1)
      size-2048 797 (+1)
      size-2048 799 (+2)
      size-2048 800 (+1)
      size-2048 804 (+4)
      size-2048 807 (+3)
skbuff_head_cache 77 (+1)
      size-2048 809 (+2)
      size-2048 811 (+2)

Sure looks like a leak to me.  Any idea how to debug slab leaks?  Looks 
like there's a patch that enables this but I doubt this kernel has the 
patch applied.


More information about the Lugip mailing list