Skip to content

Commit

Permalink
Merge pull request #388 from Suneeth-D/perf-bench-numa-mem
Browse files Browse the repository at this point in the history
Fix lkp picking up system's perf and Add new param
  • Loading branch information
rli9 authored Dec 4, 2024
2 parents a5deebb + 6e66c19 commit f3b2814
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions programs/perf-bench-numa-mem/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ parameters:
nr_processes:
nr_threads:
mem_proc:
thp_opt:
extra_params:

results:
Expand Down
6 changes: 5 additions & 1 deletion programs/perf-bench-numa-mem/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# - nr_processes
# - nr_threads
# - mem_proc
# - thp_opt
# - extra_params

## perf began as a tool for using the performance counters
Expand All @@ -11,11 +12,14 @@
. $LKP_SRC/lib/unit.sh
. $LKP_SRC/lib/reproduce-log.sh
. $LKP_SRC/lib/debug.sh
. $LKP_SRC/lib/env.sh

set_perf_path "/lkp/benchmarks/perf/perf"

[ -n "$nr_processes" ] || nr_processes=$nr_cpu

mb_proc=$(to_mb $mem_proc)

log_cmd numactl --hard || die "Test needs available numa"

log_cmd perf bench numa mem -p $nr_processes -t $nr_threads -m -0 -P $mb_proc $extra_params
log_cmd $perf bench numa mem -p $nr_processes -t $nr_threads -m -0 -P $mb_proc --thp $thp_opt $extra_params

0 comments on commit f3b2814

Please sign in to comment.