On Mon, 25 Jul 2016, Camm Maguire wrote:

> If this is happening, then it is indeed a bug.  The intent is to use
> physical ram only by default unless the application itself insists on
> more.  Going into swap by default obviously defeats the performance goal
> of expanding the memory anyway.  You can look into this by
> 
> gcl
> >(room t)
> 
> and
> 
> maxima
> (..) :lisp (room t)
> (..) :lisp (setq si::*notify-gbc* t)
> (..) run_testsuite();
> (..) :lisp (room t)
> 
> If you can post the results for this on the 4/4 machine you describe
> above I can see if we have a problem.

Sorry for the late reply.

I attach the results for maxima, on a machine with 6GB RAM and 4GB swap.

I don't know how to interpret the results. In addition to the test you
requested, when I do this

grep "Committed_AS:" /proc/meminfo

I get this before running maxima:

Committed_AS:     254276 kB

and this after the test finished, before exiting maxima:

Committed_AS:    6878284 kB

I guess this does still not explain why Committed_AS: grows so much
when I'm actually trying to build the Debian package.

Thanks.
(sid)buildd@skywalker1:~$ maxima

Maxima 5.38.0 http://maxima.sourceforge.net
using Lisp GNU Common Lisp (GCL) GCL 2.6.12
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) 
(%i1) :lisp (room t)


    1828/1828        88.8%         CONS FIXNUM SHORT-FLOAT LONG-FLOAT 
BIT-VECTOR PATHNAME SPICE
     220/220         99.8%         ARRAY CHARACTER PACKAGE HASH-TABLE VECTOR 
RANDOM-STATE CCLOSURE CLOSURE
      67/67          56.7%         STRING BIGNUM RATIO COMPLEX
     399/399         98.8%         STRUCTURE
       1/1           65.2%         STREAM
      46/46          99.4%         CFUN CFDATA
     592/592         99.8%         SFUN SYMBOL READTABLE GFUN VFUN AFUN

    6400/6400                      contiguous (30 blocks)
         1173337                   hole
     216/216         99.9%         relocatable

      3153 pages for cells

      9769 total pages in core
      9769 current core maximum pages
       216 pages reserved for gc
   3519614 pages available for adding to core
     35556 pages reserved for core exhaustion

   3565155 maximum pages


Key:

WS: words per struct
UP: allocated pages
MP: maximum pages
FI: fraction of cells in use on allocated pages
GC: number of gc triggers allocating this type

word size:            64 bits
page size:            4096 bytes
heap start:           0xE81000
heap max :            0x368365000
shared library start: 0x0
cstack start:         0x0
cstack mark offset:   0 bytes
cstack direction:     downward
cstack alignment:     32 bytes
cstack max:           16001 bytes
immfix start:         0x8000000000000000
immfix size:          4611686018427387904 fixnums
physical memory:      1299534 pages
(%i1) 
(%i1) :lisp (setq si::*notify-gbc* t)


T
(%i1) 
(%i1) run_testsuite();

Running tests in rtest_rules: 103/103 tests passed
Running tests in rtestnset: 597/597 tests passed
Running tests in rtest1: 180/180 tests passed (not counting 1 expected errors)
Running tests in rtest1a: 27/27 tests passed
Running tests in rtest2: 144/144 tests passed (not counting 2 expected errors)
Running tests in rtest4: 93/93 tests passed
Running tests in rtest5: 
********************** Problem 78 ***************
Input:
describe(sin)


Result:

error-catch

This differed from the expected result:
true
start address -T 0x28ee010 start address -T 0x291e650 start address -T 
0x2925ce0 start address -T 0x292a1a0 start address -T 0x292e660 start address 
-T 0x2936f20 start address -T 0x293c010 start address -T 0x293fb70 
79/80 tests passed

The following 1 problem failed: (78)
Running tests in rtest6: 39/39 tests passed
Running tests in rtest6a: 62/62 tests passed
Running tests in rtest6b: 16/16 tests passed
Running tests in rtest7: 85/85 tests passed
Running tests in rtest9: 89/89 tests passed
Running tests in rtest9a: 76/76 tests passed
Running tests in rtest10: 62/62 tests passed (not counting 2 expected errors)
Running tests in rtest11: 181/181 tests passed
Running tests in rtest13: 23/23 tests passed
Running tests in rtest13s: 17/17 tests passed
Running tests in rtest14: [GC for 234547 CONS pages..(T=25).GC finished]
[GC for 188813 RELOCATABLE-BLOCKS pages..(T=19).GC finished]
[GC for 140149 STRUCTURE pages..(T=21).GC finished]
418/418 tests passed
Running tests in rtest15: [GC for 234547 CONS pages..(T=18).GC finished]
334/334 tests passed
Running tests in rtest16: 540/540 tests passed
Running tests in rtestode: 90/90 tests passed
Running tests in rtestode_zp: 30/30 tests passed
Running tests in rtest3: [GC for 235957 CONS pages..(T=22).GC finished]
149/149 tests passed
Running tests in rtest8: 164/164 tests passed
Running tests in rtest12: 79/79 tests passed (not counting 2 expected errors)
Running tests in rexamples: 137/137 tests passed
Running tests in rtesthyp: [GC for 16574 SFUN pages..(T=14).GC finished]
423/423 tests passed (not counting 6 expected errors)
Running tests in rtest_hypgeo: 291/291 tests passed (not counting 1 expected 
errors)
Running tests in rtestmt19937: 15/15 tests passed
Running tests in rtest_allnummod: 544/544 tests passed
Running tests in rtestconjugate: 136/136 tests passed
Running tests in rtestsum: 306/306 tests passed (not counting 4 expected errors)
Running tests in rtest_trig: 160/160 tests passed
Running tests in rtest_zeta: 22/22 tests passed
Running tests in rtest_diff_invtrig: 22/22 tests passed
Running tests in rtest_scalarp: 20/20 tests passed
Running tests in rtest_everysome: 84/84 tests passed
Running tests in rtestint: [GC for 199312 RELOCATABLE-BLOCKS pages..(T=20).GC 
finished]
[GC for 2992 SYMBOL pages..(T=21).GC finished]
287/287 tests passed
Running tests in rtest_numth: [GC for 235957 CONS pages..(T=22).GC finished]
201/201 tests passed
Running tests in rtestifactor: 25/25 tests passed
Running tests in rtest_equal: 207/207 tests passed (not counting 2 expected 
errors)
Running tests in rtest_abs: 93/93 tests passed
Running tests in rtest_taylor: [GC for 235957 CONS pages..(T=22).GC finished]
[GC for 18660 ARRAY pages..(T=20).GC finished]
149/149 tests passed (not counting 8 expected errors)
Running tests in rtest_dot: 60/60 tests passed
Running tests in rtest_mset: 92/92 tests passed
Running tests in rtest_boolean: 116/116 tests passed
Running tests in rtest_round: 101/101 tests passed
Running tests in rtest_map: 99/99 tests passed (not counting 3 expected errors)
Running tests in rtest_sign: 326/326 tests passed (not counting 7 expected 
errors)
Running tests in rtest_algebraic: [GC for 22699 ARRAY pages..(T=20).GC finished]
45/45 tests passed
Running tests in rtest_gamma: [GC for 225475 RELOCATABLE-BLOCKS 
pages..(T=17).GC finished]
[GC for 140149 STRUCTURE pages..(T=24).GC finished]
[GC for 255618 RELOCATABLE-BLOCKS pages..(T=17).GC finished]
747/747 tests passed
Running tests in rtest_expintegral: [GC for 140149 STRUCTURE pages..(T=24).GC 
finished]
[GC for 255618 RELOCATABLE-BLOCKS pages..(T=18).GC finished]
210/210 tests passed
Running tests in rtest_signum: 50/50 tests passed
Running tests in rtest_lambert_w: 57/57 tests passed
Running tests in rtest_elliptic: [GC for 3308 SYMBOL pages..(T=24).GC finished]
87/87 tests passed
Running tests in rtest_integrate: [GC for 27264 SFUN pages..(T=22).GC finished]
[GC for 3308 SYMBOL pages..(T=21).GC finished]
[GC for 22699 ARRAY pages..(T=19).GC finished]
[GC for 22699 ARRAY pages..(T=19).GC finished]
[GC for 22699 ARRAY pages..(T=18).GC finished]
[GC for 22699 ARRAY pages..(T=21).GC finished]
[GC for 260145 RELOCATABLE-BLOCKS pages..(T=17).GC finished]
[GC for 235957 CONS pages..(T=22).GC finished]
[GC for 235957 CONS pages..(T=22).GC finished]
812/812 tests passed
Running tests in rtest_integrate_special: 53/53 tests passed
Running tests in rtest_sqrt: 313/313 tests passed (not counting 1 expected 
errors)
Running tests in rtest_carg: 55/55 tests passed (not counting 2 expected errors)
Running tests in rtest_log: [GC for 235957 CONS pages..(T=23).GC finished]
121/121 tests passed
Running tests in rtest_power: 72/72 tests passed (not counting 5 expected 
errors)
Running tests in rtestdefstruct: 32/32 tests passed
Running tests in rtest_limit: [GC for 235957 CONS pages..(T=23).GC finished]
200/200 tests passed
Running tests in rtest_powerseries: 67/67 tests passed
Running tests in rtest_laplace: 98/98 tests passed (not counting 11 expected 
errors)
Running tests in rtest_plotoptions: 1/1 tests passed

Error summary:
Error found in /usr/share/maxima/5.38.0/tests/rtest5.mac, problem:
(78)
1 test failed out of 10,614 total tests.
real time       :     82.540 secs
run-gbc time    :     72.059 secs
child run time  :      0.360 secs
gbc time        :      5.949 secs
(%o0)                                done
(%i1) 
(%i1) :lisp (room t)


  235957/235957      94.8%       9 CONS FIXNUM SHORT-FLOAT LONG-FLOAT 
BIT-VECTOR PATHNAME SPICE
   22699/22699       39.5%       6 ARRAY CHARACTER PACKAGE HASH-TABLE VECTOR 
RANDOM-STATE CCLOSURE CLOSURE
  140149/140149       0.3%       3 STRING BIGNUM RATIO COMPLEX
    3308/3308        87.1%       3 STRUCTURE
       1/1           65.2%         STREAM
      48/48          99.3%         CFUN CFDATA
   27264/27264       44.1%       2 SFUN SYMBOL READTABLE GFUN VFUN AFUN

    7168/7168                      contiguous (1 blocks)
         701127                    hole
  260145/260145      21.3%       6 relocatable

    429426 pages for cells

    696739 total pages in core
    696739 current core maximum pages
    260145 pages reserved for gc
   2572715 pages available for adding to core
     35556 pages reserved for core exhaustion

   3565155 maximum pages


Key:

WS: words per struct
UP: allocated pages
MP: maximum pages
FI: fraction of cells in use on allocated pages
GC: number of gc triggers allocating this type

word size:            64 bits
page size:            4096 bytes
heap start:           0xE81000
heap max :            0x368365000
shared library start: 0x0
cstack start:         0x0
cstack mark offset:   0 bytes
cstack direction:     downward
cstack alignment:     32 bytes
cstack max:           16001 bytes
immfix start:         0x8000000000000000
immfix size:          4611686018427387904 fixnums
physical memory:      1299534 pages

Reply via email to