There are two options that can be used to limit the cpu resources devoted to processing a given source file:

Another option is to split your C files among multiple calls to spatch. Then if one file gets stuck it will only block the processing of the files treated by its instance of spatch.

The directory tools/distributed contains a program called spatch_linux that distributes your files among some number of processes. If you have a multicore machine, these will normally run in parallel, but it might be useful in general to mitigate the problem of spatch getting stuck on one file. spatch_linux is C code, and could probably be implemented in a better way than it currently is. Since it is mostly intended for internal use, little effort has been put into robustness or user-friendliness.

 
controlling_the_running_time_of_spatch.txt · Last modified: 2009/09/13 22:45 by derek_jones
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki