From: Tom Flynn (flynnt++at++engr.sgi.com)
Date: 03/11/2003 18:08:32
This appears to be a bug. It also appears to be specific to .flt files.
If I change your code to load and delete .pfb files, no memory leaking
occurs. as a temporary work-around until this is fixed, you can try
pfconv'ing your .flt files to .pfbs and loading and deleting the pfb
files.
-tom
On Tue, 11 Mar 2003, Terry Welsh wrote:
> I've got a little test app that loads up an .flt file and then pfDeletes it over and over again. On Performer 2.5 on Irix, the memory consumption for this test app grows to about 9,000K in one minute and then stops growing. On Performer 3.0 on RedHat 7.2 (gcc2), the memory grows to consume all the RAM and swap space on my machine after about 5 minutes. By that point the test app is reported as using 0% of the CPU (it starts out at about 80%), and the system is bogged down so I can barely use my mouse.
> I'm working a geometry paging scheme that suffers similar problems. I would have to run it all night to use up all my swap space (maybe I'll do that tonight to see what happens). Just watching it for a while, it never seems to free any memory.
> Shouldn't pfDelete give me back some memory like on Irix? Or am I missing something?
>
>
> #include <iostream.h>
> #include <pf/pfChannel.h>
> #include <pf/pfNode.h>
> #include <pfutil.h>
> #include <pfdu.h>
>
> int main (int argc, char *argv[]){
> pfInit();
>
> // fork processes
> pfMultiprocess(PFMP_DEFAULT);
> pfConfig();
>
> pfFilePath(".:../../flt");
>
> pfNode* root;
>
> pfPipe *p = pfGetPipe(0);
> pfPipeWindow *pw = new pfPipeWindow(p);
>
> pw->setWinType(PFPWIN_TYPE_X);
> pw->setSize(400, 300);
> pw->open();
>
> while(1){
> pfSync();
>
> root = pfdLoadFile("anyfile.flt");
> printf("loaded\n");
> pfDelete(root);
> printf("deleted\n");
>
> pfFrame();
> }
>
> pfExit();
> return 0;
> }
>
>
> Terry
>
> _____________________________________________________________
> Get Your Free Email at http://www.totalmail.com
>
> _____________________________________________________________
> Select your own custom email address for FREE! Get you++at++yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>
-- "Mongooses are famous for their snake-fighting ability, and are almost always victorious because of their speed, agility, and timing and also because of their thick coat."
This archive was generated by hypermail 2b29 : Tue Mar 11 2003 - 18:08:35 PST