From: Terry Welsh (mogumbo++at++totalmail.com)
Date: 03/11/2003 14:50:55
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
This archive was generated by hypermail 2b29 : Tue Mar 11 2003 - 14:51:08 PST