Skip to content

Instantly share code, notes, and snippets.

@MartijnBraam
Created January 21, 2019 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartijnBraam/391e38f8a7c23b80cebd3fc0c00899c9 to your computer and use it in GitHub Desktop.
Save MartijnBraam/391e38f8a7c23b80cebd3fc0c00899c9 to your computer and use it in GitHub Desktop.
diff --git a/UnixBench/Run b/UnixBench/Run
index b4abd26..6170481 100755
--- a/UnixBench/Run
+++ b/UnixBench/Run
@@ -831,9 +831,10 @@ sub getSystemInfo {
$info->{'cpus'} = $cpus;
$info->{'numCpus'} = scalar(@$cpus);
}
-
+ print "CPUs in /proc/cpuinfo: $info->{numCpus}\n";
# Get available number of CPUs (not disabled CPUs), if possible.
my $numCpus = getNumActiveCpus();
+ print "CPUs in getconf: $numCpus\n";
if (defined($numCpus)) {
$info->{'numCpus'} = $numCpus; # overwrite value from getCpuinfo()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment