Skip to content

Commit

Permalink
Added compression to profiling.
Browse files Browse the repository at this point in the history
Signed-off-by: L Lakshmanan <[email protected]>
  • Loading branch information
Lakshman authored and Lakshman committed Aug 19, 2024
1 parent 45d97c1 commit 003d0f3
Show file tree
Hide file tree
Showing 23 changed files with 284 additions and 28 deletions.
15 changes: 15 additions & 0 deletions .github/configs/wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ authorizer
autodetect
autoscaling
autostart
AverageAllocatedMb
avi
AVI
aws
Expand Down Expand Up @@ -158,6 +159,8 @@ dockerizing
doi
Dragojevic
Drumond
dur
durations
DVFS
eba
ECR
Expand Down Expand Up @@ -234,6 +237,9 @@ gVisor
Gptj
gpt
Harald
HashApp
HashFunction
HashOwner
HDDs
HelloRequest
helloworld
Expand Down Expand Up @@ -262,6 +268,7 @@ init
InitBasicTracer
InitCustomTracer
Initializr
injective
inproceedings
insteadOf
integ
Expand All @@ -275,6 +282,7 @@ ISCA
ISPASS
Istio
istioctl
iter
iteratively
jekyll
Jesalpura
Expand Down Expand Up @@ -340,13 +348,15 @@ microarchitecture
Marios
matchers
maxVMNum
metset
md
MECS
memcached
metadata
Metatrainer
metatrainer
memcached
MiB
Michal
Micheli
microarchitecting
Expand All @@ -359,6 +369,7 @@ microservices
Microservice
Microservices
microVMs
millicpu
minio
MinIO
Mirzadeh
Expand Down Expand Up @@ -424,13 +435,15 @@ Petrov
Ph
Picorel
Pilani
Pipelined
plaintext
Plamen
plamenpp
pmu
pmutool
pn
Pnevmatikatos
png
postfix
PPoPP
PPOPP
Expand Down Expand Up @@ -462,6 +475,7 @@ PTEMagnet
pv
PV
pvc
py
qO
QoS
QOS
Expand Down Expand Up @@ -499,6 +513,7 @@ runtimes
Rustem
s
SABRes
SampleCount
SayHello
Sazeides
Scalability
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-aes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ jobs:

- name: start docker-compose benchmark
run: |
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
sleep 60s
cat log_file
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ jobs:

- name: start docker-compose benchmark
run: |
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
sleep 60s
cat log_file
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-fibonacci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ jobs:

- name: start docker-compose benchmark
run: |
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
sleep 60s
cat log_file
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-gptj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ jobs:

- name: start docker-compose benchmark
run: |
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
sleep 60s
cat log_file
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-hotel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ jobs:

- name: start docker-compose benchmark
run: |
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
sleep 60s
cat log_file
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-image-rotate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ jobs:

- name: start docker-compose benchmark
run: |
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
sleep 60s
cat log_file
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-map-reduce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
- name: start docker-compose benchmark
working-directory: benchmarks/map-reduce
run: |
docker-compose -f docker-compose-s3.yml up &> log_file &
docker compose -f docker-compose-s3.yml up &> log_file &
sleep 120s
cat log_file
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-online-shop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ jobs:

- name: start docker-compose benchmark
run: |
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
sleep 60s
cat log_file
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-rnn-serving.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ jobs:

- name: start docker-compose benchmark
run: |
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
sleep 60s
cat log_file
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-spin-sleep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ jobs:

- name: start docker-compose benchmark
run: |
docker-compose -f ${{ matrix.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker-compose -f ${{ matrix.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
docker compose -f ${{ matrix.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker compose -f ${{ matrix.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
sleep 60s
cat log_file
- name: invoke the function directly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-stacking-training.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
env:
BUCKET_NAME: vhive-stacking
run: |
docker-compose -f docker-compose-s3.yml up &> log_file &
docker compose -f docker-compose-s3.yml up &> log_file &
sleep 60s
- name: invoke the chain
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tuning-halving.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
env:
BUCKET_NAME: vhive-tuning
run: |
docker-compose -f docker-compose-s3.yml up &> log_file &
docker compose -f docker-compose-s3.yml up &> log_file &
sleep 60s
- name: invoke the chain
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-video-analytics-standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ jobs:

- name: start docker-compose benchmark
run: |
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
sleep 60s
cat log_file
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-video-analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
BUCKET_NAME: "vhive-video-bench"
working-directory: benchmarks/video-analytics/yamls/docker-compose
run: |
docker-compose -f docker-compose-s3.yml up &> log_file &
docker compose -f docker-compose-s3.yml up &> log_file &
sleep 60s
- name: invoke the chain
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-video-processing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ jobs:

- name: start docker-compose benchmark
run: |
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker-compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml pull
docker compose -f ${{ env.YAML_DIR }}/dc-${{ matrix.service }}.yaml up &> log_file &
sleep 60s
cat log_file
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/rnn-serving/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
numpy
torch
torch==2.4.0+cpu
grpcio==1.53.2
grpcio-tools==1.45.0
opentelemetry-api==1.3.0
Expand Down
28 changes: 28 additions & 0 deletions tools/profiler/config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
[
{
"yaml-location": "./yamls/compression/kn-compression-python-txt.yaml",
"predeployment-commands": [
"kubectl apply -f ./yamls/compression/compression-database.yaml"
],
"postdeployment-commands": []
},
{
"yaml-location": "./yamls/compression/kn-compression-python-img-1.yaml",
"predeployment-commands": [
"kubectl apply -f ./yamls/compression/compression-database.yaml"
],
"postdeployment-commands": []
},
{
"yaml-location": "./yamls/compression/kn-compression-python-img-2.yaml",
"predeployment-commands": [
"kubectl apply -f ./yamls/compression/compression-database.yaml"
],
"postdeployment-commands": []
},
{
"yaml-location": "./yamls/compression/kn-compression-python-vid.yaml",
"predeployment-commands": [
"kubectl apply -f ./yamls/compression/compression-database.yaml"
],
"postdeployment-commands": []
},
{
"yaml-location": "./yamls/aes-nodejs/kn-aes-nodejs-10-10.yaml",
"predeployment-commands": [],
Expand Down
74 changes: 74 additions & 0 deletions tools/profiler/yamls/compression/compression-database.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# MIT License

# Copyright (c) 2024 EASE lab

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.


## Database ----------
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: compression-database
namespace: default
spec:
selector:
matchLabels:
app: compression-database
template:
metadata:
labels:
app: compression-database
spec:
containers:
- name: database
image: docker.io/vhiveease/mongodb
ports:
- containerPort: 27017

---
apiVersion: v1
kind: Service
metadata:
name: compression-database
namespace: default
spec:
type: ClusterIP
selector:
app: compression-database
ports:
- name: database
port: 27017
targetPort: 27017

---
apiVersion: batch/v1
kind: Job
metadata:
name: init-compression-database
spec:
template:
spec:
containers:
- name: init-compression-database
image: docker.io/vhiveease/compression-init-database:latest
args:
- --db_addr=mongodb://compression-database:27017
restartPolicy: Never
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ spec:
- --function-endpoint-url=0.0.0.0
- --function-endpoint-port=50051
- --function-name=compression-python
- --value=metamorphosis.txt
- --value=img1.jpg
- --profile-function=true
- image: docker.io/vhiveease/compression-python:latest
args:
- --addr=0.0.0.0
Expand Down
Loading

0 comments on commit 003d0f3

Please sign in to comment.