Starting sbcl gives me the following error:
(running SBCL from: .)
mmap: Cannot allocate memory
ensure_space: failed to validate 8589869056 bytes at 0x1000000000
(hint: Try "ulimit -a"; maybe you should increase memory limits.)
Please suggest.
Cross wrote:
> Starting sbcl gives me the following error:
> (running SBCL from: .)
> mmap: Cannot allocate memory
> ensure_space: failed to validate 8589869056 bytes at 0x1000000000
> (hint: Try "ulimit -a"; maybe you should increase memory limits.)
>
> Please suggest.
I think your two options are to run sbcl with the command-line option
--dynamic-space-size and specify a smaller heap, or to run `ulimit -m
kbytes` (where 1024*kbytes exceeds 8589869056) in the shell before
starting sbcl.
- Daniel
Cross wrote:
> Starting sbcl gives me the following error:
> (running SBCL from: .)
> mmap: Cannot allocate memory
> ensure_space: failed to validate 8589869056 bytes at 0x1000000000
> (hint: Try "ulimit -a"; maybe you should increase memory limits.)
>
> Please suggest.
Could you attach the output of issuing "ulimit -a" at the command prompt?
Cross wrote:
> Alexander Lehmann wrote:
>>
>> Could you attach the output of issuing "ulimit -a" at the command prompt?
> Here it is:
>
> core file size (blocks, -c) 0
> data seg size (kbytes, -d) unlimited
> scheduling priority (-e) 0
> file size (blocks, -f) unlimited
> pending signals (-i) 8115
> max locked memory (kbytes, -l) 64
> max memory size (kbytes, -m) 860964
> open files (-n) 1024
> pipe size (512 bytes, -p) 8
> POSIX message queues (bytes, -q) 819200
> real-time priority (-r) 0
> stack size (kbytes, -s) 8192
> cpu time (seconds, -t) unlimited
> max user processes (-u) 8115
> virtual memory (kbytes, -v) 2037680
> file locks (-x) unlimited
Hm, in my case "max locked memory", "max memory size" and "virtual memory" are
all report "unlimited".
Why not give it a try like this:
# ulimit -l unlimited -m unlimited -v unlimited
Also, should this work, don't forget to add an appropriate line to your .profile
or the like.
C> virtual memory (kbytes, -v) 2037680
SBCL tries to reserve 8 GB of memory for itself (i guess you have 64-bit
system),
while system only allows 2 GB per application.
you need to either allow more memory to be reserved via ulimit,
or tweak SBCL to reserve less memory, via --dynamic-space-size option