S
ServantOfTheSecretFire
Hi there,
I wrote my first Python program this weekend, Conway's Game of Life,
and I used Tkinter for the graphics. I thought I had done something
wrong when I saw the memory consumption, so I wrote the simplest Tk
program I could, and yep, it takes about 40MB of memory! I'm using Red
Hat Linux 9.0 and recent versions of the software. Please look at the
output below, and tell me if I am confused...
~/python: cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)
~/python: rpmquery python
python-2.2.2-26
~/python: rpmquery tk
tk-8.3.5-88
~/python: rpmquery tkinter
tkinter-2.2.2-26
~/python: cat hello.py
#!/usr/bin/python
import Tkinter as Tk
root = Tk.Tk()
Tk.Button(text='Quit', command=root.quit).pack()
root.mainloop()
~/python: python hello.py &
[1] 25633
~/python: ps u
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
sjm 23897 0.0 0.2 4980 1088 pts/0 S 12:18 0:00 -csh
sjm 25633 4.8 7.2 41576 37352 pts/0 S 22:35 0:00 python
hello.py
sjm 25634 0.0 0.1 2616 660 pts/0 R 22:35 0:00 ps u
I wrote my first Python program this weekend, Conway's Game of Life,
and I used Tkinter for the graphics. I thought I had done something
wrong when I saw the memory consumption, so I wrote the simplest Tk
program I could, and yep, it takes about 40MB of memory! I'm using Red
Hat Linux 9.0 and recent versions of the software. Please look at the
output below, and tell me if I am confused...
~/python: cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)
~/python: rpmquery python
python-2.2.2-26
~/python: rpmquery tk
tk-8.3.5-88
~/python: rpmquery tkinter
tkinter-2.2.2-26
~/python: cat hello.py
#!/usr/bin/python
import Tkinter as Tk
root = Tk.Tk()
Tk.Button(text='Quit', command=root.quit).pack()
root.mainloop()
~/python: python hello.py &
[1] 25633
~/python: ps u
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
sjm 23897 0.0 0.2 4980 1088 pts/0 S 12:18 0:00 -csh
sjm 25633 4.8 7.2 41576 37352 pts/0 S 22:35 0:00 python
hello.py
sjm 25634 0.0 0.1 2616 660 pts/0 R 22:35 0:00 ps u