Tracing allocators of virtual memory and main memory

SAHIL sahil.agg15 at gmail.com
Wed Mar 11 23:10:50 EDT 2015


Hi validis

Actually i want to see how much total virtual pages it asked for and how many it actually used, how many were put to swap, how many major page faults happened and how many faults were handled from swap. 
In short whole page level analysis of thread. 

Regards
Sahil Aggarwal
Contact-9988439647

> On Mar 12, 2015, at 7:24 AM, Valdis.Kletnieks at vt.edu wrote:
> 
> On Thu, 12 Mar 2015 07:09:32 +0530, SAHIL said:
> 
>> 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.
> 
> Do you mean pages it isn't *currently* using, or has *never* used?
> 
> Also, note that VSZ refers to the virtual size, which may include
> pages currently out on swap, while RSS refers to actually resident pages.
> 
> And then there's the other great bugaboo, shared pages that are mapped by more
> than one process.
> 
> What exactly are you trying to do?



More information about the Kernelnewbies mailing list