From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 1FDBFDE5 for ; Wed, 25 Jan 2017 15:28:03 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 25 Jan 2017 06:28:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,284,1477983600"; d="scan'208";a="1087160777" Received: from gklab-246-019.igk.intel.com (HELO intel.com) ([10.217.246.19]) by orsmga001.jf.intel.com with SMTP; 25 Jan 2017 06:28:00 -0800 Received: by intel.com (sSMTP sendmail emulation); Wed, 25 Jan 2017 17:27:39 +0100 From: Slawomir Mrozowicz To: dev@dpdk.org Cc: Slawomir Mrozowicz Date: Wed, 25 Jan 2017 17:27:31 +0100 Message-Id: <1485361655-21519-1-git-send-email-slawomirx.mrozowicz@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484150829-20734-1-git-send-email-slawomirx.mrozowicz@intel.com> References: <1484150829-20734-1-git-send-email-slawomirx.mrozowicz@intel.com> Subject: [dpdk-dev] [PATCH v4 0/4] Introduce new performance test application X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 14:28:04 -0000 This patchset introduce new application which allows measuring performance parameters of PMDs available in crypto tree. The goal of this application is to replace existing performance tests in app/test. Parameters available are: throughput (--ptest throughput) and latency (--ptest latency). User can use multiply cores to run tests on but only one type of crypto PMD can be measured during single application execution. Cipher parameters, type of device, type of operation and chain mode have to be specified in the command line as application parameters. These parameters are checked using device capabilities structure. Couple of new library functions in librte_cryptodev are introduced for application use. There added also EAL option to suppresses all log output to stdout. To build the application a CONFIG_RTE_APP_CRYPTO_PERF flag has to be set (it is set by default). Example of usage: -c 0xc0 --vdev crypto_aesni_mb_pmd -w 0000:00:00.0 -- --ptest throughput --devtype crypto_aesni_mb --optype cipher-then-auth --cipher-algo aes-cbc --cipher-op encrypt --cipher-key-sz 16 --auth-algo sha1-hmac --auth-op generate --auth-key-sz 64 --auth-digest-sz 12 --total-ops 10000000 --burst-sz 32 --buffer-sz 64 To be applied on top of: [dpdk-dev,v4] crypto/aesni_gcm: migration from MB library to ISA-L v2 changes: - code style fix - add information in version.map about changes - add latency measurement by single operation instead of burst - add processing of chained mbufs - add handling of test vectors file and create example of the files - add verify operation after performance measurement - add check of input options - simplify application output to allow output to be easily - add processing out of place - add coalescing functionality - add documentation files v3 changes: - title of the cryptodev patch - supply information in version.map about changes - fix compile in dynamic mode - fix logic in check option - change application name and directory v4 changes: - change name of functions - fix segmentation fault - change default options - correct output report for operations per second - correct warm up the host CPU before starting the test - split the test vectors files to separate patch - split the documentation to separate patch Declan Doherty (2) cryptodev: add functions to retrieve device info app/crypto-perf: introduce new performance test application Slawomir Mrozowicz (3): cryptodev: add functions to retrieve device info app/crypto-perf: introduce new performance test application doc: describe new performance test application Marcin Kerlin (3) cryptodev: add functions to retrieve device info app/crypto-perf: introduce new performance test application app/crypto-perf: add test vectors files Piotr Azarewicz (2) app/crypto-perf: introduce new performance test application doc: describe new performance test application Michal Kobylinski (1) app/crypto-perf: introduce new performance test application MAINTAINERS | 4 + app/Makefile | 1 + app/test-crypto-perf/Makefile | 50 ++ app/test-crypto-perf/cperf.h | 58 ++ app/test-crypto-perf/cperf_ops.c | 474 ++++++++++++ app/test-crypto-perf/cperf_ops.h | 66 ++ app/test-crypto-perf/cperf_options.h | 104 +++ app/test-crypto-perf/cperf_options_parsing.c | 876 +++++++++++++++++++++++ app/test-crypto-perf/cperf_test_latency.c | 692 ++++++++++++++++++ app/test-crypto-perf/cperf_test_latency.h | 57 ++ app/test-crypto-perf/cperf_test_throughput.c | 665 +++++++++++++++++ app/test-crypto-perf/cperf_test_throughput.h | 58 ++ app/test-crypto-perf/cperf_test_vector_parsing.c | 500 +++++++++++++ app/test-crypto-perf/cperf_test_vector_parsing.h | 73 ++ app/test-crypto-perf/cperf_test_vectors.c | 484 +++++++++++++ app/test-crypto-perf/cperf_test_vectors.h | 98 +++ app/test-crypto-perf/cperf_verify_parser.c | 314 ++++++++ app/test-crypto-perf/data/aes_cbc_128_sha.data | 503 +++++++++++++ app/test-crypto-perf/data/aes_cbc_192_sha.data | 504 +++++++++++++ app/test-crypto-perf/data/aes_cbc_256_sha.data | 504 +++++++++++++ app/test-crypto-perf/main.c | 415 +++++++++++ config/common_base | 5 + doc/guides/rel_notes/release_17_02.rst | 5 + doc/guides/tools/cryptoperf.rst | 397 ++++++++++ doc/guides/tools/index.rst | 1 + lib/librte_cryptodev/rte_crypto_sym.h | 16 + lib/librte_cryptodev/rte_cryptodev.c | 183 ++++- lib/librte_cryptodev/rte_cryptodev.h | 147 ++-- lib/librte_cryptodev/rte_cryptodev_version.map | 8 + 29 files changed, 7214 insertions(+), 48 deletions(-) create mode 100644 app/test-crypto-perf/Makefile create mode 100644 app/test-crypto-perf/cperf.h create mode 100644 app/test-crypto-perf/cperf_ops.c create mode 100644 app/test-crypto-perf/cperf_ops.h create mode 100644 app/test-crypto-perf/cperf_options.h create mode 100644 app/test-crypto-perf/cperf_options_parsing.c create mode 100644 app/test-crypto-perf/cperf_test_latency.c create mode 100644 app/test-crypto-perf/cperf_test_latency.h create mode 100644 app/test-crypto-perf/cperf_test_throughput.c create mode 100644 app/test-crypto-perf/cperf_test_throughput.h create mode 100644 app/test-crypto-perf/cperf_test_vector_parsing.c create mode 100644 app/test-crypto-perf/cperf_test_vector_parsing.h create mode 100644 app/test-crypto-perf/cperf_test_vectors.c create mode 100644 app/test-crypto-perf/cperf_test_vectors.h create mode 100644 app/test-crypto-perf/cperf_verify_parser.c create mode 100644 app/test-crypto-perf/data/aes_cbc_128_sha.data create mode 100644 app/test-crypto-perf/data/aes_cbc_192_sha.data create mode 100644 app/test-crypto-perf/data/aes_cbc_256_sha.data create mode 100644 app/test-crypto-perf/main.c create mode 100644 doc/guides/tools/cryptoperf.rst -- 2.5.0