On 03/07/2017 11:10 AM, Boris Zbarsky wrote:
On 3/7/17 2:05 PM, Mike Conley wrote:
FWIW, the MOZ_MAKE_FLAGS bit can probably be removed, as I believe mach
will just choose the optimal number based on examining your processor cores.

Except mach's definition of "optimal" is "maybe optimize for compile throughput", not "optimize for doing anything else at all with your computer while compiling".

I had to manually set a lower -j value than it was picking, because it was impossible for me to load webpages (read: do reviews) or read emails while a build was running, due to mach spawning too many jobs. :(

Now my builds are 1-2 minutes slower (read: 3-5%), but at least I can get something else done while they're running.

I have at times spun off builds into their own cgroup. It seems to isolate the load pretty well, when I want to bother with remembering how to set it up again. Perhaps it'd be a good thing for mach to do automatically.

Then again, if dropping the -j count buys you responsiveness for only a 3-5% loss, then perhaps cgroups are not worth bothering with.

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to