How to detect slab memory leak
mulyadi.santosa at gmail.com
Tue Dec 18 02:42:13 EST 2018
On Sun, Dec 16, 2018 at 1:25 PM Naruto Nguyen <narutonguyen2018 at gmail.com>
> Hi everyone,
> When using slabtop to display the cache size growing, I see that
> kmalloc-1024 and kmalloc-256 are increasing about 200MB after 1 hour.
> Is there any way to detect which kernel components cause this slab
> Thanks a lot,
I think you can do it by instrumenting call to kmalloc(). These days, eBPF
is the hot stuff to try for this matter. See if it fits yours too.
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
Freelance Linux trainer and consultant
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kernelnewbies