Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stress-ng options #43

Merged
merged 1 commit into from
Dec 12, 2024
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
23 changes: 16 additions & 7 deletions multiplex.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,39 @@
"integer_gt_zero": {
"description": "a whole number > 0",
"args": [
"duration"
"duration",
"network-connections",
"stress-ng-tiles-per-cpu"
],
"vals": "^[1-9][0-9]*$"
},
"binary": {
"description": "0 or 1",
"args": [
"trace-markers",
"trace-control",
"no-load-balance"
"trace-markers",
"trace-control",
"no-load-balance"
],
"vals": "^[01]]$"
"vals": "0|1"
},
"rtprio": {
"description": "priority level of the oslat process (1-99)",
"args": [
"rtprio"
"rtprio"
],
"vals": "^[1-9]$|^[1-9][0-9]$"
},
"yesno": {
"description": "yes|no",
"args": [
"sysinfo-test"
],
"vals": "yes|no"
},
"onoff": {
"description": "on|off",
"args": [
"smt"
"smt"
],
"vals": "on|off"
},
Expand Down
22 changes: 20 additions & 2 deletions oslat-server-start
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ exec 2>&1
. /usr/bin/oslat-base || (echo "/usr/bin/oslat-base not found"; exit 1)

STRESS_NG_TILES_PER_CPU=1
NETWORK_CONNECTIONS=0
SYSINFO_TEST="no"

opts=$(getopt -q -o "" --longoptions "stress-ng-tiles-per-cpu:" -n "getopt.sh" -- "$@");
opts=$(getopt -q -o "" --longoptions "network-connections:,sysinfo-test:,stress-ng-tiles-per-cpu:" -n "getopt.sh" -- "$@");
if [ $? -ne 0 ]; then
printf -- "\tUnrecognized option specified\n\n"
exit 1
Expand All @@ -22,6 +24,16 @@ while true; do
STRESS_NG_TILES_PER_CPU=$1
shift
;;
--network-connections)
shift
NETWORK_CONNECTIONS=$1
shift
;;
--sysinfo-test)
shift
SYSINFO_TEST=$1
shift
;;
--)
shift
break
Expand Down Expand Up @@ -73,8 +85,14 @@ CMD+=" --malloc ${TEST_TILES}"
CMD+=" --mmap ${TEST_TILES}"
CMD+=" --msg ${TEST_TILES}"
CMD+=" --stream ${TEST_TILES}"
CMD+=" --sysinfo ${TEST_TILES}"
if [ ${SYSINFO_TEST} == "yes" ]; then
#NOTE(rfolco): sysinfo - statfs /sys/firmware/efi/efivars produces SMIs
CMD+=" --sysinfo ${TEST_TILES}"
fi
CMD+=" --vm ${TEST_TILES}"
if [ ${NETWORK_CONNECTIONS} -gt 0 ]; then
CMD+=" --sock ${NETWORK_CONNECTIONS} --sock-zerocopy --sock-opts sendmsg"
fi
CMD+=" --timeout 0"
CMD+=" --metrics"
CMD+=" --times"
Expand Down
Loading