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 77EF637B3 for ; Tue, 18 Oct 2016 12:45:22 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP; 18 Oct 2016 03:45:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,361,1473145200"; d="scan'208";a="21172708" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by orsmga004.jf.intel.com with ESMTP; 18 Oct 2016 03:45:21 -0700 Received: from irsmsx109.ger.corp.intel.com ([169.254.13.6]) by IRSMSX106.ger.corp.intel.com ([169.254.8.209]) with mapi id 14.03.0248.002; Tue, 18 Oct 2016 11:44:44 +0100 From: "Pattan, Reshma" To: "dev@dpdk.org" Thread-Topic: [RFC v3] latencystats: added new library for latency stats Thread-Index: AQHSKHvz3NIOe0ijA0eJc3UvSgBRA6CuBsZQ Date: Tue, 18 Oct 2016 10:44:43 +0000 Message-ID: <3AEA2BF9852C6F48A459DA490692831F010AF910@IRSMSX109.ger.corp.intel.com> References: <1475856608-15504-1-git-send-email-reshma.pattan@intel.com> <1476711584-25377-1-git-send-email-reshma.pattan@intel.com> In-Reply-To: <1476711584-25377-1-git-send-email-reshma.pattan@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGM5NTU2MWItNGJiYS00MWM0LWI1NWQtZWZlOWUxMDNlMzk4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6Imh6QVBSN3h0TGtBMDV1bkt6UDF2ZGd3bDF0bzVCbGppSlMrNXl1SDFSQ3c9In0= x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [RFC v3] latencystats: added new library for latency stats X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2016 10:45:22 -0000 Hi, The below latency stats RFC adds new field to second cache line of mbuf. Th= is is not an ABI break. But I would like to emphasize on this point so you can have a look into th= e changes and provide comments. Thanks, Reshma > -----Original Message----- > From: Pattan, Reshma > Sent: Monday, October 17, 2016 2:40 PM > To: dev@dpdk.org > Cc: Pattan, Reshma > Subject: [RFC v3] latencystats: added new library for latency stats >=20 > Library is designed to calculate latency stats and report them to the app= lication > when queried. Library measures minimum, average, maximum latencies and > jitter in nano seconds. > Current implementation supports global latency stats, i.e. per applicatio= n stats. >=20 > Added new field to mbuf struct to mark the packet arrival time on Rx and = use the > times tamp to measure the latency on Tx. >=20 > Modified dpdk-procinfo process to display the new stats. >=20 > APIs: >=20 > Added APIs to initialize and un initialize latency stats calculation. > Added API to retrieve latency stats names and values. >=20 > Functionality: >=20 > *Library will register ethdev Rx/Tx callbacks for each active port, queue > combinations. > *Library will register latency stats names with new stats library, which = is under > design for now. > *Rx packets will be marked with time stamp on each sampling interval. > *On Tx side, packets with time stamp will be considered for calculating t= he > minimum, maximum, average latencies and jitter. > *Average latency is calculated by summing all the latencies measured for = each > time stamped packet and dividing that by total time stamped packets. > *Minimum and maximum latencies will be low and high latency values observ= ed > so far. > *Jitter calculation is done based on inter packet delay variation. > *Measured stats can be retrieved via get API of the libray (or) by callin= g generic > get API of the new stats library, in this case callback is provided to up= date the > stats into new stats library. >=20 > Signed-off-by: Reshma Pattan