[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Jul 22 17:13:32 1993 
Subject:memory de-allocation 
From:Helen McCall - PML Mast2 
Volume-ID:930722.01 

I have been having a little (!!!) problem with memory allocation and de-allocation.

I have found that my image analysis code takes up a lot of memory when running. This can easily be observed from a unix csh using ps and pstat -s.

I have sectioned my code so that theoretically I can syscancel duff code and reload new versions.

I have also used pwm_kill_window to kill the graphics windows before opening afresh.

I have also tried using sysgarbage() to reclaim any memory.

However: an examination of (for instance) swap space used, via pstat -s, shows that the memory allocation INCREASES (!!AAAARRGGHHH!!) after any of these "memory reclaiming" functions has been called.

Because of this; if I load a program, and then try to clear it out to make room for another, the second or third program refuses to run properly; and I get those horrible error messages on the console asking me if I have enough swap space etc, and fairly often I experience the dreaded "death" in sunview.

Does anyone know of a simple way of persuading poplog to genuinely clear out all the unwanted garbage?

The version used is 14.0.

Helen.