tew24 at spam.ac.uk
Wed Mar 21 14:48:16 CET 2007
> How do you know amount of memory used by Python?
> ps ? top or something?
$ ps up `pidof python2.5`
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
tew24 26275 0.0 11.9 257592 243988 pts/6 S+ 13:10 0:00 python2.5
"VSZ" is "Virtual Memory Size" (ie. total memory used by the application)
"RSS" is "Resident Set Size" (ie. non-swapped physical memory)
I'm at CAMbridge, not SPAMbridge
More information about the Python-list