緣由:默認sbcl內存爲128Mb,有時沒法知足軟件包的應用。經過查詢sbcl的啓動參數選項html
xxxxxx@xxxxxx-ThinkPad-E420:~/gitdb/clml$ sbcl --help Usage: sbcl [runtime-options] [toplevel-options] [user-options] Common runtime options: --help Print this message and exit. --version Print version information and exit. --core <filename> Use the specified core file instead of the default. --dynamic-space-size <MiB> Size of reserved dynamic space in megabytes. --control-stack-size <MiB> Size of reserved control stack in megabytes. Common toplevel options: --sysinit <filename> System-wide init-file to use instead of default. --userinit <filename> Per-user init-file to use instead of default. --no-sysinit Inhibit processing of any system-wide init-file. --no-userinit Inhibit processing of any per-user init-file. --disable-debugger Invoke sb-ext:disable-debugger. --noprint Run a Read-Eval Loop without printing results. --script [<filename>] Skip #! line, disable debugger, avoid verbosity. --quit Exit with code 0 after option processing. --non-interactive Sets both --quit and --disable-debugger. Common toplevel options that are processed in order: --eval <form> Form to eval when processing this option. --load <filename> File to load when processing this option. User options are not processed by SBCL. All runtime options must appear before toplevel options, and all toplevel options must appear before user options. For more information please refer to the SBCL User Manual, which should be installed along with SBCL, and is also available from the website <http://www.sbcl.org/>.
解決方式:git
$ sbcl --dynamic-space-size 4gb
如果用emacs + slime環境,則在.emacs文件中添加配置:web
;;; (setq inferior-lisp-program "sbcl --dynamic-space-size 4gb") ;;;
參考:bash
http://www.sbcl.org/manual/app
http://aikotobaha.blogspot.com/2016/02/clmllapack-environmentdynamic-heap.htmlide
https://sourceforge.net/p/maxima/mailman/message/32891534/oop