Menu

#405 newer releases of Regina exhaust virtual memory

open
5
2014-11-25
2013-02-09
No

Regina releases 3.4 ---> 3.7 (inclusive) exhaust virtual memory for a
large REXX program (not included here). Regina release 3.3 doesn't fail.

In an attempt to recreate this problem, I have written a emulation REXX program that exhausts
virtual memory (i.e., "system resources exhausted), showing that the later releases of Regina
exhaust virtual memory. Note that Regina 3.3 also fails under Windows/XP with this test
REXX program, but under Windows 7 it does not fail.

This bug report may shed light on the Regina bug 3564586 (which may possibly, in fact, be the
cause of this bug).

The include file (named EXHAUST.REX) has more information/documentation.

Discussion

  • Gerard Schildberger

    a REXX program to eimulate a much larger REXX program.

     
  • Gerard Schildberger

    This is a new version of bug report 3603643 which I would like closed (it was
    opened by me), but SourceForge won't me delete or upload files to that bug (I
    wasn't logged in while I created that bug report, and that may be the cause of
    that problem). __________________________________ Gerard Schildberger

     
  • Bruce

    Bruce - 2014-11-24

    I tried running your EXHAUST.REX program, and it seemed to run just fine.
    /usr/local/bin/regina *.REX
    segSize= 10000 times=100000 REXX version: REXX-Regina_3.8.2(MT) 5.00 22 Jun 2014
    generating 100000 segments took 7.69 seconds.
    using 0 and cseg: 0
    using 100 and cseg: 1
    using 200 and cseg: 2

    using 99800 and cseg: 998
    using 99900 and cseg: 999
    consolidation 1000 segments took 224.35 seconds.

    Is there something else I should be looking for?

     
    • Gerard Schildberger

      It would be nice to know which operating system (version, release ...) that you used to run the EXHAUST.REX program.

      Also, are you using a 32 or 64 bit version of Regina?

      I re-ran the EXHAUST.REX program (just now) using the latest release of Regina (3.9.0) on (Microsoft) Windows/XP and Windows 7 (both of which failed).

      I have installed the 32-bit version of Regina on both of my systems.

      Here is the output for Windows/XP (1st line appears to wrap):
      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      segSize= 10000 times=100000 REXX version: REXX-Regina_3.9.0(MT) 5.00 16 Oct 2014
      generating 100000 segments took 101.88 seconds.
      using 0 and cseg: 0
      using 100 and cseg: 1
      using 200 and cseg: 2
      using 300 and cseg: 3
      .
      .
      .
      using 17000 and cseg: 170
      using 17100 and cseg: 171
      using 17200 and cseg: 172
      using 17300 and cseg: 173
      67 +++ gg.cseg = gg.cseg || g.j /consolidate,/
      Error 5 running "D:\exhaust.rex", line 67: System resources exhausted
      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

      The above PeeCee is a 733 MgHz single engine.

      Here is the output for Windows 7 (1st line appears to wrap):
      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      segSize= 10000 times=100000 REXX version: REXX-Regina_3.9.0(MT) 5.00 16 Oct 2014
      generating 100000 segments took 0.73 seconds.
      using 0 and cseg: 0
      using 100 and cseg: 1
      using 200 and cseg: 2
      using 300 and cseg: 3
      .
      .
      .
      using 16000 and cseg: 160
      using 16100 and cseg: 161
      using 16200 and cseg: 162
      67 +++ gg.cseg = gg.cseg || g.j /consolidate,/
      Error 5 running "j:\exhaust.rex", line 67: System resources exhausted
      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

      The above PeeCee is about 3.2 MgHz quad engine.

      So, apparently (?) the OS has an effect on all this.
      ________ Gerard Schildberger

       
  • Bruce

    Bruce - 2014-11-24

    Mac OSX 10.7.5/Darwin 11.4.2
    /usr/local/bin/rexx: Mach-O 64-bit executable x86_64
    Intel Core 2 Duo

     
  • Gerard Schildberger

    Well, using a 64 bit virtual memory is a lot larger than the size that the (above) REXX program was designed to run in (based on the other REXX programs that have failed). Keep in mind, the above REXX program is a very very simple program that (I think) stresses the same design points as the huge programs that have been failing. Having that much memory would make it almost impossible to fail, I would think. All of the programs that I have used have failed (so far) use a 32-bit version of Regina (which uses roughly 2 billion bytes of virtual storage). _____ Gerard Schildberger

     
  • Bruce

    Bruce - 2014-11-25

    I downloaded and compiled Regina 3.9.0 from the source forge files.
    The program ran exactly like it did on the 64 bit system.

    using 99500 and cseg: 995
    using 99600 and cseg: 996
    using 99700 and cseg: 997
    using 99800 and cseg: 998
    using 99900 and cseg: 999
    consolidation 1000 segments took 307.82 seconds.

    Mac OSX 10.6.8/Darwin 10.8.0
    Intel Core Duo 1.83GHz/2GB Ram Note: this is a 32bit system with only 2GB or RAM.
    /usr/local/bin/rexx: Mach-O executable i386

     

    Last edit: Bruce 2014-11-25

Log in to post a comment.