lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


lua-l,

I have been looking at how to manage/minimize memory usage in a C/Lua process/program running on Linux. I have observed some non-deterministic behavior with Lua’s collectgarbage() in “freeing” up memory for other processes to be able to use.

Details may be found here:
https://stackoverflow.com/questions/65375638/in-lua-is-there-a-limitation-to-the-number-of-objects-tables-that-can-be-determ

Specifically, is there a way to ensure all unused memory is freed from within Lua?

Thanks in advance.