Skip to content
Browse files

sanitycheck: don't multiply CPU count

We have a number of timing sensitive tests which run
correctly on a much more frequent basis if the system
is not so heavily loaded. Instead of squeezing a few
more crumbs of performance by doubling the CPU count,
just use the number of CPUs reported by the system.

Signed-off-by: Andrew Boie <>
  • Loading branch information...
andrewboie authored and nashif committed Jul 3, 2019
1 parent 4f2e873 commit 9f4f57eed3a36fb2f84f828f9bebe14d730cba44
Showing with 4 additions and 1 deletion.
  1. +4 −1 scripts/sanitycheck
@@ -226,7 +226,6 @@ LAST_SANITY_XUNIT = os.path.join(ZEPHYR_BASE, "scripts", "sanity_chk",
RELEASE_DATA = os.path.join(ZEPHYR_BASE, "scripts", "sanity_chk",
JOBS = multiprocessing.cpu_count() * 2

if os.isatty(sys.stdout.fileno()):
@@ -3259,6 +3258,10 @@ def main():

elif options.build_only:
JOBS = multiprocessing.cpu_count() * 2
JOBS = multiprocessing.cpu_count()

# Decrease JOBS for Ninja, if jobs weren't explicitly set
if and not

0 comments on commit 9f4f57e

Please sign in to comment.
You can’t perform that action at this time.