<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top"><p dir="ltr">Hi,</p>
<p dir="ltr">You can you a heap profiler to check heap usage for example massif.</p>
<p dir="ltr">Massif is a tool under valgrind package. You can research on valgrind more for other helpful tools as well. Memcheck is bydefault in usage in valgrind.</p>
<p dir="ltr">Massif gives data in form of a graph which can be printed using ms_print command. Graph tells about various allocations done from heap and at what time.</p>
<p dir="ltr">Hope this helps</p>
<p dir="ltr">Kind regards,<br>
Aaditya Gavandalkar</p>
</td></tr></table>            <div id="_origMsg_">
                <div>
                    <br />
                    <div>
                        <div style="font-size:0.9em">
                            <hr size="1">
                            <b>
                                <span style="font-weight:bold">From:</span>
                            </b>
                            Vegard Nossum &lt;vegard.nossum@gmail.com&gt;;                            <br>
                            <b>
                                <span style="font-weight:bold">To:</span>
                            </b>
                            Kumar Amit Mehta &lt;gmate.amit@gmail.com&gt;;                                                     <br>
                            <b>
                                <span style="font-weight:bold">Cc:</span>
                            </b>
                             &lt;kernelnewbies@kernelnewbies.org&gt;;                                                                             <br>
                            <b>
                                <span style="font-weight:bold">Subject:</span>
                            </b>
                            Re: Memory profiling tools for Linux Kernel                            <br>
                            <b>
                                <span style="font-weight:bold">Sent:</span>
                            </b>
                            Fri, Apr 4, 2014 8:34:54 AM                            <br>
                        </div>
                            <br>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td valign="top">On 4 April 2014 02:45, Kumar Amit Mehta &lt;<a shape="rect" ymailto="mailto:gmate.amit@gmail.com" href="javascript:return">gmate.amit@gmail.com</a>&gt; wrote:<br clear="none">&gt; I was looking for some tools for memory profiling for Linux Kernel. I<br clear="none">&gt; I wish to analyze the memory usage statistics by comparing the results<br clear="none">&gt; (with and without the usage of Lookaside caches) by the consumer (Say<br clear="none">&gt; a certain driver).I found some tools such as kmemcheck[1] and KEDR [2]<br clear="none">&gt; but before I go further and explore these tools, I was wondering if<br clear="none">&gt; somebody has already used these tools to acquire similar statistics<br clear="none">&gt; or I should try out some other tool.<br clear="none">&gt;<br clear="none">&gt; [1] <a shape="rect" href="https://www.kernel.org/doc/Documentation/kmemcheck.txt"
 target="_blank">https://www.kernel.org/doc/Documentation/kmemcheck.txt</a><br clear="none">&gt; [2] <a shape="rect" href="http://kedr.berlios.de/" target="_blank">http://kedr.berlios.de/</a><br clear="none"><br clear="none">Hi,<br clear="none"><br clear="none">kmemcheck will probably not help you with memory usage statistics. It<br clear="none">may help you find certain programming errors (use after free, use of<br clear="none">uninitialised memory, etc.).<br clear="none"><br clear="none">The slab allocator exports some information about memory allocations<br clear="none">that may or may not give you what you need. Try e.g. &#39;sudo slabtop&#39;.<br clear="none"><br clear="none"><br clear="none">Vegard<div class="yqt7651618228" id="yqtfd69052"><br clear="none"><br clear="none">_______________________________________________<br clear="none">Kernelnewbies mailing list<br clear="none"><a shape="rect" ymailto="mailto:Kernelnewbies@kernelnewbies.org"
 href="javascript:return">Kernelnewbies@kernelnewbies.org</a><br clear="none"><a shape="rect" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br clear="none"></div></td>
                                    </tr>
                                </tbody>
                            </table>
                    </div>
                </div>
            </div>