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



_______________________________________________
Axiom-developer mailing list
Axiom-developer@nongnu.org
http://lists.nongnu.org/mailman/listinfo/axiom-developer

Reply via email to