diff --git a/test/images/node-perf/npb-ep/BASEIMAGE b/test/images/node-perf/npb-ep/BASEIMAGE new file mode 100644 index 0000000000..8a8f5b8e5b --- /dev/null +++ b/test/images/node-perf/npb-ep/BASEIMAGE @@ -0,0 +1 @@ +amd64=debian:stretch diff --git a/test/images/node-perf/npb-ep/Dockerfile b/test/images/node-perf/npb-ep/Dockerfile new file mode 100644 index 0000000000..a7ad6f6d36 --- /dev/null +++ b/test/images/node-perf/npb-ep/Dockerfile @@ -0,0 +1,26 @@ +# Copyright 2018 The Kubernetes Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FROM BASEIMAGE + +RUN apt-get update && apt-get install -y build-essential gfortran + +ADD http://www.nas.nasa.gov/assets/npb/NPB3.3.1.tar.gz . +RUN tar xzf NPB3.3.1.tar.gz + +WORKDIR ./NPB3.3.1/NPB3.3-OMP +RUN cp config/NAS.samples/make.def.gcc_x86 config/make.def +RUN make EP CLASS=D + +ENTRYPOINT ./bin/ep.D.x diff --git a/test/images/node-perf/npb-ep/README.md b/test/images/node-perf/npb-ep/README.md new file mode 100644 index 0000000000..b542766d14 --- /dev/null +++ b/test/images/node-perf/npb-ep/README.md @@ -0,0 +1,16 @@ +## NAS Parallel Benchmark Suite - Embarrassingly Parallel (EP) Benchmark + +The container image described here runs the EP benchmark from the +[NAS parallel benchmark suite.](https://www.nas.nasa.gov/publications/npb.html) +This image is used as a workload in in node performance testing. + +## How to release: +``` +# Build +$ cd $K8S_ROOT/test/images +$ make all WHAT=node-perf/npb-ep + +# Push +$ cd $K8S_ROOT/test/images +$ make all-push WHAT=node-perf/npb-ep +``` diff --git a/test/images/node-perf/npb-ep/VERSION b/test/images/node-perf/npb-ep/VERSION new file mode 100644 index 0000000000..d3827e75a5 --- /dev/null +++ b/test/images/node-perf/npb-ep/VERSION @@ -0,0 +1 @@ +1.0 diff --git a/test/images/node-perf/npb-is/BASEIMAGE b/test/images/node-perf/npb-is/BASEIMAGE new file mode 100644 index 0000000000..8a8f5b8e5b --- /dev/null +++ b/test/images/node-perf/npb-is/BASEIMAGE @@ -0,0 +1 @@ +amd64=debian:stretch diff --git a/test/images/node-perf/npb-is/Dockerfile b/test/images/node-perf/npb-is/Dockerfile new file mode 100644 index 0000000000..a5752ff98f --- /dev/null +++ b/test/images/node-perf/npb-is/Dockerfile @@ -0,0 +1,26 @@ +# Copyright 2018 The Kubernetes Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FROM BASEIMAGE + +RUN apt-get update && apt-get install -y build-essential + +ADD http://www.nas.nasa.gov/assets/npb/NPB3.3.1.tar.gz . +RUN tar xzf NPB3.3.1.tar.gz + +WORKDIR ./NPB3.3.1/NPB3.3-OMP +RUN cp config/NAS.samples/make.def.gcc_x86 config/make.def +RUN make IS CLASS=D + +ENTRYPOINT ./bin/is.D.x diff --git a/test/images/node-perf/npb-is/README.md b/test/images/node-perf/npb-is/README.md new file mode 100644 index 0000000000..8449574324 --- /dev/null +++ b/test/images/node-perf/npb-is/README.md @@ -0,0 +1,16 @@ +## NAS Parallel Benchmark Suite - Integer Sort (IS) Benchmark + +The container image described here runs the IS benchmark from the +[NAS parallel benchmark suite.](https://www.nas.nasa.gov/publications/npb.html) +This image is used as a workload in in node performance testing. + +## How to release: +``` +# Build +$ cd $K8S_ROOT/test/images +$ make all WHAT=node-perf/npb-is + +# Push +$ cd $K8S_ROOT/test/images +$ make all-push WHAT=node-perf/npb-is +``` diff --git a/test/images/node-perf/npb-is/VERSION b/test/images/node-perf/npb-is/VERSION new file mode 100644 index 0000000000..d3827e75a5 --- /dev/null +++ b/test/images/node-perf/npb-is/VERSION @@ -0,0 +1 @@ +1.0 diff --git a/test/images/node-perf/tf-wide-deep/BASEIMAGE b/test/images/node-perf/tf-wide-deep/BASEIMAGE new file mode 100644 index 0000000000..70bc384f0a --- /dev/null +++ b/test/images/node-perf/tf-wide-deep/BASEIMAGE @@ -0,0 +1 @@ +amd64=python:3.6-slim-stretch diff --git a/test/images/node-perf/tf-wide-deep/Dockerfile b/test/images/node-perf/tf-wide-deep/Dockerfile new file mode 100644 index 0000000000..a11be4fc76 --- /dev/null +++ b/test/images/node-perf/tf-wide-deep/Dockerfile @@ -0,0 +1,24 @@ +# Copyright 2018 The Kubernetes Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FROM BASEIMAGE + +RUN apt-get update && apt-get install -y git time +RUN pip install tensorflow +RUN git clone https://github.com/tensorflow/models.git +WORKDIR $HOME/models/official/wide_deep +RUN git checkout tags/v1.9.0 +ENV PYTHONPATH $PYTHONPATH:$HOME/models + +ENTRYPOINT python ./wide_deep.py diff --git a/test/images/node-perf/tf-wide-deep/README.md b/test/images/node-perf/tf-wide-deep/README.md new file mode 100644 index 0000000000..7126bf304d --- /dev/null +++ b/test/images/node-perf/tf-wide-deep/README.md @@ -0,0 +1,17 @@ +## Tensorflow Official Wide Deep Model + +The container image described here predicts the income using the census income dataset in Tensorflow. For more +information, see +[https://github.com/tensorflow/models/tree/master/official/wide_deep](https://github.com/tensorflow/models/tree/master/official/wide_deep). +This image is used as a workload in in node performance testing. + +## How to release: +``` +# Build +$ cd $K8S_ROOT/test/images +$ make all WHAT=node-perf/tf-wide-deep + +# Push +$ cd $K8S_ROOT/test/images +$ make all-push WHAT=node-perf/tf-wide-deep +``` diff --git a/test/images/node-perf/tf-wide-deep/VERSION b/test/images/node-perf/tf-wide-deep/VERSION new file mode 100644 index 0000000000..d3827e75a5 --- /dev/null +++ b/test/images/node-perf/tf-wide-deep/VERSION @@ -0,0 +1 @@ +1.0