[dmd-internals] [D-Programming-Language/dmd] 2f7ce3: add gc for Windows dmd

Jonathan M Davis jmdavisProg at gmx.com
Sat Sep 24 18:23:02 PDT 2011


On Saturday, September 24, 2011 20:11:40 Andrei Alexandrescu wrote:
> On 9/24/11 5:53 PM, Walter Bright wrote:
> > I've gotten similar results. It's worse than I'd thought it would be.
> > The addition of the gc substantially slows things down. Granted, the gc
> > could be tuned, but this is a very inauspicious start.
> > 
> > Of course, the test suite is all small programs. How a large one behaved
> > would be interesting.
> 
> I think the default settings of today's GCs are years-old, e.g. they
> kick in at only a couple of hundred megs. We should tune the GC to
> kick-in only at 2GB RAM RSS.

I've seen dmd on Windows run out of memory at 900 something MB (why, I don't 
know, since there was more memory on the box and that's nowhere near the 3.6GB 
limit of the address space, but I've seen it happen). Compiling the Phobos 
unit tests were failing that way before when I had std.datetime's unit tests 
enabled (though it seems that enough has been fixed that they can now be 
enabled without the memory going quite that high). So, I don't know that 2 GB 
is really low enough. If we want to do that sort of thing, we're probably 
going to need to run tests to find an optimal value. I suspect that something 
more like 500MB would be better than 2GB, but I don't know.

- Jonathan M Davis


More information about the dmd-internals mailing list