Still waiting for swap prefetch
Posted Jul 26, 2007 17:11 UTC (Thu) by vmole
In reply to: Still waiting for swap prefetch
Parent article: Still waiting for swap prefetch
That is so much crap.
$ cat hello.py
print "hello, world"
% python hello.py &
$ ps l -C python
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
0 1000 25446 2688 17 0 3844 2256 - S pts/0 0:00 python hello.py
So that's 2M resident, 4M virtual. And it exagerates a simple "hello world" program, because I had to import the time module for sleep() so I could run ps. Most of it is the interpeter itself, so multiple python programs don't actually take 4M each.
Python isn't perfect - what language is? But don't make stuff up, it just ruins your argument.
to post comments)