Re: GetMemInfo and GetProcInfo

From: Edmond Offermann <edmondoffermann_at_yahoo.com>
Date: Thu, 8 Mar 2007 10:27:08 -0800 (PST)


Hi Chiara,

The returned values are in kBytes . Have a look at /proc/meminfo file on Unix.

Eddy
--- Chiara Zampolli <Chiara.Zampolli_at_bo.infn.it> wrote:

> Dear all,
>
> I am using the TSystem GetMemInfo and GetProcInfo methods to
> monitor
> the CPU memory usage during the execution of a macro. What I would
> expect to find is something of the order of hundreds of MB for the
> used
> memory (at least this is what I get using "top"), while what I get
> with,
> for example,
>
> gSystem->GetMemInfo(&memInfo);
> cout << " Mem Used = " << memInfo.fMemUsed << endl; //returning
> value
> in MB
>
> is of the order of tens of GB. Probably I have not fully understood
> what
> these method return... Could anyone help me in using correctly these
> methods?
>
> Thank you a lot in advance.
> Best Regards,
> Chiara
>
>
Received on Thu Mar 08 2007 - 19:27:16 CET

This archive was generated by hypermail 2.2.0 : Thu Mar 08 2007 - 23:50:01 CET