Skip to content

Commit 2c3421d

Browse files
author
Matt Pryor
committed
Implement hostnetwork RDMA bandwidth + latency
1 parent 29480ca commit 2c3421d

File tree

7 files changed

+404
-72
lines changed

7 files changed

+404
-72
lines changed

examples/rdma-bw-read.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/rdma-bw-set.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: perftest.stackhpc.com/v1alpha1
2+
kind: BenchmarkSet
3+
metadata:
4+
name: rdma-bandwidth
5+
spec:
6+
template:
7+
apiVersion: perftest.stackhpc.com/v1alpha1
8+
kind: RDMABandwidth
9+
spec:
10+
imagePullPolicy: Always
11+
permutations:
12+
product:
13+
hostNetwork: [true]
14+
mode: [read, write]

examples/rdma-lat-set.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: perftest.stackhpc.com/v1alpha1
2+
kind: BenchmarkSet
3+
metadata:
4+
name: rdma-latency
5+
spec:
6+
template:
7+
apiVersion: perftest.stackhpc.com/v1alpha1
8+
kind: RDMALatency
9+
spec:
10+
imagePullPolicy: Always
11+
permutations:
12+
product:
13+
hostNetwork: [true]

python/perftest/models/v1alpha1/base.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ class ImagePullPolicy(str, schema.Enum):
1818
NEVER = "Never"
1919

2020

21+
class ContainerResources(schema.BaseModel):
22+
"""
23+
Model for specifying container resources.
24+
"""
25+
requests: schema.Dict[str, t.Any] = Field(
26+
default_factory = dict,
27+
description = "The resource requests for the pod."
28+
)
29+
limits: schema.Dict[str, t.Any] = Field(
30+
default_factory = dict,
31+
description = "The resource limits for the pod."
32+
)
33+
34+
2135
class BenchmarkPhase(str, schema.Enum):
2236
"""
2337
Enumeration of possible phases for a benchmark.

0 commit comments

Comments
 (0)