From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-04-07 02:29:05
On Wednesday 22 March 2006 17:11, Jürgen Hunold wrote:
> Hi !
> I'm encountering severe memory problems on win32.
> I've attached the results of running bjam (current anon CVS HEAD) from the
> same directory on linux and win32 with -d+10.
> The linux run eats up 272 Mb.
> The correspondung win32 run needs roughly 1.4 GB of memory (Note the
> overflow in the [TOTAL] column at the end of the memory dump.
> A quick scan of the win32 dump shows:
> 730730707 FILE_DIRSCAN
That's 700M for dirscan? We must be leaking something somewhere.
Unfortunately, I looked at the code and don't see any apparent leaks so far.
And my windows box is smoked so I can't try anything myself.
As a quick check, can you go to 'debug.h' and define PROFILE_ENTER and
PROFILE_EXIT as empty and recompile, and try again. This way we'll be sure
it's not profiling code itself that cause problems.
After that, I'd go to filent.c, function file_dirscan and wrap some parts of
and maybe this will give us the exact code block that leaks.
Sorry for being not very helpfull, I hope to install Windows on another box
really soon now.
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk