sbcl因heap size太小致使的程序包加载失败问题

clml在加载时,出现CLML.LAPACK-ENVIRONMENT::DYNAMIC-HEAP-SPACE-TOO-SMALL报错,

缘由:默认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

相关文章
相关标签/搜索