Still waiting for swap prefetch
Posted Jul 26, 2007 17:11 UTC (Thu) by
vmole (guest, #111)
In reply to:
Still waiting for swap prefetch by arjan
Parent article:
Still waiting for swap prefetch
That is so much crap.
$ cat hello.py
import time
print "hello, world"
time.sleep(30)
% python hello.py &
[1] 25243
hello, world
$ 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.
(
Log in to post comments)