From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 8B844234 for ; Tue, 15 Nov 2016 16:10:36 +0100 (CET) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP; 15 Nov 2016 07:10:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,495,1473145200"; d="scan'208";a="31209475" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by orsmga004.jf.intel.com with ESMTP; 15 Nov 2016 07:10:34 -0800 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.226]) by IRSMSX154.ger.corp.intel.com ([169.254.12.147]) with mapi id 14.03.0248.002; Tue, 15 Nov 2016 15:10:32 +0000 From: "Van Haaren, Harry" To: "VERDOUX, Sylvain" , "users@dpdk.org" Thread-Topic: Howto control sending IFG Thread-Index: AdI/S6r32kPBlCXhQtuv9T/ZOwa4NAABm81w Date: Tue, 15 Nov 2016 15:10:32 +0000 Message-ID: References: <294AEAFC4B0A3E498038549EC65E9D1B018AB09F91@BELGSMBX01.EVS.TV> In-Reply-To: <294AEAFC4B0A3E498038549EC65E9D1B018AB09F91@BELGSMBX01.EVS.TV> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTUxNTg1NGYtN2YxMi00OGZhLTgzNTEtODMxZmQ2Y2E3MzAxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlBVS1V1K2dvc1J0cml1K1lYam5XOTFaTm9iRENMeGNaRUJjVFhzOEVHb2M9In0= 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-users] Howto control sending IFG X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2016 15:10:37 -0000 > From: users [mailto:users-bounces@dpdk.org] On Behalf Of VERDOUX, Sylvain > Sent: Tuesday, November 15, 2016 2:31 PM > To: users@dpdk.org > Subject: [dpdk-users] Howto control sending IFG >=20 > Hi, >=20 > Using i40e pmd i'm currently trying to control precisely packets emission= rate. When > dealing with an IFG (inter frame gap) of 1ms it works fine, but dealing w= ith IFG under > 100us I'm seeing bursts on the receiver. I was wondering if there was a b= etter way to be > close to the wanted IFG instead of waiting and using rte_eth_tx_burst wit= h 1 packet at a > time. I did not see anything relevant in mbuf structure, and I was wonder= ing if tx queue > threshold could help, but I'm not sure to understand well the impact of t= hose thresholds. > Any advice is welcome :) >=20 > Best Regards, > Sylvain Hi Sylvain, I don't personally have experience, however the MoonGen traffic generator h= as a few solutions to this problem; I can recommend reading their documenta= tion on rate control[1], and the paper they wrote on the topic[2]. Hopefully that leads you to a solution, -Harry [1] https://github.com/emmericp/MoonGen#rate-control [2] https://www.net.in.tum.de/fileadmin/bibtex/publications/papers/MoonGen_= IMC2015.pdf