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

原创
2018/05/27 22:49
阅读数 354

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

原因:默认sbcl内存为128Mb,有时无法满足软件包的应用。通过查询sbcl的启动参数选项

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/>.

解决方式:

$ sbcl --dynamic-space-size 4gb

若是用emacs + slime环境,则在.emacs文件中添加配置:

;;;
(setq inferior-lisp-program "sbcl --dynamic-space-size 4gb")   
;;;

 

参考:

http://www.sbcl.org/manual/

http://aikotobaha.blogspot.com/2016/02/clmllapack-environmentdynamic-heap.html

https://sourceforge.net/p/maxima/mailman/message/32891534/

 

 

 

 

 

 

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部