We want to measure memory consumption of a driver application during run time as well as idle time.
We found showmem utility which gives these details, when checked out we see no changes in the memory consumption any time i.e. the values seen during runtime/idle are same.
Do we have any tool which meets above expectation?
or any suggestion on usage of showmem are welcome
above usage of showmem is at run time that is when the IO is going on the UMASS devices and even then i do not see any changes in heap memory (Some times i see changes in devb-umass)
this application mounts the UMASS devices
It will be great if i get an idea(please guide if any doc available) how showmem or pidin gets the information of process/app memory
While you can see changes in the HEAP memory with the IDE, there is (AFAIK) no command line utility that can see this. The IDE queries the processes internal heap manager through a special interface, while pidin simply shows the pages allocated to the process. It is entirely possible (in fact it is common) for heap usage to go up and down, while the pages allocated to the process remain constant.
Fortunately, if you are checking for leaks, the only thing that is usually important is whether the pages allocated to the process continue to grow, so pidin should work for you in practice.