Re: Easy way to determine how much memory a program used?

From: Adam Funk (a24061_at_yahoo.com)
Date: 09/15/05

  • Next message: roberto: "Re: Easy way to determine how much memory a program used?"
    Date: Thu, 15 Sep 2005 09:48:08 +0100
    To: debian-user@lists.debian.org
    
    

    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 listmaster@lists.debian.org
    

  • Next message: roberto: "Re: Easy way to determine how much memory a program used?"

    Relevant Pages

    • Re: Easy way to determine how much memory a program used?
      ... Frank Gevaerts ha scritto: ... and then print out the maximum amount of memory it used? ...
      (Debian-User)
    • Easy way to determine how much memory a program used?
      ... Is there anything like "time command args" that will run "command args" ... and then print out the maximum amount of memory it used? ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
      (Debian-User)
    • understanding ulimit -r -m -v
      ... -the maximum amount of virtual memory ... fputs("mallocating 4 gigs...\n", stderr); ...
      (Debian-User)
    • 2 or 4GB memory?
      ... A friend whose judgment I normally trust says I'll never need more than ... the 2.0GB memory that comes with the computer. ... maximum amount of memory? ...
      (microsoft.public.windowsxp.hardware)
    • Re: memory allocation in unix
      ... "We" would be the people you're aksing for help, i.e., the people ... > determine the amount of memory it can give a program? ... The kernel doesn't arbitrarily allocate some maximum amount ... Rich Teer, SCNA, SCSA, author of "Solaris Systems Programming" ...
      (comp.unix.programmer)