bugMIT/GNU Scheme - Bugs: bug #30534, MIT Scheme fails to start with...

 
 

bug #30534: MIT Scheme fails to start with heap size larger than ~9000 on recent 32-bit linux systems

Submitter:  None
Submitted:  Sat 24 Jul 2010 02:49:50 AM UTC
   
 
Category:  runtime Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Suboptimal behavior
Status:  Wont Fix Privacy:  Public
Assigned to:  riastradh Originator Name:  Maciej Pacula
Originator Email:  -email is unavailable- Open/Closed:  Closed
Keywords: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 24 Jul 2010 03:24:39 AM UTC, comment #4: 

Thanks for the quick response!

26 bits seem like a rather extreme limitation, but I understand the benefits. I will migrate to a 64-bit system.

Maciej Pacula <maciej>
Sat 24 Jul 2010 03:14:01 AM UTC, comment #3: 

Also, the portable C distribution of MIT Scheme can usually use a few more megabytes of heap space, at the expense of some speed.  For native compiled code, Scheme's heap must reside in the low 26-bit address space, giving an upper bound on where it can end, and the operating system usually has a lower bound on where it can begin.  For the portable C distribution, however, the heap can reside anywhere in memory, although it is still limited to 26 bits,  So depending on the operating system and its configuration, you may find that the limit for native compiled code varies, whereas it will usually be close to 64 MB for the portable C distribution.

But if you need more than that, I'm afraid you'll have to use a 64-bit system -- sorry.

Taylor R. Campbell <riastradh>
Group Member
Sat 24 Jul 2010 03:00:14 AM UTC, comment #2: 

This is intrinsic in the way MIT Scheme works: the use of six tag bit limits its usable virtual address space to the low 26-bit subspace on systems with 32-bit addresses.  You'll have to use a 64-bit system if you want a larger heap; reducing the number of tag bits would require non-trivial changes to the system.

Taylor R. Campbell <riastradh>
Group Member
Sat 24 Jul 2010 02:53:15 AM UTC, comment #1: 

I would be grateful for any information about possible fixes and/or workarounds, as I need the additional memory in my project. I would also gladly investigate the issue myself if somebody points me in the right direction. Thank you.

Maciej Pacula <maciej>
Sat 24 Jul 2010 02:49:50 AM UTC, original submission:  

Starting MIT Scheme with --heap larger than about 9000 (35MB) produces the following error on recent 32-bit Linux systems:

Requested allocation is too large.
Try again with a smaller argument to '--heap'.


Information about systems tested is listed below. All machines had at least 512MB of RAM and ample available swap. The issue does not happen on my Debian 5.0 64-bit server.



Ubuntu 10.04 32-bit

$ uname -a
Linux maciej-laptop 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 07:54:58 UTC 2010 i686 GNU/Linux

$ scheme --version
Copyright (C) 2010 Massachusetts Institute of Technology
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Image saved on Tuesday March 9, 2010 at 6:41:34 PM
  Release 9.0.1 || Microcode 15.1 || Runtime 15.7 || SF 4.41 || LIAR/i386 4.118
  Edwin 3.116MIT/GNU Scheme microcode 15.1
Happy Happy Joy Joy.



Ubuntu 10.04 Server 32-bit (VirtualBox guest VM)

$ uname -a
Linux ubuntu 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux


$ scheme
MIT/GNU Scheme running under GNU/Linux
Type `^C' (control-C) followed by `H' to obtain information about interrupts.

Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
    1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008 Massachusetts Institute of Technology
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Image saved on Monday March 8, 2010 at 8:56:40 PM
  Release 7.7.90.+ || Microcode 15.1 || Runtime 15.7 || SF 4.41
  LIAR/i386 4.118  || Edwin 3.116



Fedora 13 32-bit (VirtualBox guest VM)

# uname -a
Linux maciej-fedora 2.6.33.3-85.fc13.i686 #1 SMP Thu May 6 18:44:12 UTC 2010 i686 i686 i386 GNU/Linux

# scheme --version
Copyright (C) 2010 Massachusetts Institute of Technology
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Image saved on Tuesday March 9, 2010 at 6:41:34 PM
  Release 9.0.1 || Microcode 15.1 || Runtime 15.7 || SF 4.41 || LIAR/i386 4.118
  Edwin 3.116MIT/GNU Scheme microcode 15.1
Happy Happy Joy Joy.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by riastradh (Posted a comment)
  • -email is unavailable- added by maciej (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-07-24 riastradh Item GroupNone Suboptimal behavior
        StatusNone Wont Fix
        Assigned toNone riastradh
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code