I am suspecting a memory leak in a kernel module that does layer 2 switching of data packets.

In the vmstat -m output the Num and Total keeps going up for the kmalloc-512..

kmalloc-512               15232  15264    512     16

Is this a clear indication of leak in the kernel or can there be false positives ?

Is there a way to trace the allocations of memory from different buckets of kmalloc ?

-Santhosh.