Skip to content

Commit

Permalink
For netperf_benchmark, add numactl metadata.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 706109579
  • Loading branch information
andyz422 authored and copybara-github committed Dec 14, 2024
1 parent 8f44d21 commit 87cbbe1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perfkitbenchmarker/linux_benchmarks/netperf_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,10 +558,13 @@ def RunNetperf(vm, benchmark_name, server_ips, num_streams, client_ips):
numactl_prefix = 'numactl '
if NETPERF_NUMACTL_PHYSCPUBIND.value:
numactl_prefix += f'--physcpubind {NETPERF_NUMACTL_PHYSCPUBIND.value} '
metadata['netperf_physcpubind'] = NETPERF_NUMACTL_PHYSCPUBIND.value
if NETPERF_NUMACTL_CPUNODEBIND.value:
numactl_prefix += f'--cpunodebind {NETPERF_NUMACTL_CPUNODEBIND.value} '
metadata['netperf_cpunodebind'] = NETPERF_NUMACTL_CPUNODEBIND.value
if NETPERF_NUMACTL_MEMBIND.value:
numactl_prefix += f'--membind {NETPERF_NUMACTL_MEMBIND.value} '
metadata['netperf_membind'] = NETPERF_NUMACTL_MEMBIND.value
remote_cmd = f'{numactl_prefix} {remote_cmd}'

if FLAG_NETPERF_PERF_RECORD.value:
Expand Down

0 comments on commit 87cbbe1

Please sign in to comment.