making ./validate run tests on all CPUs by default

Sergei Trofimovich slyich at
Tue Aug 12 20:31:13 UTC 2014

Good evening all!

Currently when being  ran './validate' script (without any parameters):
- builds ghc using 2 parallel jobs
- runs testsuite using 2 parallel jobs

I propose to change the default value to amount of available CPUs:
- build ghc using N+1 parallel jobs
- run testsuite using N+1 parallel jobs

- first-time users will get faster ./validate
- seasoned users will need less tweaking for buildbots

- for imbalanced boxes (32 cores, 8GB RAM) it might
   be quite painful to drag box out of swap

What do you think about it?

Actual patch:



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <>

More information about the ghc-devs mailing list