gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Re: GCL space woes?


From: Camm Maguire
Subject: [Gcl-devel] Re: GCL space woes?
Date: 19 May 2005 18:35:23 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings!

Robert Boyer <address@hidden> writes:

> Camm,
> 
> That's splendid work on the 2 word cons!!!!!
> 
> In pursuit of some sort of memory leak possibly related to hash consing,
> below are two short GCL transcripts illustrating curiosities for your
> perusal.
> 
> The first GCL transcript shows a very easy way to make (room t) print out 
> garbage,
> suggesting that there has been some corruption.  The garbage is the
> 
>        -52427 pages available
> 

This needs fixing, but how is not clear to me yet.  Here is the
expression for available pages:

(real_maxpage-1786-new_holepage-2*tm_table[t_relocatable].tm_npage-real_maxpage/32)

real_maxpage = 262144
page(heap_end) = 1786
new_holepage = 26214
2*tm_table[t_relocatable].tm_npage = 278380

So what this is saying is what we new before, that you don't have
enough room to GC, as you need twice the relblock, etc.  

How should we present this information?

Take care,

> The second GCL transcript shows, in my dumb opinion, a memory leak.  We ought
> to have garbage collected the first array and then been able to allocate the
> second array, but GCL claims it is out of space.
> 
> It was wonderful to meet you!
> 
> Bob
> 
> 
> -------------------------------------------------------------------------------
> % /projects/hvg/compBio/tools/gcl-2.6.6/xbin/gcl
> GCL (GNU Common Lisp)  2.6.6 CLtL1    Mar  8 2005 22:20:59
> Source License: LGPL(gcl,gmp), GPL(unexec,bfd)
> Binary License:  GPL due to GPL'ed components: (BFD UNEXEC)
> Modifications of this banner must retain notice of a compatible license
> Dedicated to the memory of W. Schelter
> 
> Use (help) to get some basic information on how to use GCL.
> 
> >(room t)
> 
>    210/211    40.2%         CONS RATIO LONG-FLOAT COMPLEX STRUCTURE
>      2/28     22.0%         FIXNUM SHORT-FLOAT CHARACTER RANDOM-STATE 
> READTABLE SPICE
>     47/49     72.4%         SYMBOL STREAM
>      1/2      12.8%         PACKAGE
>      1/38     50.0%         ARRAY HASH-TABLE VECTOR BIT-VECTOR PATHNAME 
> CCLOSURE CLOSURE
>     16/32     83.9%         STRING
>      3/27     97.3%         CFUN BIGNUM
>      6/157    87.8%         SFUN GFUN VFUN AFUN CFDATA
> 
>    320/512                  contiguous (78 blocks)
>        26214                hole
>        10485   0.0%         relocatable
> 
>        286 pages for cells
>      37305 total pages
>     205143 pages available
>      19696 pages in heap but not gc'd + pages needed for gc marking
>     262144 maximum pages
> 
> >(progn (make-hash-table :size 70000000) nil)
> 
> NIL
> 
> >(room t)
> 
>    210/211    40.2%         CONS RATIO LONG-FLOAT COMPLEX STRUCTURE
>      2/28     22.4%         FIXNUM SHORT-FLOAT CHARACTER RANDOM-STATE 
> READTABLE SPICE
>     47/49     72.3%         SYMBOL STREAM
>      1/2      12.8%         PACKAGE
>      1/38     50.7%         ARRAY HASH-TABLE VECTOR BIT-VECTOR PATHNAME 
> CCLOSURE CLOSURE
>     16/32     83.8%         STRING
>      3/27     97.3%         CFUN BIGNUM
>      6/157    87.8%         SFUN GFUN VFUN AFUN CFDATA
> 
>    320/512                  contiguous (78 blocks)
>        26214                hole
>        139270  98.2%       8relocatable
> 
>        286 pages for cells
>     166090 total pages
>     -52427 pages available
>     148481 pages in heap but not gc'd + pages needed for gc marking
>     262144 maximum pages
> 
> -------------------------------------------------------------------------------
> 
> /projects/hvg/compBio/tools/gcl-2.6.6/xbin/gcl
> GCL (GNU Common Lisp)  2.6.6 CLtL1    Mar  8 2005 22:20:59
> Source License: LGPL(gcl,gmp), GPL(unexec,bfd)
> Binary License:  GPL due to GPL'ed components: (BFD UNEXEC)
> Modifications of this banner must retain notice of a compatible license
> Dedicated to the memory of W. Schelter
> 
> Use (help) to get some basic information on how to use GCL.
> 
> >(progn (make-hash-table :size 70000000) nil)
> 
> NIL
> 
> >(progn (make-hash-table :size 70000000) nil)
> 
> Unrecoverable error: Can't allocate.  Good-bye!.
> Abort
> 
> 
> 

-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]