[clug] time's memory options don't work
Chris Smart
mail at christophersmart.com
Wed Jun 17 01:43:29 GMT 2009
Hey all,
I'm trying to work out how much memory a process is using from start
to finish. Do to that I'm using GNU time (not bash) /usr/bin/time
which can apparently tell me with %K:
"Average total memory use of the process in Kbytes."
I.e.
/usr/bin/time -f %K [command]
Problem is that it just doesn't work. I always get a value of zero. In
fact all memory related options always present zero as the result.
Does anyone know why or how to fix it?
Thanks!
Chris
More information about the linux
mailing list