Hi Lisandro
This is a further analysis of the memory issue in PetClaw that Grady noticed and discussed here:
https://groups.google.com/forum/?fromgroups=#!msg/claw-users/P88vjftjJks/IEEWWj3lKcwJ
I've ran a simple script to show memory usage by DA object. The script is attached.
The DA size is 100^3 with 3 degree of freedom.. It is expected for the corresponding data to take
about 24MB.. However, the DA object takes so much space! 192MB.
There is a previous discussion about space allocated by DA:
http://scicomp.stackexchange.com/questions/2484/memory-footprint-for-dmda-objects-in-petsc
but the memory allocation there is more reasonable that what I'm seeing here..
This is the output of the script I ran (rss is the resident set size in bytes, i.e the RAM
memory occupied by the process)
program beginning
meminfo(rss=21331968L, vms=2534883328L)
After creating DA object 100^3 with dof=3
meminfo(rss=213979136L, vms=2726912000L)
After creating the corresponding global Vec
meminfo(rss=214073344L, vms=2726912000L)
After creating the corresponding local Vec
meminfo(rss=238084096L, vms=2750914560L)
Memory
meminfo(rss=238084096L, vms=2750914560L)
After calling garbage collector
meminfo(rss=238084096L, vms=2750914560L)
(I've also used the package resource and the tools memory_profiler and got similar
results)
The things I'm not sure of, is why DA will allocate all this memory? and
is it freed at some point?
Allocating a 2d DA with the same size 1000*2
will consume almost the same amount of memory.
Attached the script I ran
-Amal
--
You received this message because you are subscribed to the Google Groups "claw-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to claw-dev+u...@googlegroups.com.
To post to this group, send email to claw...@googlegroups.com.
Visit this group at http://groups.google.com/group/claw-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.