|
From: Novick, I. <iva...@et...> - 2006-09-19 19:59:15
|
Hi, I am running a program interactively under memcheck and what to gauge if memory is leaking during the execution before I end memcheck and look at the results. I can see the size of memcheck increasing in "top" during execution. Does this imply an increase in memory usage of my program or could there be other reasons for memcheck to grow in memory as execution continues? Thanks, Ivan |
|
From: Bryan M. <om...@br...> - 2006-09-20 09:41:42
|
Ivan, memcheck keeps a pool of recently free()d blocks so that there is more chance of spotting illegal reads and writes to memory that has been freed. As such, it will keep growing until the pool hits a predetermined size at which point it will start to recycle the memory, oldest blocks first. If your program is in fact leaking, the size will never reach an upper limit and you program will run until it exhausts available memory. You might want to try Omega as one of the big features is instant (as they happen) reporting of memory leaks. I am on the verge of posting what I believe will be the final beta so you might want to hang on and wait for that rather than the version linked on the web page but please feel free to try it out and watch for the upcoming announcement (hopefully this weekend). The web page is: www.brainmurders.eclipse.co.uk/omega.html Please post back your experiences - it would be nice to know how you get on and that includes any problems you have. Hope this helps, Bryan "Brain Murders" Meredith Novick, Ivan wrote: > Hi, > > I am running a program interactively under memcheck and what to gauge if > memory is leaking during the execution before I end memcheck and look at > the results. > > I can see the size of memcheck increasing in "top" during execution. > Does this imply an increase in memory usage of my program or could there > be other reasons for memcheck to grow in memory as execution continues? > > Thanks, > Ivan > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users |