[GRASS-user] Python in GRASS 7 - memory consumption

Jarek Jasiewicz jarekj at amu.edu.pl
Fri Jul 23 03:41:44 EDT 2010


Hi

May someone confirm (Ubuntu 9.10, 64 bits, Sperafish, 4GB RAM)?

Zooming, panning with any map (even small vector) consume more and more 
memory for Python. After more or less 50 moves I had almost 500 MB 
memory consumed by Python.

After restarting wx GUI memory is realesed
Jarek

Here are top command results:

before starting wx GUI

top - 09:24:21 up  2:53,  3 users,  load average: 0.00, 0.00, 0.00
Tasks: 208 total,   2 running, 206 sleeping,   0 stopped,   0 zombie
Cpu(s):  7.1%us,  1.8%sy,  0.0%ni, 91.0%id,  0.0%wa,  0.2%hi,  0.0%si,  
0.0%st
Mem:   4057592k total,  2233288k used,  1824304k free,   253628k buffers
Swap: 19535000k total,        0k used, 19535000k free,  1130304k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  
COMMAND          
 3548 jarekj    20   0  594m  61m  21m S    6  1.5   3:52.57 
exaile           
 3899 jarekj    20   0  221m  16m  11m S    3  0.4   0:04.33 
gnome-terminal   
 1818 jarekj    20   0  265m 6240 4528 S    2  0.2   3:07.45 
pulseaudio       
 ...


AFTER STARTING g.gui
top - 09:26:48 up  2:56,  3 users,  load average: 0.00, 0.00, 0.00
Tasks: 208 total,   2 running, 206 sleeping,   0 stopped,   0 zombie
Cpu(s):  6.0%us,  3.2%sy,  0.0%ni, 89.1%id,  1.5%wa,  0.2%hi,  0.0%si,  
0.0%st
Mem:   4057592k total,  2227976k used,  1829616k free,   254016k buffers
Swap: 19535000k total,        0k used, 19535000k free,  1131056k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  
COMMAND          
 3548 jarekj    20   0  594m  61m  21m S    6  1.5   3:59.21 
exaile           
 1477 root      20   0  899m  47m  17m R    3  1.2   2:48.50 
Xorg             
 3899 jarekj    20   0  221m  16m  11m S    3  0.4   0:05.47 
gnome-terminal   
....


AFTER LOADING MAP (archsites)
top - 09:28:10 up  2:57,  3 users,  load average: 0.00, 0.00, 0.00
Tasks: 208 total,   1 running, 207 sleeping,   0 stopped,   0 zombie
Cpu(s):  6.6%us,  2.8%sy,  0.0%ni, 90.6%id,  0.0%wa,  0.0%hi,  0.0%si,  
0.0%st
Mem:   4057592k total,  2232216k used,  1825376k free,   254176k buffers
Swap: 19535000k total,        0k used, 19535000k free,  1133920k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  
COMMAND          
 3548 jarekj    20   0  594m  61m  21m S    5  1.5   4:02.76 
exaile           
 3899 jarekj    20   0  221m  16m  11m S    4  0.4   0:06.31 
gnome-terminal   
 1477 root      20   0  899m  47m  17m S    3  1.2   2:50.54 
Xorg             
 1818 jarekj    20   0  265m 6240 4528 S    2  0.2   3:11.88 
pulseaudio       
 2542 jarekj    20   0  527m  46m  21m S    1  1.2   0:19.73 
nautilus         
 5112 jarekj    20   0  609m  97m  37m S    1  2.5   0:06.22 python   
//Memory consumption 2.5 % (65 MB)       
.....
    
AFTER more or less 50 zoom-panning operations
top - 09:31:35 up  3:00,  3 users,  load average: 0.00, 0.00, 0.00
Tasks: 208 total,   2 running, 206 sleeping,   0 stopped,   0 zombie
Cpu(s):  4.4%us,  2.3%sy,  0.0%ni, 93.2%id,  0.2%wa,  0.0%hi,  0.0%si,  
0.0%st
Mem:   4057592k total,  2285596k used,  1771996k free,   254720k buffers
Swap: 19535000k total,        0k used, 19535000k free,  1134940k cached

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  
COMMAND          
 5112 jarekj    20   0  676m 156m  38m S   32 9.5   0:41.41 python      
//Memory consumption 9.5 % (480 MB)    
......


More information about the grass-user mailing list