You are not logged in.
How do I measure static memory allocation from something that I run in a shell?
For example if I want to run gzip and measure how much memory its using during compression?
Is there anything like 'time' for memory measurements?
Offline
The GNU version of 'time' can do this. Install the package 'extra/time'. To avoid the bash builtin, call 'time' using the full path:
$ /usr/bin/time -f "%Mkb MaxMem" tar -xf md5deep.tar.gz
1048kb MaxMem
Offline