Hi Lutz,
perhaps you can clear me up ;-)
(391 268435456 342 1 0 2048 9016 7)
> (/ (sys-info 1) 65535)
4096
That means that the current loaded newlisp can handle 4096 Megabytes of data?
Question:
* How do I check during runtime the available amount of memory free for newlisp
inside my newlisp application? (I want to do a dynamic check on the working
memory i have in newlisp)
Norman.
Memory question
Memory question
-- (define? (Cornflakes))
yes that is the maximim theoretical amount of data which can be handled by a 32-bit application.hat means that the current loaded newlisp can handle 4096 Megabytes of data?
A Unix system will use virtual memory and swap, so there is no way to find out, except for running 'top' or similar tools, which will tell you the amount of memory swapped, etc. Even if no free RAM is available for newLISP at a given moment, a memory manager might swap out other apps to make RAM available.How do I check during runtime the available amount of memory free for newlisp inside my newlisp application?
The comand line -m switch in newLISP can limit the total amount used.
Lutz
Yes, function pointers are 64-bit when compiled as a 64-bit application, only half the cells fit into the 2MB memory specified by '-m 2'.Is this behaviour correct for 64bit platforms?
Lutz
ps: at the moment when no -m option is used, the max-cells number is not correctly reported in 'sys-info'. This is fixed in 9.0.17.