On Tue, Jan 26, 2010 at 2:10 PM, nathan binkert <[email protected]> wrote: >> Has anyone used the BATCH_CMD facility in our SConstruct to run >> compiles or regressions using LSF? If so, any patches you can share? > > I am very interested as well. I looked into this at one point and > Gabe may have as well while he was working for me, but we never did > it. One thing to look at while working on this is pyLSF. > > http://www.gingergeeks.co.uk/pylsf/ > > All that said, in general, I was never too happy with the way that > BATCH_CMD works for the build part because there is so much latency in > submitting a job that the build may as well be done on a single system > with a lot of cores. I was working with the model of doing the build > locally and then I was planning to use something like qdo for the > regressions.
It would be trivial to decouple using BATCH_CMD for builds from using it for regression tests; I agree that's something we probably ought to just do. > I also wrote a script that that scheduled a single job on as many LSF > nodes as possible and that job would run distccd (one per core) on all > of the nodes that it was able to grab. The head node would gather the > list of nodes that it had and build a hosts file for distccd and then > I used distcc from the host. This seems to be a decent solution for > builds. If you want these scripts, let me know and I'll try to find > them (I should start using them more to be honest. It really made > builds pretty fast.) This sounds nice, but solving the regression test problem is more pressing than accelerating builds for us right now. Plus of course the more general solution below is even better. > > Of course, the correct way to do all this stuff is probably to use the > above model of running some sort of SCons daemon on each node and then > fire tasks off to the daemons from the central guy. Of course this > would require writing a Taskmaster for SCons and would likely be a > fair amount of work. I see this has been put forth as a GSoC project the past couple of years, with no apparent takers: http://www.scons.org/wiki/GSoC2009#head-f333be10ba9182a444ac76e4383de0cd14a260f3 > Finally, for simply building, a huge amount of time is spent on the > serial task of building the dependency graphs. This is a problem I've > been trying to fix for a long time, but scons makes it really > difficult to fix. This hasn't bothered me quite as much, though faster is always better. Seems like some generic scons caching mechanism could address this. Here are a couple more relevant links I ran across looking at GSoC project candidates: http://www.scons.org/wiki/GSoC2009#head-1631d042b349be56f47305c3af9a8ee0040ca1c0 http://www.scons.org/wiki/GSoC2009#head-1b1165055ebc571931f90b5a8ce6aedc6d6f4dc7 Steve _______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
