From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 3FB76E5D for ; Tue, 12 Dec 2017 10:40:27 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Dec 2017 01:40:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,394,1508828400"; d="scan'208";a="2059761" Received: from silpixa00381635.ir.intel.com (HELO silpixa00381635.ger.corp.intel.com) ([10.237.222.149]) by orsmga007.jf.intel.com with ESMTP; 12 Dec 2017 01:40:25 -0800 From: Jasvinder Singh To: dev@dpdk.org Cc: cristian.dumitrescu@intel.com Date: Tue, 12 Dec 2017 09:53:20 +0000 Message-Id: <20171212095324.35420-1-jasvinder.singh@intel.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <1503488186-90047-2-git-send-email-cristian.dumitrescu@intel.com> References: <1503488186-90047-2-git-send-email-cristian.dumitrescu@intel.com> Subject: [dpdk-dev] [PATCH v2 0/4] meter: add meter configuration profile api 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: Tue, 12 Dec 2017 09:40:28 -0000 This patch set adds support for meter configuration profiles. Benefits: simplified configuration procedure, improved performance. Q1: What is the configuration profile and why does it make sense? A1: The configuration profile represents the set of configuration parameters for a given meter object, such as the rates and sizes for the token buckets. The configuration profile concept makes sense when many meter objects share the same configuration, which is the typical usage model: thousands of traffic flows are each individually metered according to just a few service levels (i.e. profiles). Q2: How is the configuration profile improving the performance? A2: The performance improvement is achieved by reducing the memory footprint of a meter object, which results in better cache utilization for the typical case when large arrays of meter objects are used. The internal data structures stored for each meter object contain: a) Constant fields: Low level translation of the configuration parameters that does not change post-configuration. This is really duplicated for all meters that use the same configuration. This is the configuration profile data that is moved away from the meter object. Current size (implementation dependent): srTCM = 32 bytes, trTCM = 32 bytes. b) Variable fields: Time stamps and running counters that change during the on-going traffic metering process. Current size (implementation dependant): srTCM = 24 bytes, trTCM = 32 bytes. Therefore, by moving the constant fields to a separate profile data structure shared by all the meters with the same configuration, the size of the meter object is reduced by ~50%. Cristian Dumitrescu (3): lib/librte_meter: add meter configuration profile test/test_meter: update meter test examples/qos_meter: accommodate meter api changes Jasvinder Singh (1): examples/ip_pipeline: update flow action pipeline doc/guides/rel_notes/deprecation.rst | 3 - doc/guides/rel_notes/release_18_02.rst | 2 +- .../pipeline/pipeline_flow_actions_be.c | 25 ++- examples/qos_meter/main.c | 39 +++- examples/qos_meter/main.h | 32 ++-- lib/librte_meter/Makefile | 2 +- lib/librte_meter/rte_meter.c | 95 ++++++---- lib/librte_meter/rte_meter.h | 197 ++++++++++++++------- lib/librte_meter/rte_meter_version.map | 8 + test/test/test_meter.c | 194 +++++++++++--------- 10 files changed, 394 insertions(+), 203 deletions(-) -- 2.9.3