@@ -13,8 +13,6 @@ Table of Contents
13
13
* [ DPDK QAT Demos] ( #dpdk-qat-demos )
14
14
* [ DPDK Prerequisites] ( #dpdk-prerequisites )
15
15
* [ Deploy the pod] ( #deploy-the-pod )
16
- * [ Manual test run] ( #manual-test-run )
17
- * [ Automated test run] ( #automated-test-run )
18
16
* [ OpenSSL QAT Demo] ( #openssl-qat-demo )
19
17
* [ Checking for Hardware] ( #checking-for-hardware )
20
18
@@ -180,61 +178,42 @@ website links.
180
178
181
179
#### DPDK Prerequisites
182
180
183
- For the DPDK QAT demos to work, the DPDK drivers must be loaded and configured.
181
+ - For the DPDK QAT demos to work, the DPDK drivers must be loaded and configured.
184
182
For more information, refer to:
185
183
[ DPDK Getting Started Guide for Linux] ( https://doc.dpdk.org/guides/linux_gsg/index.html ) and
186
184
[ DPDK Getting Started Guide, Linux Drivers section] ( http://dpdk.org/doc/guides/linux_gsg/linux_drivers.html )
187
185
188
- #### Deploy the pod
189
-
190
- In the pod specification file, add container resource request and limit.
191
- For example, ` qat.intel.com/generic: <number of devices> ` for a container requesting QAT devices.
186
+ - You may need to add hugepage request and limit.
192
187
193
- For a DPDK-based workload, you may need to add hugepage request and limit.
194
-
195
- ``` bash
196
- $ kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/qat_dpdk_app/base/
197
- $ kubectl get pods
198
- NAME READY STATUS RESTARTS AGE
199
- qat-dpdk 1/1 Running 0 27m
200
- intel-qat-plugin-5zgvb 1/1 Running 0 3h
201
-
202
- ```
188
+ - The cluster must enable [ Kubernetes CPU manager's] ( https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ ) ` static ` policy.
203
189
204
190
> ** Note** : If the ` igb_uio ` VF driver is used with the QAT device plugin,
205
191
> the workload be deployed with ` SYS_ADMIN ` capabilities added.
206
192
207
- #### Manual Test Run
208
-
209
- Manually execute the ` dpdk-test-crypto-perf ` application to review the logs:
193
+ #### Deploy the pod
210
194
211
195
``` bash
212
- $ kubectl exec -it qat-dpdk bash
213
-
214
- $ dpdk-test-crypto-perf -l 6-7 -w $QAT1 \
215
- -d /usr/lib64/librte_mempool_ring.so.1.1 \
216
- -d /usr/lib64/librte_pmd_qat.so.1.1 -- \
217
- --ptest throughput --devtype crypto_qat \
218
- --optype cipher-only --cipher-algo aes-cbc --cipher-op encrypt \
219
- --cipher-key-sz 16 --total-ops 10000000 --burst-sz 32 --buffer-sz 64
196
+ $ kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/qat_dpdk_app/
197
+ $ kubectl get pods
198
+ NAME READY STATUS RESTARTS AGE
199
+ qat-dpdk-test-crypto-perf 1/1 Running 0 27m
200
+ qat-dpdk-test-compress-perf 1/1 Running 0 27m
201
+ intel-qat-plugin-5zgvb 1/1 Running 0 3h
220
202
```
221
203
222
- > ** Note ** : Adapt the ` .so ` versions to what the DPDK version in the container provides .
204
+ Both pods for [ crypto-perf ] ( ../..//deployments/qat_dpdk_app/crypto-perf ) and [ compress-perf ] ( ../../deployments/qat_dpdk_app/compress-perf ) are generated by default using ` kustomize ` .
223
205
224
- #### Automated Test Run
225
-
226
- It is also possible to deploy and run ` crypto-perf ` using the following
227
- ` kustomize ` overlays:
206
+ It is also possible to deploy and run ` crypto-perf ` or ` compress-perf ` only.
228
207
229
208
``` bash
230
- $ kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/qat_dpdk_app/test-crypto1
231
- $ kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/qat_dpdk_app/test-compress1
232
- $ kubectl logs qat-dpdk-test-crypto-perf-tc1
233
- $ kubectl logs qat-dpdk-test-compress-perf-tc1
209
+ $ kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/qat_dpdk_app/crypto-perf
210
+ $ kubectl logs qat-dpdk-test-crypto-perf
234
211
```
235
212
236
- > ** Note** : for ` test-crypto1 ` and ` test-compress1 ` to work, the cluster must enable
237
- [ Kubernetes CPU manager's] ( https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ ) ` static ` policy.
213
+ ``` bash
214
+ $ kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/qat_dpdk_app/compress-perf
215
+ $ kubectl logs qat-dpdk-test-compress-perf
216
+ ```
238
217
239
218
### OpenSSL QAT Demo
240
219
0 commit comments