Skip to content

How to get crypto performance data with DPDK

Pablo de Lara edited this page Jul 1, 2020 · 1 revision

Linux

Install the intel-ipsec-mb library

  • Use standard OS installer to install "intel-ipsec-mb" (apt, dnf etc.)
  • Alternatively, install the library from a tarball following the instructions from README, making sure to do "make install" at the end.

Install the DPDK library

  • Refer to the following page to know how to install DPDK: HOWTO
  • AESNI MB, AESNI GCM, KASUMI, SNOW3G and ZUC PMDs use the "intel-ipsec-mb", so these PMDs should be enabled in the .config file if "make" is used instead of meson (this last one picks up automatically that the intel-ipsec-mb is installed and compiles these PMDs).

Run the DPDK crypto-perf application

  • The performance application is placed in build/app/dpdk-test-crypto-perf
  • Example command line to get AES-GCM performance numbers (this uses the AESNI GCM PMD and gets throughput numbers for a range of buffer sizes):
  • sudo ./build/app/dpdk-test-crypto-perf -l 4,5 -n 6 --vdev="crypto_aesni_gcm" -- --devtype="crypto_aesni_gcm" --optype=aead --aead-algo=aes-gcm --aead-key-sz 16 --aead-iv-sz 12 --digest-sz 16 --buffer-sz 64,128,256,512,1024,2048 --silent --total-ops 300000 --burst-sz 32
  • Refer to the DPDK crypto-perf application user guide for further information: GUIDE