-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
update benchmarks (#89)
Signed-off-by: Dmitry Shmulevich <[email protected]>
Showing
12 changed files
with
342 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
137 changes: 137 additions & 0 deletions
137
resources/benchmarks/gang-scheduling/workflows/run-test-runai.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
name: test-gang-scheduling | ||
tasks: | ||
- id: register-trainingworkload | ||
type: RegisterObj | ||
params: | ||
template: "resources/benchmarks/templates/runai/trainingworkload.yml" | ||
nameFormat: "twl{{._ENUM_}}" | ||
podNameFormat: "{{._NAME_}}-0-0" | ||
podCount: 1 | ||
- id: register-distributedworkload | ||
type: RegisterObj | ||
params: | ||
template: "resources/benchmarks/templates/runai/distributedworkload.yml" | ||
nameFormat: "dwl{{._ENUM_}}" | ||
podNameFormat: "{{._NAME_}}-(launcher-[a-z0-9]+|worker-[0-9]+)" | ||
podCount: "{{.workers}} + 1" | ||
# | ||
### Benchmark test | ||
# | ||
- id: job1 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-distributedworkload | ||
count: 1 | ||
params: | ||
workers: 31 | ||
ttl: 30s | ||
- id: job2 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-distributedworkload | ||
count: 2 | ||
params: | ||
workers: 15 | ||
ttl: 30s | ||
- id: job3 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-distributedworkload | ||
count: 3 | ||
params: | ||
workers: 9 | ||
ttl: 30s | ||
- id: job3.1 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-distributedworkload | ||
count: 1 | ||
params: | ||
workers: 1 | ||
ttl: 30s | ||
- id: job4 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-distributedworkload | ||
count: 4 | ||
params: | ||
workers: 7 | ||
ttl: 30s | ||
- id: job5 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-distributedworkload | ||
count: 5 | ||
params: | ||
workers: 5 | ||
ttl: 30s | ||
- id: job5.1 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-trainingworkload | ||
count: 2 | ||
params: | ||
ttl: 30s | ||
- id: job6 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-distributedworkload | ||
count: 6 | ||
params: | ||
workers: 4 | ||
ttl: 30s | ||
- id: job6.1 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-distributedworkload | ||
count: 1 | ||
params: | ||
workers: 1 | ||
ttl: 30s | ||
- id: job7 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-distributedworkload | ||
count: 7 | ||
params: | ||
workers: 3 | ||
ttl: 30s | ||
- id: job7.1 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-distributedworkload | ||
count: 1 | ||
params: | ||
workers: 1 | ||
ttl: 30s | ||
- id: job7.2 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-trainingworkload | ||
count: 2 | ||
params: | ||
ttl: 30s | ||
- id: job8 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-distributedworkload | ||
count: 8 | ||
params: | ||
workers: 3 | ||
ttl: 30s | ||
- id: job9 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-distributedworkload | ||
count: 9 | ||
params: | ||
workers: 2 | ||
ttl: 30s | ||
- id: job9.1 | ||
type: SubmitObj | ||
params: | ||
refTaskId: register-distributedworkload | ||
count: 1 | ||
params: | ||
workers: 4 | ||
ttl: 30s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
resources/benchmarks/templates/runai/distributedworkload.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
apiVersion: run.ai/v2alpha1 | ||
kind: DistributedWorkload | ||
metadata: | ||
name: "{{._NAME_}}" | ||
namespace: runai-<RUNAI_PROJECT> | ||
annotations: | ||
clusterId: <RUNAI_CLUSTER_ID> | ||
labels: | ||
project: <RUNAI_PROJECT> | ||
masterSpec: | ||
name: | ||
value: "{{._NAME_}}" | ||
image: | ||
value: ubuntu | ||
imagePullPolicy: | ||
value: Always | ||
cpu: | ||
value: 100m | ||
memory: | ||
value: 256M | ||
gpuDevices: | ||
value: 8 | ||
largeShm: | ||
value: false | ||
nodePools: | ||
value: default | ||
runAsUser: | ||
value: true | ||
usage: Submit | ||
autoDeletionTimeAfterCompletionSeconds: | ||
value: 2592000 | ||
spec: | ||
annotations: | ||
items: | ||
clusterId: | ||
value: <RUNAI_CLUSTER_ID> | ||
pod-complete.stage.kwok.x-k8s.io/delay: | ||
value: {{.ttl}} | ||
pod-complete.stage.kwok.x-k8s.io/jitter-delay: | ||
value: {{.ttl}} | ||
name: | ||
value: "{{._NAME_}}" | ||
jobType: MPIJob | ||
image: | ||
value: ubuntu | ||
imagePullPolicy: | ||
value: Always | ||
cpu: | ||
value: 100m | ||
memory: | ||
value: 256M | ||
gpuDevices: | ||
value: 8 | ||
workers: | ||
value: {{.workers}} | ||
largeShm: | ||
value: false | ||
nodePools: | ||
value: default | ||
runAsUser: | ||
value: true | ||
usage: Submit | ||
autoDeletionTimeAfterCompletionSeconds: | ||
value: 2592000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: run.ai/v2alpha1 | ||
kind: TrainingWorkload | ||
metadata: | ||
name: "{{._NAME_}}" | ||
namespace: runai-<RUNAI_PROJECT> | ||
annotations: | ||
clusterId: <RUNAI_CLUSTER_ID> | ||
labels: | ||
project: <RUNAI_PROJECT> | ||
spec: | ||
name: | ||
value: "{{._NAME_}}" | ||
image: | ||
value: ubuntu | ||
imagePullPolicy: | ||
value: IfNotPresent | ||
active: | ||
value: true | ||
annotations: | ||
items: | ||
clusterId: | ||
value: <RUNAI_CLUSTER_ID> | ||
pod-complete.stage.kwok.x-k8s.io/delay: | ||
value: {{.ttl}} | ||
pod-complete.stage.kwok.x-k8s.io/jitter-delay: | ||
value: {{.ttl}} | ||
cpu: | ||
value: 100m | ||
memory: | ||
value: 256M | ||
gpuDevices: | ||
value: 8 | ||
nodePools: | ||
value: default | ||
usage: Submit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters