我的linux VPS上无用的SBCL:ensure_space:无法分配n个字节

问题描述 投票:1回答:1

我不能在我的VPS上运行SBCL:

mmap: wanted 1040384 bytes at 0x20000000, actually mapped at 0x715fa2145000
ensure_space: failed to allocate 1040384 bytes at 0x20000000
(hint: Try "ulimit -a"; maybe you should increase memory limits.)

搜索给了我:

我有510MB的免费交换,3GB的免费RAM。

更新:SBCL 1.2.4.debian,Debian 8.2。

有这个问题的解决方案吗?

顺便说一句,你如何部署lisp应用程序?

谢谢 !

ps:我不能使用Roswell来安装其他实现(它基于SBCL)。解决方法是使用CCL(CCL Debian package)或Docker(daewok/lisp-devel)。

common-lisp sbcl
1个回答
2
投票

一种解决方案是在VPS上全局禁用ASLR:

sudo bash -c "echo 0 > /proc/sys/kernel/randomize_va_space"

之后,SBCL应该运行良好。

© www.soinside.com 2019 - 2024. All rights reserved.