axiom-developer
[Top][All Lists]
Advanced

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

[Axiom-developer] Re: Calling gbc before init-memory-config in restart (


From: Vanuxem Grégory
Subject: [Axiom-developer] Re: Calling gbc before init-memory-config in restart (bookvol5)
Date: Fri, 06 Oct 2006 21:45:40 +0200

After reflexion, since this function (restart) is "the real root of the
world" and no one will use this function in an axiom session forget this
mail. Furthermore it's not nice to call the garbage collector at the
beginning of a session.

Greg


Le vendredi 06 octobre 2006 à 18:25 +0200, Vanuxem Grégory a écrit :
> Hello,
> 
> What about "garbage collecting" (gbc t) in the 'restart' function
> (bookvol5) just before calling 'init-memory-config'.
> 
> In fact I can not load more than 16 libraries in .axiom.input when I
> call 'restart'. These libraries are not completely loaded, just some
> ')lib something'. I obtain this error:
> 
>    >> System error:
>    Can't set the limit for relocatable blocks to 1000.
> 
> but if I issue (gbc t) before calling 'restart' that works.
> 
> Here is the output of 'room' if I do not call 'gbc'. No operation has
> been performed, just 16 ')lib':
> 
> 
>   1479/1479   83.3%       1 CONS BIGNUM RATIO COMPLEX STRUCTURE
>    145/200    49.4%         FIXNUM SHORT-FLOAT LONG-FLOAT CHARACTER
> RANDOM-STATE READTABLE SPICE
>    499/500   100.0%         SYMBOL STREAM PATHNAME CCLOSURE CLOSURE
>      1/8      41.3%         PACKAGE
>     12/400    85.4%         ARRAY HASH-TABLE VECTOR BIT-VECTOR
>     21/100    99.3%         CFUN CFDATA
>    295/500    90.5%         SFUN STRING GFUN VFUN AFUN
> 
>   2110/3000                 contiguous (420 blocks)
>        1954                 hole
>        1676   55.7%       2 relocatable
> 
>       2452 pages for cells
>       8192 total pages
>     494772 pages available
>      21324 pages in heap but not gc'd + pages needed for gc marking
>     524288 maximum pages
> 
> If I issue a (restart) I get the error above but if I "garbage collect"
> the output of 'room' is:
> 
>   1479/1479   76.2%       1 CONS BIGNUM RATIO COMPLEX STRUCTURE
>    145/200    44.1%         FIXNUM SHORT-FLOAT LONG-FLOAT CHARACTER
> RANDOM-STATE READTABLE SPICE
>    500/750    99.4%       1 SYMBOL STREAM PATHNAME CCLOSURE CLOSURE
>      1/8      41.3%         PACKAGE
>     12/400    63.3%         ARRAY HASH-TABLE VECTOR BIT-VECTOR
>     21/100    99.1%         CFUN CFDATA
>    295/500    79.2%         SFUN STRING GFUN VFUN AFUN
> 
>   2110/3000               1 contiguous (274 blocks)
>        2000                 hole
>        1676   11.4%       2 relocatable
> 
>       2453 pages for cells
>       8239 total pages
>     494771 pages available
>      21278 pages in heap but not gc'd + pages needed for gc marking
>     524288 maximum pages
> 
> And I can call 'restart'.
> 
> I tested to increase the number of relocatable blocks with
> (init-memory-config ... :rpages 2000 ...) in 'restart' but this does not
> solve the problem, I encounter the same problem later (after calling
> 'restart' 4 times).
> 
> This request is specific and not really important, it's just for
> convenience (and I will not need to maintain a patch :-).
> 
> Greg





reply via email to

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