Closed deadprogram closed 4 months ago
Is there always >1 CPU?
@loraxipam on the machine doing the compiling, yes.
This PR improves the test runner to use one less core than all available for 'breathing' room.
How does this help? Unless it runs out of RAM, using all cores shouldn't be a problem.
(In fact, ninja
uses 2 more threads than available cores to allow slightly better scheduling on some operating systems, for example when a thread is blocked on I/O).
I'd also be more comfortable with making sure there's at least 1 goroutine. While single-core CPUs are rare nowadays, it's trivial to make sure they'll continue to work well.
(I also run make smoke-test
myself sometimes so it would be unfortunate to slow that one down).
This PR improves the test runner to use one less core than all available for 'breathing' room. It also modifies the behavior to not return usage info for normal operational errors to avoid confusion when debugging failed test runs.