Commit cf7ecf62 authored by Wez Furlong's avatar Wez Furlong Committed by Facebook GitHub Bot

getdeps: use half as many jobs by default on windows

Summary:
This takes some pressure off both cpu and memory
on a laptop.

Reviewed By: pkaush

Differential Revision: D20562474

fbshipit-source-id: a058c71c47f25c3a2b3c1e34a0d0caf83e642021
parent 2f2a55e3
...@@ -83,6 +83,14 @@ class BuildOptions(object): ...@@ -83,6 +83,14 @@ class BuildOptions(object):
import multiprocessing import multiprocessing
num_jobs = multiprocessing.cpu_count() num_jobs = multiprocessing.cpu_count()
if is_windows():
# On Windows the cpu count tends to be the HT count.
# Running with that level of concurrency tends to
# swamp the system and make hard to perform other
# light work. Let's halve the number of cores here
# to win that back. The user can still specify a
# larger number if desired.
num_jobs = int(num_jobs / 2)
if not install_dir: if not install_dir:
install_dir = os.path.join(scratch_dir, "installed") install_dir = os.path.join(scratch_dir, "installed")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment