[M3devel] nt386gnu threads?

Jay jayk123 at hotmail.com
Thu Feb 28 14:03:07 CET 2008


Done.On birch, time sh -c "./do-pkg.sh realclean libm3 && ./do-pkg.sh buildship libm3" 
seems go from about 35 seconds to about 15 seconds.Let me know what improvements people see?
OMIT_GCC=yes do-cm3-std probably is the best test.alarmthreads platforms (PPC_LINUX), no change (still rebuilding actually).
 
NT386GNU still seems just as slow.
At some point I will try batching up the cm3cg and/or as calls.
Maybe via a wrapper on Windows only that then just makes n Win32 CreateProcess calls instead of n Cygwin vforks.
It might be nice to have Quake callouts for before_first_compile, after_last_compile, before_first_assemble, after_last_assemble, though this brings up that there should perhaps be begin_package/end_package, for cm3 to become a multi-package builder..and then, really, multi-threaded, so there'd have to be maybe extra state variables passed around, maybe. (and then Cygwin's waitpid not being threadsafe breaks this...)
 
(For prototyping, before_first compile is implied, after_last_compile/assemble is implied by make_lib/skip_lib/link, so any queuing up could be flushed at that point. Goal here being not to reduce process creates, but cygwin processes created from cygwin processes. oh, and I just realized, cm3cg should probably mark all data as "no copy" when targeting Cygwin. That might help a bunch.)
 - Jay



> CC: jayk123 at hotmail.com; m3devel at elegosoft.com> From: hosking at cs.purdue.edu> Subject: Re: [M3devel] nt386gnu threads?> Date: Tue, 29 Jan 2008 08:08:38 -0500> To: mika at async.caltech.edu> > Indeed. We definitely need to fix this...> > > On Jan 29, 2008, at 5:45 AM, Mika Nystrom wrote:> > > Jay writes:> > ..> >> It is painfully noticable how much more slowly NT386GNU m3cc > >> builds than NT=> >> 386MINGNU m3cc, presumably due to the underlying slower bash/sed/ > >> make etc.> > ..> >> > are you sure it's not the Thread.Sleep(0.1d0) in Process.Wait?> >> > Mika> 
_________________________________________________________________
Shed those extra pounds with MSN and The Biggest Loser!
http://biggestloser.msn.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080228/04505278/attachment-0002.html>


More information about the M3devel mailing list