Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions programs/will-it-scale/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ description: |
warmup period before which an average is taken. The averaging period can be
changed with the -s option, which by default is 5 seconds.

numactl is a boolean parameter, if true, confine the tasks and their memory to
a single node (numa_node, 0 by default) so that the results are not perturbed
by remote memory accesses. Default to false.

homepage: https://github.com/antonblanchard/will-it-scale

parameters:
Expand All @@ -27,6 +31,8 @@ parameters:
mode: [process, thread, both]
nr_task:
smt: [0, 1]
numactl:
numa_node:

results:
will-it-scale.scalability:
Expand Down
1 change: 1 addition & 0 deletions programs/will-it-scale/pkg/depends
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
libhwloc5
linux-perf
numactl
python-minimal
13 changes: 12 additions & 1 deletion programs/will-it-scale/run
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# - nr_task
# - no_affinity
# - smt
# - numactl
# - numa_node

. $LKP_SRC/lib/debug.sh
. $LKP_SRC/lib/env.sh
Expand Down Expand Up @@ -47,7 +49,16 @@ fi

[[ -n "$no_affinity" ]] || no_affinity=0

# Confine both the tasks' memory to $numa_node, so that the results are
# not perturbed by remote memory accesses.
numactl_prefix=
if [[ "$numactl" = true ]]; then
has_cmd numactl || die "numactl is not found in $PATH"
[[ -n "$numa_node" ]] || numa_node=0
numactl_prefix="numactl --membind=$numa_node --"
fi

ulimit -n 65536

has_cmd python3 || die "python3 is not found in $PATH"
log_cmd python3 ./runtest.py $test $duration $mode $no_affinity $smt $threads_to_iterate
log_cmd $numactl_prefix python3 ./runtest.py $test $duration $mode $no_affinity $smt $threads_to_iterate