]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Actually clamp the number of detected CPUs to 16.
authorNick Mathewson <nickm@torproject.org>
Mon, 31 Oct 2016 18:19:39 +0000 (14:19 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 31 Oct 2016 18:19:39 +0000 (14:19 -0400)
Previously we said we did, but didn't.

Fixes #19968; bugfix on 0.2.3.1-alpha.

changes/bug19968 [new file with mode: 0644]
src/common/compat.c

diff --git a/changes/bug19968 b/changes/bug19968
new file mode 100644 (file)
index 0000000..b285706
--- /dev/null
@@ -0,0 +1,11 @@
+  o Minor bugfixes (relay):
+    - Do not try to parallelize workers more than 16x without the
+      user explicitly configuring us to do so, even if we do detect more than
+      16 CPU cores. Fixes bug 19968; bugfix on
+      0.2.3.1-alpha.
+
+
+  o Minor bugfixes (testing):
+    - Avoid a unit test failure on systems with over 16 detectable
+      CPU cores. Fixes bug 19968; bugfix on
+      0.2.3.1-alpha.
index 3fde2b30890e0a23f0d52a757303ea96a1101562..4f2f9778f2aab7bbb6055b8c8bc5a3c8ae5bf700 100644 (file)
@@ -2818,6 +2818,7 @@ compute_num_cpus(void)
                  "will not autodetect any more than %d, though.  If you "
                  "want to configure more, set NumCPUs in your torrc",
                  num_cpus, MAX_DETECTABLE_CPUS);
+      num_cpus = MAX_DETECTABLE_CPUS;
       /* LCOV_EXCL_STOP */
     }
   }