Re: [Libmesh-users] memory profiling

2013-05-30 Thread Cody Permann
On Thu, May 30, 2013 at 9:57 AM, Jed Brown wrote: > Cody Permann writes: > > > Yeah, I guess I need to spend more time with Massif. I tried it last > week > > for the first time as well and was overwhelmed by the amount of output. > > From what I've seen just scanning over the output is a deta

Re: [Libmesh-users] memory profiling

2013-05-30 Thread Jed Brown
Cody Permann writes: > Yeah, I guess I need to spend more time with Massif. I tried it last week > for the first time as well and was overwhelmed by the amount of output. > From what I've seen just scanning over the output is a detailed log of > when and how much memory is used. Is there a way

Re: [Libmesh-users] memory profiling

2013-05-30 Thread Manav Bhatia
On Thu, May 30, 2013 at 10:58 AM, Kirk, Benjamin (JSC-EG311) < benjamin.kir...@nasa.gov> wrote: > > This is basically what I do, but I use valgrind's massif tool: > http://valgrind.org/docs/manual/ms-manual.html > > This wraps malloc and reports exactly what memory is used by what data > structure

Re: [Libmesh-users] memory profiling

2013-05-30 Thread Cody Permann
Yeah, I guess I need to spend more time with Massif. I tried it last week for the first time as well and was overwhelmed by the amount of output. From what I've seen just scanning over the output is a detailed log of when and how much memory is used. Is there a way to flip that tree upside-down

Re: [Libmesh-users] memory profiling

2013-05-30 Thread Kirk, Benjamin (JSC-EG311)
Here is a sample of what massif can provide: #--- snapshot=76 #--- time=34259946158 mem_heap_B=81869326 mem_heap_extra_B=2917770 mem_stacks_B=0 heap_tree=detailed n7: 81869326 (heap allocation functions) malloc/new/new[], --alloc-fns, etc. n3: 31253406 0xF0712EE: PetscMallocAlign

Re: [Libmesh-users] memory profiling

2013-05-30 Thread Cody Permann
On Thu, May 30, 2013 at 7:45 AM, Manav Bhatia wrote: > Hi, > > Is there a way to get the memory footprint of individual datastructures > in the library? For example, if I want to know the size of a DofMap, and a > Mesh? > > Thanks, > Manav > I'd certainly really like to hear thoughts on this

Re: [Libmesh-users] memory profiling

2013-05-30 Thread Kirk, Benjamin (JSC-EG311)
On May 30, 2013, at 9:32 AM, Cody Permann wrote: >> >> Hi, >> >>Is there a way to get the memory footprint of individual datastructures >> in the library? For example, if I want to know the size of a DofMap, and a >> Mesh? >> >> Thanks, >> Manav >> > > I'd certainly really like to hear

[Libmesh-users] memory profiling

2013-05-30 Thread Manav Bhatia
Hi, Is there a way to get the memory footprint of individual datastructures in the library? For example, if I want to know the size of a DofMap, and a Mesh? Thanks, Manav -- Introducing AppDynamics Lite, a free troubl