Find the answer to your Linux question:
Results 1 to 2 of 2
Hi any one knows if there is a command that I pass another one as parameter and it gives me the maximum memory usage of such program? I could use ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3

    Smile Max memory usage


    Hi any one knows if there is a command that I pass another one as parameter and it gives me the maximum memory usage of such program? I could use ps or vmstat to get the instantaneous time and and keep pooling, until the end of the process to see the maximum memory used by my program... but that would be imprecise and quite resource intensive.

    I would like something like time, for example. I want for memory what time does for execution time, of a program (e.g $ time grep -R test * .

    Any one knows something like that, or how could I do that? And NO, I don't have the source codes .

    Best regards...

    Daniel

  2. #2
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3

    Cool

    OK, I am sorry for being stupid.

    A colleague just pointed me out that time does that also .

    Thanks

    Daniel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •