Looks like we have two big leaked memory producers:
freeMetaVarsEnv/tiNonRecImpl/tiImplGroups/tcBindGroup/tiProgram/tiModules/doModules’/typeCheckGraph/parseFiles/buildLibrary/main
freeMetaVarsEnv/tiExpl/tcBindGroup/tiProgram/tiModules/doModules’/typeCheckGraph/parseFiles/buildLibrary/main
Any ideas? I'll keep digging.
--
Taral
On Fri, Sep 04, 2009 at 02:03:14PM -0700, Taral wrote:
Looks like we have two big leaked memory producers:
freeMetaVarsEnv/tiNonRecImpl/tiImplGroups/tcBindGroup/tiProgram/tiModules/doModules’/typeCheckGraph/parseFiles/buildLibrary/main
freeMetaVarsEnv/tiExpl/tcBindGroup/tiProgram/tiModules/doModules’/typeCheckGraph/parseFiles/buildLibrary/main
Any ideas? I'll keep digging.
Hmmm.... I am not sure why that is leaking memory, but in order to build up the list of free meta vars, it has to traverse the entire envioronment, perhaps keeping track of the meta vars incrementally as we extend the environment will help the issue. John -- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/
On Fri, Sep 4, 2009 at 2:36 PM, John Meacham
Hmmm.... I am not sure why that is leaking memory, but in order to build up the list of free meta vars, it has to traverse the entire envioronment, perhaps keeping track of the meta vars incrementally as we extend the environment will help the issue.
After typechecking, unevaluated thunks from freeMetaVarsEnv are
causing us to retain 187MB of data. boxyMatch is responsible for
another 19MB. Perhaps some strictness is in order here?
--
Taral
On Fri, Sep 4, 2009 at 2:03 PM, Taral
freeMetaVarsEnv/tiNonRecImpl/tiImplGroups/tcBindGroup/tiProgram/tiModules/doModules’/typeCheckGraph/parseFiles/buildLibrary/main
This breaks out thus: freeMetaVarsEnv: 7.4% of alloc freeMetaVarsEnv/freeMetaVars: 4.3% of alloc freeMetaVarsEnv/unVar/$f11: 8.5% of alloc
freeMetaVarsEnv/tiExpl/tcBindGroup/tiProgram/tiModules/doModules’/typeCheckGraph/parseFiles/buildLibrary/main
This breaks out thus:
freeMetaVarsEnv: 9.6% of alloc (itself, not inherited)
freeMetaVarsEnv/freeMetaVars: 5.5% of alloc
freeMetaVarsEnv/unVar/$f11: 11% of alloc
Add it up and you get 46.3% of allocation. How big are these envs?
--
Taral
participants (2)
-
John Meacham -
Taral