Re: Getting process's memory usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, May 17, 2008 at 12:48:06 +1000, Manal Helal wrote:
> I can not run with valgrind, I am trying to run it as a release
> versionto get the fastest and least memory consumption,

Well, you won't get any meaningful timings, but massif tool is not that
memory hungry as the default memcheck and gives you the memory
consumption.

> because it is a multi-process application with mpich, press a key
> method works only with the first process, and skips on the other, so I
> am not sure the values I am getting at top is the true memory values,
> or that's after the main process memory was erased for the other
> processes,
> 
> I tried with getchar, and with scanf, both stop only one time for the
> main process

What about inserting an endless loop at the end?

Peter

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux