![]() ![]() Peak memory usage of a linux/unix process Question Is there a tool that will run a command-line and report the peak RAM usage total? I'm imagining something analogous to /usr/bin/time Answer1 Here's a one-liner that doesn't require any external scripts or utilities and doesn't require you to start the process via another program like Valgrind or time, so you can use it for any process that's already running: grep VmPeak /proc/$PID/status (replace $PID with the PID of the process you're interested in) Answer2 Looks like /usr/bin/time does give you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |