Skip to content

Commit e98eb99

Browse files
Merge pull request #44 from balajismaniam/demo-updates
Automatic merge from submit-queue Updated demo. Fixes #30. - Updated pod templates with new label prefix. - Minor changes to job scripts and readme.
2 parents 3073484 + 0d31ad8 commit e98eb99

File tree

5 files changed

+17
-20
lines changed

5 files changed

+17
-20
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ such as restricting discovered features with the --label-whitelist option._
107107
| SSE4.2 | Streaming SIMD Extensions 4.2 (SSE4.2)
108108
| SGX | Software Guard Extensions (SGX)
109109

110-
### System Requirements
110+
## Getting started
111+
### System requirements
111112

112113
1. Linux (x86_64)
113114
1. [kubectl] [kubectl-setup] (properly set up and configured to work with your

demo/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,22 @@ Scripts to reproduce our demo results can be found in [helper-scripts](helper-sc
3737
Follow these easy steps to reproduce the demo.
3838

3939
1. `cd <helper-script-root>`
40-
2. `./run-with-discovery.sh -v <node-feature-discovery-version> -a parsec`
41-
3. `./run-with-discovery.sh -v <node-feature-discovery-version> -a cloverleaf`
42-
4. `/aggregate-logs-and-plot.sh -a parsec`
43-
5. `/aggregate-logs-and-plot.sh -a cloverleaf`
40+
2. `./run-with-discovery.sh -a parsec`
41+
3. `./run-with-discovery.sh -a cloverleaf`
42+
4. `./run-without-discovery.sh -a parsec`
43+
5. `./run-without-discovery.sh -a cloverleaf`
44+
6. `/aggregate-logs-and-plot.sh -a parsec`
45+
7. `/aggregate-logs-and-plot.sh -a cloverleaf`
4446

4547
Following the above steps will produce the performance and normalized performance logs and their corresponding plots for each application.
4648

4749
### Script Documentation
48-
`run-with-discovery.sh` takes the node feature discovery version and the application name as the input and runs ten application instances using node feature discovery.
50+
`run-with-discovery.sh` takes the application name as the input and runs ten application instances using node feature discovery.
4951
```sh
5052
> ./run-with-discovery.sh -h
51-
Usage: run-with-discovery.sh [-v DISCOVERY_VERSION] [-a APPLICATION_NAME]
53+
Usage: run-with-discovery.sh [-a APPLICATION_NAME]
5254
Runs pods ten times with discovery enabled.
5355

54-
-v DISCOVERY_VERSION target discovery version DISCOVERY_VERSION.
5556
-a APPLICATION_NAME run the pods with APPLICATION_NAME application.
5657
APPLICATION_NAME can be one of parsec or cloverleaf.
5758
```

demo/helper-scripts/demo-pod-with-discovery.json.parsec.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
],
2020
"nodeSelector": {
21-
"node.alpha.intel.com/VER-pstate-turbo": "true"
21+
"node.alpha.kubernetes-incubator.io/nfd-pstate-turbo": "true"
2222
},
2323
"restartPolicy": "Never"
2424
}

demo/helper-scripts/demo-pod-with-discovery.yaml.cloverleaf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
{
1212
"matchExpressions": [
1313
{
14-
"key": "node.alpha.intel.com/VER-pstate-turbo",
14+
"key": "node.alpha.kubernetes-incubator.io/nfd-pstate-turbo",
1515
"operator": "DoesNotExist"
1616
}
1717
]

demo/helper-scripts/run-with-discovery.sh

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#!/usr/bin/env bash
22
show_help() {
33
cat << EOF
4-
Usage: ${0##*/} [-v DISCOVERY_VERSION] [-a APPLICATION_NAME]
4+
Usage: ${0##*/} [-a APPLICATION_NAME]
55
Runs pods ten times with discovery enabled.
66
7-
-v DISCOVERY_VERSION target discovery version DISCOVERY_VERSION.
87
-a APPLICATION_NAME run the pods with APPLICATION_NAME application.
98
APPLICATION_NAME can be one of parsec or cloverleaf.
109
EOF
@@ -16,17 +15,13 @@ then
1615
exit 1
1716
fi
1817

19-
version="0.1.0"
2018
app="parsec"
2119

2220
OPTIND=1
23-
options="hv:a:"
21+
options="ha:"
2422
while getopts $options option
2523
do
2624
case $option in
27-
v)
28-
version=$OPTARG
29-
;;
3025
a)
3126
if [ "$OPTARG" == "parsec" ] || [ "$OPTARG" == "cloverleaf" ]
3227
then
@@ -48,16 +43,16 @@ do
4843
esac
4944
done
5045

51-
echo "Using discovery verion = $version and application name = $app."
46+
echo "Using application name = $app."
5247
echo "Creating pods with node feature discovery enabled."
5348
for i in {1..10}
5449
do
5550
if [ "$app" == "parsec" ]
5651
then
57-
sed -e "s/NUM/$i-with-discovery/" -e "s/VER/$version/" -e "s/APP/demo-1/" demo-pod-with-discovery.json.parsec.template > demo-pod-with-discovery.json
52+
sed -e "s/NUM/$i-with-discovery/" -e "s/APP/demo-1/" demo-pod-with-discovery.json.parsec.template > demo-pod-with-discovery.json
5853
kubectl create -f demo-pod-with-discovery.json
5954
else
60-
sed -e "s/NUM/$i-with-discovery/" -e "s/VER/$version/" -e "s/APP/demo-2/" demo-pod-with-discovery.yaml.cloverleaf.template > demo-pod-with-discovery.yaml
55+
sed -e "s/NUM/$i-with-discovery/" -e "s/APP/demo-2/" demo-pod-with-discovery.yaml.cloverleaf.template > demo-pod-with-discovery.yaml
6156
kubectl create -f demo-pod-with-discovery.yaml
6257
fi
6358
echo "WithDiscovery" >> labels-with-discovery-$app.log

0 commit comments

Comments
 (0)