Re: Gradual Growth of Memory Use?

"Tim Bradshaw (as tfb at tfeb dot org)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
Are you running and logging the output of (room :full) over time?  I don't know how you would do this on Windows but there must be some program which also will let you log the memory usage that the OS sees of a program.  Doing both of those for a couple of cycles will at least give you some clues.  You can use sweep-all-objects / sweep-gen-num-objects to poke at everything that is alive.

I suppose it's possible the LW runtime has a leak which would not show up in ROOM.  I'd be a bit surprised though, so if it doesn't show up in ROOM it's likely something you're calling.

--tim

> On 12 Mar 2025, at 12:17, David McClain (as dbm at refined-audiometrics dot com) <[email protected]> wrote:
> 
> My daily data acquisition system now runs about 24 hours between failures. The symptoms are ever increasing memory use, starting at 130 MB and growing to 1.5 GB, and then DAC-read failures where samples are erratically and consistently dropped, causing growing distortions of the measured items.
> 
> I’m doing (HCL:GC-GENERATION T) every time through the outer loop, about once per 15 sec. Memory buffers for DAC reading were initially established in Windows/11 and locked down by the system, yet during these later acquisitions the system acts like the locked buffers have been paged out, causing excess delay in arriving for use by the underlying MMIO system of Windows/11.
> 
> My normal mode of operation has been to acquire data each day in two groups. First is several hours surrounding Sunrise, and second, several hours surrounding Sunset. Those contain the most interesting events. The system normally goes haywire around 4 am, at which time I simply shut it down, exit the Lisp system, and then restart from cold. 
> 
> My assumption is that HCL:GC-GENERATION affects all running threads in the system, and not just the one thread performing the GC. Maybe that is mistaken?
> 
> - DM
> 
> _______________________________________________
> 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.