Index: build/toolchain/get_concurrent_links.py |
diff --git a/build/toolchain/get_concurrent_links.py b/build/toolchain/get_concurrent_links.py |
index 6a401017eb75555bc9b72c3a649da1bf59a8d6a1..f8c927b8ec2c7e90544e5d1c5e47f8ef0236d266 100644 |
--- a/build/toolchain/get_concurrent_links.py |
+++ b/build/toolchain/get_concurrent_links.py |
@@ -35,7 +35,9 @@ def GetDefaultConcurrentLinks(): |
stat = MEMORYSTATUSEX(dwLength=ctypes.sizeof(MEMORYSTATUSEX)) |
ctypes.windll.kernel32.GlobalMemoryStatusEx(ctypes.byref(stat)) |
- mem_limit = max(1, stat.ullTotalPhys / (4 * (2 ** 30))) # total / 4GB |
+ # VS 2015 uses 20% more working set than VS 2013 and can consume all RAM |
+ # on a 64 GB machine. |
+ mem_limit = max(1, stat.ullTotalPhys / (5 * (2 ** 30))) # total / 5GB |
hard_cap = max(1, int(os.getenv('GYP_LINK_CONCURRENCY_MAX', 2**32))) |
return min(mem_limit, hard_cap) |
elif sys.platform.startswith('linux'): |