(mem)


Display the status of the LISP memory.


This function reports on the status of the memory being used by LISP. The parameters reported by mem have the following meanings:

mem Meaning
Nodes Total number of nodes allocated to LISP.
Free nodes Number of nodes freed by garbage collection.
Segments Number of segments allocated.
Allocate Size of the segment.
Collections Number of garbage collections.

Example

Code Returns
(mem) Nodes: 33934
Free nodes: 1744
Segments: 40
Allocate: 514
Collections: 24

NOTE A node is 12 bytes.

The default size of a segment is 514 nodes. Use the alloc function to change the size of the segment. Use the expand function to change the number of segments.

Tell me about...

(gc)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language