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 ;).
OK, I am sorry for being stupid.
A colleague just pointed me out that time does that also :cool:.