help with dynamic-space-size

Greg Bennett <[email protected]> Sun, 1 Feb 2026 20:55:41 -0500
Newsgroups gmane.lisp.steel-bank.general
Message-ID <[email protected]>
Running sbcl-2.5.10 with emacs 29.3, under linux mint 22.2.

I need to increase the size of the heap to (try to avoid) a Heap 
exhausted error.

If I open sbcl in a terminal with   sbcl --dynamic-space-size 3072

and then evaluate (/ (dynamic-space-size) (expt 1024 3)), I get 3 as the 
(expected) value.

My .emacs.d/init.el contains just these 2 lines:

(load (expand-file-name "~/quicklisp/slime-helper.el"))
(setq inferior-lisp-program "sbcl --dynamic-space-size 3072")

There is no .emacs file.

Starting emacs and then issuing M-x slime gets me a cl-user prompt.
(lisp-implementation-type) and (lisp-implementation-version) return the 
expected values

(/ (dynamic-space-size) (expt 1024 3))  returns 1, just as it does with 
(setq inferior-lisp-program "sbcl")

I should like to know how the set dynamic-space-size in my 
initialization within emacs.

Thanks for any advice/assistance

Greg Bennett


_______________________________________________
Sbcl-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sbcl-help