Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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...


  2. #2


    OK, I am sorry for being stupid.

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



Posting Permissions

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