Ehvince
Ehvince

Reputation: 18375

Useless SBCL on my linux VPS: ensure_space: failed to allocate n bytes

I can not run SBCL on my VPS:

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

A search gives me:

I have 510MB of free swap, 3GB of free RAM.

update: SBCL 1.2.4.debian, Debian 8.2.

Is there a solution to this problem ?

and btw, how do you deploy lisp apps ?

Thanks !

ps: I can not use Roswell to install other implementations (it is based on SBCL). Workarounds would be to use CCL (CCL Debian package) or Docker (daewok/lisp-devel).

Upvotes: 2

Views: 293

Answers (1)

thodg
thodg

Reputation: 1767

One solution is to disable ASLR globally on the VPS :

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

After that SBCL should run fine.

Upvotes: 2

Related Questions