Skip to content

Commit 5ef67d1

Browse files
authored
Merge pull request #67418 from kquinn1204/OCPBUGS-19470
OCPBUGS-19470 DPDK mount point should be /mnt/huge
2 parents 56a6493 + b5dbbb6 commit 5ef67d1

5 files changed

+8
-8
lines changed

modules/nw-openstack-hw-offload-testpmd-pod.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ spec:
3939
cpu: '2'
4040
memory: 1000Mi
4141
volumeMounts:
42-
- mountPath: /dev/hugepages
42+
- mountPath: /mnt/huge
4343
name: hugepage
4444
readOnly: False
4545
volumes:

modules/nw-openstack-ovs-dpdk-testpmd-pod.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ spec:
4242
memory: 1000Mi
4343
openshift.io/dpdk1: 1
4444
volumeMounts:
45-
- mountPath: /dev/hugepages
45+
- mountPath: /mnt/huge
4646
name: hugepage
4747
readOnly: False
4848
runtimeClassName: performance-cnf-performanceprofile <2>

modules/nw-sriov-dpdk-example-intel.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ spec:
108108
capabilities:
109109
add: ["IPC_LOCK","SYS_RESOURCE","NET_RAW"] <3>
110110
volumeMounts:
111-
- mountPath: /dev/hugepages <4>
111+
- mountPath: /mnt/huge <4>
112112
name: hugepage
113113
resources:
114114
limits:
@@ -130,7 +130,7 @@ spec:
130130
<1> Specify the same `target_namespace` where the `SriovNetwork` object `intel-dpdk-network` is created. If you would like to create the pod in a different namespace, change `target_namespace` in both the `Pod` spec and the `SriovNetwork` object.
131131
<2> Specify the DPDK image which includes your application and the DPDK library used by application.
132132
<3> Specify additional capabilities required by the application inside the container for hugepage allocation, system resource allocation, and network interface access.
133-
<4> Mount a hugepage volume to the DPDK pod under `/dev/hugepages`. The hugepage volume is backed by the emptyDir volume type with the medium being `Hugepages`.
133+
<4> Mount a hugepage volume to the DPDK pod under `/mnt/huge`. The hugepage volume is backed by the emptyDir volume type with the medium being `Hugepages`.
134134
<5> Optional: Specify the number of DPDK devices allocated to DPDK pod. This resource request and limit, if not explicitly specified, will be automatically added by the SR-IOV network resource injector. The SR-IOV network resource injector is an admission controller component managed by the SR-IOV Operator. It is enabled by default and can be disabled by setting `enableInjector` option to `false` in the default `SriovOperatorConfig` CR.
135135
<6> Specify the number of CPUs. The DPDK pod usually requires exclusive CPUs to be allocated from the kubelet. This is achieved by setting CPU Manager policy to `static` and creating a pod with `Guaranteed` QoS.
136136
<7> Specify hugepage size `hugepages-1Gi` or `hugepages-2Mi` and the quantity of hugepages that will be allocated to the DPDK pod. Configure `2Mi` and `1Gi` hugepages separately. Configuring `1Gi` hugepage requires adding kernel arguments to Nodes. For example, adding kernel arguments `default_hugepagesz=1GB`, `hugepagesz=1G` and `hugepages=16` will result in `16*1Gi` hugepages be allocated during system boot.

modules/nw-sriov-dpdk-example-mellanox.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ spec:
113113
capabilities:
114114
add: ["IPC_LOCK","SYS_RESOURCE","NET_RAW"] <3>
115115
volumeMounts:
116-
- mountPath: /dev/hugepages <4>
116+
- mountPath: /mnt/huge <4>
117117
name: hugepage
118118
resources:
119119
limits:
@@ -135,7 +135,7 @@ spec:
135135
<1> Specify the same `target_namespace` where `SriovNetwork` object `mlx-dpdk-network` is created. To create the pod in a different namespace, change `target_namespace` in both the `Pod` spec and `SriovNetwork` object.
136136
<2> Specify the DPDK image which includes your application and the DPDK library used by the application.
137137
<3> Specify additional capabilities required by the application inside the container for hugepage allocation, system resource allocation, and network interface access.
138-
<4> Mount the hugepage volume to the DPDK pod under `/dev/hugepages`. The hugepage volume is backed by the `emptyDir` volume type with the medium being `Hugepages`.
138+
<4> Mount the hugepage volume to the DPDK pod under `/mnt/huge`. The hugepage volume is backed by the `emptyDir` volume type with the medium being `Hugepages`.
139139
<5> Optional: Specify the number of DPDK devices allocated for the DPDK pod. If not explicitly specified, this resource request and limit is automatically added by the SR-IOV network resource injector. The SR-IOV network resource injector is an admission controller component managed by SR-IOV Operator. It is enabled by default and can be disabled by setting the `enableInjector` option to `false` in the default `SriovOperatorConfig` CR.
140140
<6> Specify the number of CPUs. The DPDK pod usually requires that exclusive CPUs be allocated from the kubelet. To do this, set the CPU Manager policy to `static` and create a pod with `Guaranteed` Quality of Service (QoS).
141141
<7> Specify hugepage size `hugepages-1Gi` or `hugepages-2Mi` and the quantity of hugepages that will be allocated to the DPDK pod. Configure `2Mi` and `1Gi` hugepages separately. Configuring `1Gi` hugepages requires adding kernel arguments to Nodes.

modules/nw-sriov-rdma-example-mellanox.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ spec:
115115
capabilities:
116116
add: ["IPC_LOCK","SYS_RESOURCE","NET_RAW"] <3>
117117
volumeMounts:
118-
- mountPath: /dev/hugepages <4>
118+
- mountPath: /mnt/huge <4>
119119
name: hugepage
120120
resources:
121121
limits:
@@ -135,7 +135,7 @@ spec:
135135
<1> Specify the same `target_namespace` where `SriovNetwork` object `mlx-rdma-network` is created. If you would like to create the pod in a different namespace, change `target_namespace` in both `Pod` spec and `SriovNetwork` object.
136136
<2> Specify the RDMA image which includes your application and RDMA library used by application.
137137
<3> Specify additional capabilities required by the application inside the container for hugepage allocation, system resource allocation, and network interface access.
138-
<4> Mount the hugepage volume to RDMA pod under `/dev/hugepages`. The hugepage volume is backed by the emptyDir volume type with the medium being `Hugepages`.
138+
<4> Mount the hugepage volume to RDMA pod under `/mnt/huge`. The hugepage volume is backed by the emptyDir volume type with the medium being `Hugepages`.
139139
<5> Specify number of CPUs. The RDMA pod usually requires exclusive CPUs be allocated from the kubelet. This is achieved by setting CPU Manager policy to `static` and create pod with `Guaranteed` QoS.
140140
<6> Specify hugepage size `hugepages-1Gi` or `hugepages-2Mi` and the quantity of hugepages that will be allocated to the RDMA pod. Configure `2Mi` and `1Gi` hugepages separately. Configuring `1Gi` hugepage requires adding kernel arguments to Nodes.
141141

0 commit comments

Comments
 (0)