Setting RMCL Memory Size

Andrew Shalit <[email protected]>
Newsgroups gmane.lisp.mcl.general
Message-ID <[email protected]>
If you start up  the new RMCL application and call ROOM, you will see  
it report the total size of the lisp heap as being a
few percent less than 1GB rather than a few percent less than 100MB as  
it did previously.

Welcome to Macintosh Common Lisp Version 5.2!
? (room)
                  Total Size                Free                   Used
Lisp Heap:  1026313016 (978.8 MB)  1022691456 (975.3 MB)     3621560  
(3.454 MB)
Stacks:       13377324 (12.76 MB)    13373764 (12.75 MB)        3560  
(3 kB)
Static:           5400 (5 kB)               0 (0)               5400  
(5 kB)
?

The size of the lisp heap is controlled by the value contained in an  
"NSIZ" resource; by default, this is  now 1GB.  You can try to save
a copy of RMCL that uses a larger value by doing something like:

(let* ((handle (#_NewHandle 4)))
  (setf (%hget-unsigned-long handle 0) (ash 3 29)) ; 1.5 GB
  (save-application "bigger-rmcl" :resources `((,handle "NSIZ" 1))))


We don't know if it's possible to use a lisp heap that's much bigger  
than 1GB under Rosetta;  the Rosetta library has to coexist in memory  
with the PPC application that it's emulating, and Rosetta likes to be  
able to use free memory to cache things. The OSX version of 32-bit PPC  
CCL tries to reserve a little under 2GB for its heap and that value is  
too large when trying to run it under Rosetta; the 1GB value that RMCL  
now uses works, and we don't know exactly where the maximum lies  
besides "somewhere between 1 and 2 GB."

_______________________________________________
info-mcl mailing list
[email protected]
http://clozure.com/mailman/listinfo/info-mcl
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.