@@ -13,8 +13,6 @@ Table of Contents
1313 * [ DPDK QAT Demos] ( #dpdk-qat-demos )
1414 * [ DPDK Prerequisites] ( #dpdk-prerequisites )
1515 * [ Deploy the pod] ( #deploy-the-pod )
16- * [ Manual test run] ( #manual-test-run )
17- * [ Automated test run] ( #automated-test-run )
1816 * [ OpenSSL QAT Demo] ( #openssl-qat-demo )
1917* [ Checking for Hardware] ( #checking-for-hardware )
2018
@@ -180,61 +178,42 @@ website links.
180178
181179#### DPDK Prerequisites
182180
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.
184182For more information, refer to:
185183[ DPDK Getting Started Guide for Linux] ( https://doc.dpdk.org/guides/linux_gsg/index.html ) and
186184[ DPDK Getting Started Guide, Linux Drivers section] ( http://dpdk.org/doc/guides/linux_gsg/linux_drivers.html )
187185
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.
192187
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.
203189
204190> ** Note** : If the ` igb_uio ` VF driver is used with the QAT device plugin,
205191> the workload be deployed with ` SYS_ADMIN ` capabilities added.
206192
207- #### Manual Test Run
208-
209- Manually execute the ` dpdk-test-crypto-perf ` application to review the logs:
193+ #### Deploy the pod
210194
211195``` 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
220202```
221203
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 ` .
223205
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.
228207
229208``` 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
234211```
235212
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+ ```
238217
239218### OpenSSL QAT Demo
240219
0 commit comments