Re: Gradual Growth of Memory Use?

"David McClain (as dbm at refined-audiometrics dot com)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
So, maybe Win/11 is just one big memory leak?

I just ran my system for data reviewing on the iMac M1 system. Speeded up by an enormous factor, running the equivalent of 2 hours of data acquisition - this system does everything that the main data acquisition system does, but reads its data from a disk file instead of the ADC.

After 2 hours of equiv processing, the memory footprint in LWM 8.1 has remained at 250-300 MB, bouncing back and forth due to GC. Oh! I do see it climbing very slightly over time, now up to 290-320 MB after the equivalent of 4 hours of data collection.

The LWM image starts out about twice the size of LWW image, but it grows really much more slowly over time. Same source code on both systems.



> On Mar 15, 2025, at 12:25, David McClain (as dbm at refined-audiometrics dot com) <[email protected]> wrote:
> 
> I did a test. I have a background logo image converted from a disk image file. I keep that cached so that the conversion to internal form only happens once. It will be free’d at LWW exit. 
> 
> But if the explorer.exe is using any kind of stack allocation, it is possible that this image could be standing in the way of freeing any additional images. So I disabled the background logo.
> 
> That did not appear to make any difference to the memory accumulation.
> 
> 
>> On Mar 15, 2025, at 12:21, David McClain <[email protected]> wrote:
>> 
>> I don’t know the answer to that. 
>> 
>> I would have to keep track of which pane has an image constructed for it, for re-use. And then any resizing or background drawing on the pane would have to reconstruct the image, wouldn’t it? 
>> 
>> So it seems not very useful to cache an image for any panes.
>> 
>> 
>> 
>>> On Mar 15, 2025, at 11:57, Yuri Davidovsky <[email protected]> wrote:
>>> 
>>> 
>>> 
>>>> On 15 Mar 2025, at 19:53, David McClain (as dbm at refined-audiometrics dot com) <[email protected]> wrote:
>>>> 
>>>> So it looks like resources are being requested from Win/11 and not actually being freed up.
>>> 
>>> Is it possible to reuse the image objects? In a similar fashion your data acquisition buffers are reused.
>> 
> 
> 
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> [email protected]
> http://www.lispworks.com/support/lisp-hug.html


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.