From: Cross
Subject: help with sbcl
Date: 
Message-ID: <gnc0is$1f4i$1@adenine.netfront.net>
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.

From: D Herring
Subject: Re: help with sbcl
Date: 
Message-ID: <49999a83$0$3337$6e1ede2f@read.cnntp.org>
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
From: Alexander Lehmann
Subject: Re: help with sbcl
Date: 
Message-ID: <gnc1cj$646$1@online.de>
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?
From: Cross
Subject: Re: help with sbcl
Date: 
Message-ID: <gnc41u$1k1o$1@adenine.netfront.net>
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
From: Alexander Lehmann
Subject: Re: help with sbcl
Date: 
Message-ID: <gnc6et$aph$1@online.de>
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.
From: Alex Mizrahi
Subject: Re: help with sbcl
Date: 
Message-ID: <4999a7ce$0$90273$14726298@news.sunsite.dk>
 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