From mboxrd@z Thu Jan 1 00:00:00 1970 From: gmate.amit@gmail.com (Kumar Amit Mehta) Date: Fri, 4 Apr 2014 15:09:36 +0300 Subject: Memory profiling tools for Linux Kernel In-Reply-To: <1396601345.99327.YahooMailAndroidMobile@web162703.mail.bf1.yahoo.com> References: <1396601345.99327.YahooMailAndroidMobile@web162703.mail.bf1.yahoo.com> Message-ID: <20140404120936.GC12452@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Fri, Apr 04, 2014 at 01:49:05AM -0700, aaditya.gavandalkar at yahoo.com wrote: > Hi, > > You can you a heap profiler to check heap usage for example massif. > > 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. > > 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. > > Hope this helps Unfortunately, valgrind won't work for Linux Kernel :(