Re: Memory profiling tools for Linux Kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4 April 2014 02:45, Kumar Amit Mehta <gmate.amit@xxxxxxxxx> wrote:
> I was looking for some tools for memory profiling for Linux Kernel. I
> I wish to analyze the memory usage statistics by comparing the results
> (with and without the usage of Lookaside caches) by the consumer (Say
> a certain driver).I found some tools such as kmemcheck[1] and KEDR [2]
> but before I go further and explore these tools, I was wondering if
> somebody has already used these tools to acquire similar statistics
> or I should try out some other tool.
>
> [1] https://www.kernel.org/doc/Documentation/kmemcheck.txt
> [2] http://kedr.berlios.de/

Hi,

kmemcheck will probably not help you with memory usage statistics. It
may help you find certain programming errors (use after free, use of
uninitialised memory, etc.).

The slab allocator exports some information about memory allocations
that may or may not give you what you need. Try e.g. 'sudo slabtop'.


Vegard

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux