[MLton-devel] yeah, that did the trick

Stephen Weeks sweeks@sweeks.com
Tue, 17 Sep 2002 09:36:57 -0700


> I just ran self compiles and regressions without problems.  Although,
> a self compile took about 12 minutes on a 1.6GHz machine with 1G RAM
> running in vmware, which is about twice as long as a comparable RedHat
> linux machine.

Turns out I exagerated here.  I just ran a self compile on each
(virtual) machine and here is the result.

FreeBSD	4.6.2	MLton finished in 486.97 + 210.66 (30% GC)
RedHat 7.1	MLton finished in 297.67 + 165.61 (36% GC)

So it takes only 50% longer on FreeBSD.  Maybe some of that is due to
poorer emulation on vmware's part, but I would doubt much.  Also, some
may be due to very different mmap behavior on the two machines.  I've
included the gc-summary stats from the self compile below.  FreeBSD
manages to almost always give MLton the memory it needs for doing
copying collection, while on RedHat, MLton switches to mark compact
and is stuck there for a while.  This could explain things due to
FreeBSD losing time due to zeroing out pages for new semispaces
constantly being created.  I also see that the time spent in
collection for FreeBSD (74.7 + 7.4) doesn't come anywhere close to the
total GC time (210.7).  This must either be due to zeroing costs, or
maybe the absence of mremap on FreeBSD.


FreeBSD	
------------------------------------------------------------
GC type		time ms	 number		  bytes	      bytes/sec
-------------	-------	-------	---------------	---------------
copying		 74,710	     51	  2,897,868,992	     38,788,235	
mark-compact	  7,414	      1	    124,772,876	     16,829,360	
minor		     23	     72	         16,384	        712,347	
total GC time: 210,655 ms (31.2%)
max pause: 13,389 ms
total allocated: 23,012,385,576 bytes
max live: 166,632,380 bytes
max semispace: 841,928,704 bytes
max stack size: 4,571,136 bytes
marked cards: 196
minor scanned: 1,349,128 bytes
minor skipped: 57,464 bytes


Linux
------------------------------------------------------------
GC type		time ms	 number		  bytes	      bytes/sec
-------------	-------	-------	---------------	---------------
copying		 21,680	     19	    751,223,624	     34,650,535	
mark-compact	140,120	     35	  3,120,900,340	     22,273,054	
minor		     10	     86	         21,912	      2,191,200	
total GC time: 165,620 ms (38.4%)
max pause: 8,260 ms
total allocated: 25,990,057,716 bytes
max live: 149,229,672 bytes
max semispace: 545,816,576 bytes
max stack size: 4,571,136 bytes
marked cards: 214
minor scanned: 3,118,592 bytes
minor skipped: 65,704 bytes



-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel