Joe McDonnell has uploaded this change for review. ( 
https://gerrit.cloudera.org/25467


Change subject: IMPALA-13329: Add CPU pinning of daemons to 
start-impala-cluster.py
......................................................................

IMPALA-13329: Add CPU pinning of daemons to start-impala-cluster.py

The perf-AB-test jobs current run multiple Impalads on a single
machine with no isolation. The Impalads and minicluster can run
on all CPUs. This allows the different impalads and minicluster
processes to contend with each across all CPUs. This makes
measurement noisier.

To reduce the noise level, this adds the ability to pin impalads
to specific CPU thread using taskset. Each Impalad is given
--cpu_threads_per_impalad CPUs. Hyperthreads of a core are kept
together, and all CPUs used must be symmetric with the same
number of hyperthreads. Some modern chips have a hybrid
architecture where some cores are hyperthreaded and others
are not (e.g. Intel's performance vs efficiency cores). To use
these and abide by the symmetry requirement, the script also
has an --available_cpus flag that specifies the CPU threads
available to the whole cluster. On a hybrid CPU, specifying
only the cores with two hyperthreads satisfies the symmetry
requirement.

Non-impalad daemons are also pinned to CPUs. When using
exclusive coordinators, the non-impalad daemons are allowed to
use the same CPU threads as the exclusive coordinators. Without
exclusive coordinators, the non-impalad daemons use any CPUs
remaining after handing out CPUs to impalads. There must be at
least one CPU thread available for them. The non-impalad daemons
share these CPU threads. They are not isolated from each other.

This also modifies bin/single_node_perf_run.py to add equivalent
options. It passes these into bin/start-impala-cluster.py, but
it also isolates the minicluster daemons to the same set of CPUs
as the non-impalad daemons.

Testing:
 - Hand tested on a machine with a hybrid CPU
 - New unit tests for the cpu assignment logic in
   unittests/test_cpu_pinning.py

Change-Id: I22e7782f5309dc3884a6d91de4351a90ce6690b0
Assisted-by: Claude Sonnet 5.5 (Claude Code)
---
M bin/single_node_perf_run.py
M bin/start-impala-cluster.py
M tests/common/impala_cluster.py
A tests/unittests/test_cpu_pinning.py
A tests/util/cpu_pinning.py
5 files changed, 447 insertions(+), 17 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/67/25467/1
--
To view, visit https://gerrit.cloudera.org/25467
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I22e7782f5309dc3884a6d91de4351a90ce6690b0
Gerrit-Change-Number: 25467
Gerrit-PatchSet: 1
Gerrit-Owner: Joe McDonnell <[email protected]>

Reply via email to