Re: Easy way to determine how much memory a program used?
and what about "free -m" ??
it gives output like this
~:$ free -m
total used free shared buffers cached
Mem: 885 583 302 0 58 319
-/+ buffers/cache: 204 680
Swap: 1906 0 1906
perhaps it may be useful for you : )
On 9/15/05, Adam Funk <email@example.com> wrote:
> Frank Gevaerts wrote:
> > On Wed, Sep 14, 2005 at 07:20:01PM +0100, Adam Funk wrote:
> >> Is there anything like "time command args" that will run "command args"
> >> and then print out the maximum amount of memory it used?
> > Normally, /usr/bin/time -v, but apparently since 2.4 kernels a lot of
> > information is not available.
> As you say, it doesn't work any more. I tried that with various commands on
> two machines (2.6.11 and 2.4.something) and consistently got this:
> Average shared text size (kbytes): 0
> Average unshared data size (kbytes): 0
> Average stack size (kbytes): 0
> Average total size (kbytes): 0
> Maximum resident set size (kbytes): 0
> Average resident set size (kbytes): 0
> because would be exactly the sort of information I'm looking for.
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org
debian sarge, kernel 2.6.8