Does anybody have a small selfcontained example of using
multithreading with cmucl under Linux (RH6.2)?
The documentation that follows cmucl says:
CMU CL provides a multi-processing extension via threads,
currently available only on the x86 port, based on the model
implemented by the CLIM graphical user interface manager for
Common Lisp.
And this is not too informative.
--
Jon Haugsand
Norwegian Computing Center, <http://www.nr.no/engelsk/>
<···················@nr.no> Pho: +47 22852608 / +47 22852500,
Fax: +47 22697660, Pb 114 Blindern, N-0314 OSLO, Norway
On 26 Nov 2000 13:07:34 +0100, Jon Haugsand <············@nr.no> wrote:
> Does anybody have a small selfcontained example of using
> multithreading with cmucl under Linux (RH6.2)?
The file `mp-test.lisp' which comes with the CMU CL source distribution
provides some test code and examples for threads. See also
`multi-proc.lisp' in the same distribution.
> The documentation that follows cmucl says:
[...]
> And this is not too informative.
Unfortunately, there is not much more information on this issue. Note that
the links to the sections of the CLIM manual about multiprocessing
mentioned in the current version of the EncyCMUCLopedia are stale. I will
update it real soon asap. In the meantime, you may find the CLIM user guide
(see sections B.2 and B.3 on threads and locks) here:
http://www.xanalys.com/software_tools/reference/lwl41/climuser/GUIDE_1.HTM
Paolo
--
EncyCMUCLopedia * Extensive collection of CMU Common Lisp documentation
http://cvs2.cons.org:8000/cmucl/doc/EncyCMUCLopedia/
* Paolo Amoroso
> On 26 Nov 2000 13:07:34 +0100, Jon Haugsand <············@nr.no> wrote:
>
> > Does anybody have a small selfcontained example of using
> > multithreading with cmucl under Linux (RH6.2)?
>
> The file `mp-test.lisp' which comes with the CMU CL source distribution
> provides some test code and examples for threads. See also
> `multi-proc.lisp' in the same distribution.
...
> http://www.xanalys.com/software_tools/reference/lwl41/climuser/GUIDE_1.HTM
Thanks a lot.
You don't happen to know if there are any bugs/difficultis with the
following rpm packages?
cmucl-2.4.17-1.i386.rpm
cmucl-extras-2.4.17-1.i386.rpm
After installing and startup I receive:
Error in allocating memory, please do "echo 1 > /proc/sys/vm/overcommit_memory" or get more memory+swap.
mmap: Cannot allocate memory
ensure_space: Failed to validate 1879048192 bytes at 0x48000000
And I assure you, there is plenty of space.
--
Jon Haugsand
Norwegian Computing Center, <http://www.nr.no/engelsk/>
<···················@nr.no> Pho: +47 22852608 / +47 22852500,
Fax: +47 22697660, Pb 114 Blindern, N-0314 OSLO, Norway
Jon Haugsand <············@nr.no> writes:
> * Paolo Amoroso
> > On 26 Nov 2000 13:07:34 +0100, Jon Haugsand <············@nr.no> wrote:
> >
> > > Does anybody have a small selfcontained example of using
> > > multithreading with cmucl under Linux (RH6.2)?
> >
> > The file `mp-test.lisp' which comes with the CMU CL source distribution
> > provides some test code and examples for threads. See also
> > `multi-proc.lisp' in the same distribution.
> ...
> > http://www.xanalys.com/software_tools/reference/lwl41/climuser/GUIDE_1.HTM
>
> Thanks a lot.
>
> You don't happen to know if there are any bugs/difficultis with the
> following rpm packages?
>
> cmucl-2.4.17-1.i386.rpm
> cmucl-extras-2.4.17-1.i386.rpm
>
> After installing and startup I receive:
>
> Error in allocating memory, please do "echo 1 > /proc/sys/vm/overcommit_memory" or get more memory+swap.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Looks like it is telling you what to do.
AFAIR, this is a Linux issue.
> mmap: Cannot allocate memory
> ensure_space: Failed to validate 1879048192 bytes at 0x48000000
>
>
> And I assure you, there is plenty of space.
Yes. But !Linux! does not want you to use it the way that the Lisp
system wants to.
Cheers
--
Marco Antoniotti =============================================================
NYU Bioinformatics Group tel. +1 - 212 - 998 3488
719 Broadway 12th Floor fax +1 - 212 - 995 4122
New York, NY 10003, USA http://galt.mrl.nyu.edu/valis
Like DNA, such a language [Lisp] does not go out of style.
Paul Graham, ANSI Common Lisp
Jon Haugsand <············@nr.no> writes:
> You don't happen to know if there are any bugs/difficultis with the
> following rpm packages?
>
> cmucl-2.4.17-1.i386.rpm
> cmucl-extras-2.4.17-1.i386.rpm
Others have already pointed out that CMU CL tells you what to do.
BUT: Newer releases of CMU CL have found another way around the
problem, so you might want to either download the current Debian
packages for cmucl (2.4.20 IIRC), and convert them to RPMs via alien
(or extract them by hand: ar p xxx.deb data.tar.gz | tar xzfC - / ),
or you might want to download the new RPM packages that Douglas
T. Crosher has put up on the CMU CL FTP site (follow links from
http://www.cons.org/cmucl/).
Regs, Pierre.
--
Pierre R. Mai <····@acm.org> http://www.pmsf.de/pmai/
The most likely way for the world to be destroyed, most experts agree,
is by accident. That's where we come in; we're computer professionals.
We cause accidents. -- Nathaniel Borenstein
* Pierre R. Mai
> Jon Haugsand <············@nr.no> writes:
> Others have already pointed out that CMU CL tells you what to do.
Yes. Thanks to all.
> BUT: Newer releases of CMU CL have found another way around the
> problem, so you might want to either download the current Debian
> packages for cmucl (2.4.20 IIRC), and convert them to RPMs via alien
> (or extract them by hand: ar p xxx.deb data.tar.gz | tar xzfC - / ),
> or you might want to download the new RPM packages that Douglas
> T. Crosher has put up on the CMU CL FTP site (follow links from
> http://www.cons.org/cmucl/).
Thanks for these pointers.
--
Jon Haugsand
Norwegian Computing Center, <http://www.nr.no/engelsk/>
<···················@nr.no> Pho: +47 22852608 / +47 22852500,
Fax: +47 22697660, Pb 114 Blindern, N-0314 OSLO, Norway
On 26 Nov 2000 19:24:23 +0100, Jon Haugsand <············@nr.no> wrote:
> cmucl-2.4.17-1.i386.rpm
> cmucl-extras-2.4.17-1.i386.rpm
[...]
> Error in allocating memory, please do "echo 1 > /proc/sys/vm/overcommit_memory" or get more memory+swap.
> mmap: Cannot allocate memory
> ensure_space: Failed to validate 1879048192 bytes at 0x48000000
This is a known issue related to glibc changes. Earlier CMU CL binaries
relied on an undocumented glibc feature that changed incompatibly between
subsequent glibcs. You may either do as suggested by the error message, or
get later binaries--e.g. 2.4.19--of the Debian CMU CL distribution.
Paolo
--
EncyCMUCLopedia * Extensive collection of CMU Common Lisp documentation
http://cvs2.cons.org:8000/cmucl/doc/EncyCMUCLopedia/
* Paolo Amoroso
> The file `mp-test.lisp' which comes with the CMU CL source distribution
> provides some test code and examples for threads. See also
> `multi-proc.lisp' in the same distribution.
Downloaded cmucl-18b.source.tgz from
ftp://ftp2.cons.org/pub/lisp/cmucl/release/ but could not find any
mp-test.lisp.
--
Jon Haugsand
Norwegian Computing Center, <http://www.nr.no/engelsk/>
<···················@nr.no> Pho: +47 22852608 / +47 22852500,
Fax: +47 22697660, Pb 114 Blindern, N-0314 OSLO, Norway
On 26 Nov 2000 19:49:09 +0100, Jon Haugsand <············@nr.no> wrote:
> Downloaded cmucl-18b.source.tgz from
> ftp://ftp2.cons.org/pub/lisp/cmucl/release/ but could not find any
> mp-test.lisp.
Hmmm... I seemed to remember that the file was there. You may try the
sources of the Debian version of CMU CL. Check the CVS tree to be sure. Let
me know if you are still unable to find the file.
Paolo
--
EncyCMUCLopedia * Extensive collection of CMU Common Lisp documentation
http://cvs2.cons.org:8000/cmucl/doc/EncyCMUCLopedia/