Skip to content

Commit

Permalink
Add multibench run file
Browse files Browse the repository at this point in the history
Create the multibench run file
  • Loading branch information
rafaelfolco committed Oct 3, 2023
1 parent 04815ef commit cd4f748
Show file tree
Hide file tree
Showing 2 changed files with 139 additions and 4 deletions.
19 changes: 15 additions & 4 deletions util/JSON/schema-remotehost.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"type": "string",
"enum": [ "remotehost" ]
},
"controller-ip": {
"type": "string"
},
"host": {
"type": "string"
},
Expand All @@ -14,9 +17,6 @@
"userenv": {
"type": "string"
},
"unique-project": {
"type": "integer"
},
"client": {
"anyOf": [
{
Expand All @@ -39,6 +39,17 @@
}
]
},
"profiler": {
"anyOf": [
{
"type": "string",
"pattern": "^(?!0$)(([1-9]|10)(-[1-9][0-9]*)?)(\\+(([1-9]|10)(-[1-9][0-9]*)?))*$"
},
{
"type": "integer"
}
]
},
"config": {
"type": "array",
"minItems": 1,
Expand All @@ -55,7 +66,7 @@
"properties": {
"role": {
"type": "string",
"enum": [ "client", "server" ]
"enum": [ "client", "server", "profiler" ]
},
"ids": {
"type": "string",
Expand Down
124 changes: 124 additions & 0 deletions util/tests/JSON/ci-multi-run-file-remotehost-default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"benchmarks": [
{
"name": "iperf",
"ids": "1",
"mv-params": {
"global-options": [
{
"name": "required",
"params": [
{ "arg": "time", "vals": [ "10" ], "role": "client" },
{ "arg": "protocol", "vals": [ "tcp" ] },
{ "arg": "bitrate", "vals": [ "0" ] },
{ "arg": "ifname", "vals" : [ "default-route" ], "role": "server" }
]
}
],
"sets": [
{
"include": "required",
"params": [
{ "arg": "length", "vals": [ "256", "1024" ] }
]
}
]
}
},
{
"name": "uperf",
"ids": "2",
"mv-params": {
"global-options": [
{
"name": "required",
"params": [
{ "arg": "protocol", "vals": [ "tcp" ], "role": "client" },
{ "arg": "wsize", "vals": [ "64" ], "role": "client" },
{ "arg": "rsize", "vals": [ "64" ], "role": "client" },
{ "arg": "duration", "vals": [ "10" ], "role": "client" },
{ "arg": "ifname", "vals" : [ "default-route" ], "role": "server" }
]
}
],
"sets": [
{
"include": "required",
"params": [
{ "arg": "test-type", "vals": [ "stream" ], "role": "client" },
{ "arg": "nthreads", "vals": [ "1", "8" ], "role": "client" }
]
}
]
}
}
],
"tool-params": [
{
"tool": "sysstat",
"params": [
{ "arg": "subtools", "val": "mpstat", "enabled": "yes" }
]
},
{
"tool": "procstat"
}
],
"tags": {
"run": "multibench-run-file-json",
"userenv": "default"
},
"endpoints": [
{
"type": "remotehost",
"controller-ip": "CONTROLLER_IP",
"host": "CI_ENDPOINT_HOST",
"user": "CI_ENDPOINT_USER",
"userenv": "default",
"server": "1-2",
"client": "1-2",
"config": [
{
"targets": [
{ "role": "client", "ids": "1" },
{ "role": "server", "ids": "1" }
],
"settings": {
"osruntime": "podman"
}
},
{
"targets": [
{ "role": "client", "ids": "2" },
{ "role": "server", "ids": "2" }
],
"settings": {
"osruntime": "chroot"
}
}
]
},
{
"type": "remotehost",
"controller-ip": "CONTROLLER_IP",
"host": "CI_ENDPOINT_HOST",
"user": "CI_ENDPOINT_USER",
"userenv": "default",
"profiler": "1",
"config": [
{
"targets": [
{ "role": "profiler", "ids": "1" }
],
"settings": {
"osruntime": "chroot"
}
}
]
}
],
"run-params": {
"num-samples": "1",
"test-order": "s"
}
}

0 comments on commit cd4f748

Please sign in to comment.