- Data Plane Development Kit (DPDK) drivers must be loaded and configured. For more information, refer to:
- QuickAssist SR-IOV virtual functions must be configured. Verify this by running:
for i in 0442 0443 37c9 19e3; do lspci -d 8086:$i; done
- Intel QuickAssist Technology software for Linux must be installed and configured. For more information, refer to:
$ mkdir -p $GOPATH/src/github.com/intel/
$ cd $GOPATH/src/github.com/intel/
$ git clone https://github.com/intel/intel-device-plugins-for-kubernetes.git
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
$ make qat_plugin
$ ls /var/lib/kubelet/device-plugins/kubelet.sock
/var/lib/kubelet/device-plugins/kubelet.sock
$ sudo $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes/cmd/qat_plugin/qat_plugin \
-dpdk-driver igb_uio -kernel-vf-drivers dh895xccvf -max-num-devices 10 -debug
QAT device plugin started
Discovered Devices below:
03:01.0 device: corresponding DPDK device detected is uio0
03:01.1 device: corresponding DPDK device detected is uio1
03:01.2 device: corresponding DPDK device detected is uio2
03:01.3 device: corresponding DPDK device detected is uio3
03:01.4 device: corresponding DPDK device detected is uio4
03:01.5 device: corresponding DPDK device detected is uio5
03:01.6 device: corresponding DPDK device detected is uio6
03:01.7 device: corresponding DPDK device detected is uio7
03:02.0 device: corresponding DPDK device detected is uio8
03:02.1 device: corresponding DPDK device detected is uio9
The number of devices discovered are:10
device-plugin start server at: /var/lib/kubelet/device-plugins/intelQAT.sock
device-plugin registered
ListAndWatch: Sending device response
By default, the device plugin supports these QuickAssist devices: DH895xCC, C62x, C3xxx, and D15xx devices.
Use the kernel-vf-drivers flag
to specify the vf Device Driver for the particular QAT device. For more information, refer to Intel QAT Crypto Poll Mode Driver.
-dpdk-driver
is set to vfio-pci
by default since it is more robust and secure driver compared with igb_uio
. See DPDK Linux Driver Guide for more information.
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
$ make intel-qat-plugin
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
kubectl create -f deployments/qat_plugin/qat_plugin_default_configmap.yaml
kubectl create -f deployments/qat_plugin/qat_plugin.yaml
$ kubectl describe node <node name> | grep qat.intel.com/generic
qat.intel.com/generic: 10
qat.intel.com/generic: 10
-
Build the DPDK image:
$ cd demo $ ./build-image.sh crypto-perf
This command produces a Docker image named
crypto-perf
. -
Deploy a pod to run an example DPDK application named
dpdk-test-crypto-perf
.In the pod specification file, add container resource request and limit. For example,
qat.intel.com/generic: <number of devices>
for a container requesting QAT devices.For a DPDK-based workload, you may need to add hugepage request and limit.
$ kubectl create -f demo/crypto-perf-dpdk-pod-requesting-qat.yaml $ kubectl get pods NAME READY STATUS RESTARTS AGE dpdkqatuio 1/1 Running 0 27m intel-qat-plugin-5zgvb 1/1 Running 0 3h
-
Manually execute the
dpdk-test-crypto-perf
application to review the logs:$ kubectl exec -it dpdkqatuio bash $ ./dpdk-test-crypto-perf -l 6-7 -w $QAT1 -- --ptest throughput --\ devtype crypto_qat --optype cipher-only --cipher-algo aes-cbc --cipher-op \ encrypt --cipher-key-sz 16 --total-ops 10000000 --burst-sz 32 --buffer-sz 64