<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>On my machine at work (admitteldly, older - 512M
RAM, Windows XP SP2), DrRacket crashes predictably, even when I don't run any
code of mine - it's enough to run the macro stepper on a reasonably complex
expression. I do attribute this to low memory conditions and found that
Dr.Racket claims about 300M even when limited to 128M. Opening a second session
(hitting run, debug or macro stepper) already bumps the memory usage
significantly. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I haven't reported this yet since a) I don't know
how to file a bug report and b) the environment I run under is fairly
ancient. I believe it is fairly trivial to get Dr.Racket to crash using
a machine with limited memory. I can provide additional info
(screenshots of the exception handler box, event log entries etc) if needed (PM
please).</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thanks,</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=jgilray@gmail.com href="mailto:jgilray@gmail.com">Joe Gilray</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=neil@neilvandyke.org
href="mailto:neil@neilvandyke.org">Neil Van Dyke</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=users@racket-lang.org
href="mailto:users@racket-lang.org">Racket mailing list</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, February 21, 2012 7:32
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [racket] DrRacket
crashes</DIV>
<DIV><BR></DIV>Hi Neal,
<DIV><BR></DIV>
<DIV>The code is not using tail recursion, but my test code is allocating and
deallocating large structures about 20 times before the crash.</DIV>
<DIV><BR></DIV>
<DIV>I am limiting memory for DrRacket to 1GB (the system has 3GB).
DrRacket was using about 800MB the last time I checked before the crash.
Note that it doesn't give me the out of memory message. When I hit
Run, DrRacket doesn't give back memory to the OS, but that is no
surprise.</DIV>
<DIV><BR></DIV>
<DIV>I know that this is not a very complete bug report. I just put it
out there in case someone else is seeing something similar and maybe together
we can characterize the issue better.</DIV>
<DIV><BR></DIV>
<DIV>Thanks,</DIV>
<DIV>-Joe<BR><BR>
<DIV class=gmail_quote>On Mon, Feb 20, 2012 at 10:09 PM, Neil Van Dyke <SPAN
dir=ltr><<A
href="mailto:neil@neilvandyke.org">neil@neilvandyke.org</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>Windows is very much running out of RAM, and is pounding
swap?<BR><BR>Were you able to look at the process sizes, so you know roughly
how much virtual memory DrRacket was using, and whether any other processes
were using lots of virtual memory?<BR><BR>It could be that DrRacket was
using a huge amount of virtual memory, or it could be that some other
process was, but you were noticing it in DrRacket because a GC cycle was
leading to thrashing.<BR><BR>If DrRacket is indeed using a huge amount of
memory, you might take a look at the code you were running in DrRacket, and
whether all the memory usage of that code is necessary. One of the
first things to look at is whether you're using tail calls everywhere you
can in recursion-intensive parts of the code.<BR><BR>Also, I actually
disable swap on Linux and Windows workstations I set up -- any process of
mine that doesn't fit in RAM is dead to me. My workstations are 5
year-old laptops with 2-3 GB of RAM each, and so far that has been more than
enough RAM.<SPAN class=HOEnZb><FONT color=#888888><BR><BR>-- <BR><A
href="http://www.neilvandyke.org/"
target=_blank>http://www.neilvandyke.org/</A><BR></FONT></SPAN></BLOCKQUOTE></DIV><BR></DIV>
<P>
<HR>
<P></P>____________________<BR> Racket Users list:<BR>
http://lists.racket-lang.org/users<BR></BLOCKQUOTE></BODY></HTML>