Tracing allocators of virtual memory and main memory

SAHIL sahil.agg15 at gmail.com
Wed Mar 11 21:39:32 EDT 2015


Hi Nicholas

Yeah right, pidstat which read /proc gives me VSZ ans RSS but i need to backtrace when VSZ/RSS is high which indicates process is allocating memory which it is not even using. 

And to modify the question i need to analyze allocations per thread, using /proc will it will also include VSZ RSS of parent.?

Regards
Sahil Aggarwal

> On Mar 11, 2015, at 11:00 PM, Nicholas Krause <xerofoify at gmail.com> wrote:
> 
> 
> 
>> On March 11, 2015 12:07:29 PM EDT, sahil aggarwal <sahil.agg15 at gmail.com> wrote:
>> Hi all
>> 
>> If i want to trace the allocators of virtual memory and main memory of
>> process using ftrace on which functions i need to enable the probe.?
>> 
>> Currently i have enabled sys_mmap,sys_brk for virtual allocations and
>> mm_page_alloc, kmalloc, kmem_cache_alloc for main memory allocation.
>> Will this give me whole picture of virtual and main memory
>> allocations.?
>> 
>> Thanks
>> Regards
>> Sahil
>> 
>> ______
> Greetings Sachil, 
> The best way to do this is find 
> out the PID of your application 
> and look for it in /proc as there
> should be a directory with the
> information your looking for. 
> Nick
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 
> -- 
> Sent from my Android device with K-9 Mail. Please excuse my brevity.



More information about the Kernelnewbies mailing list