From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 0F20E5A7D for ; Tue, 27 Jan 2015 03:45:24 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 26 Jan 2015 18:39:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,471,1418112000"; d="scan'208";a="668003610" Received: from kmsmsx153.gar.corp.intel.com ([172.21.73.88]) by fmsmga002.fm.intel.com with ESMTP; 26 Jan 2015 18:45:22 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.110.14) by KMSMSX153.gar.corp.intel.com (172.21.73.88) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 27 Jan 2015 10:45:21 +0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.231]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.192]) with mapi id 14.03.0195.001; Tue, 27 Jan 2015 10:45:19 +0800 From: "Zhang, XiaonanX" To: "Liu, Yong" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] framework support get oversize for performance Thread-Index: AQHQOUkxl5SkEte280mjan7kGAq3/JzTL8jggAATl7A= Date: Tue, 27 Jan 2015 02:45:18 +0000 Message-ID: <63FB47D6C0357E428AA804B2C89068BA012905ED@SHSMSX104.ccr.corp.intel.com> References: <1422263952-32225-1-git-send-email-xiaonanx.zhang@intel.com> <86228AFD5BCD8E4EBFD2B90117B5E81E10D53FB6@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <86228AFD5BCD8E4EBFD2B90117B5E81E10D53FB6@SHSMSX103.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-hashedpuzzle: CIk= BgeU B6ku Cz6m DGXt DwNr Fydr GElb GLGw GWay GkLl GzAp HIix JF9x JgD5 KCH+; 1; ZAB0AHMAQABkAHAAZABrAC4AbwByAGcA; Sosha1_v1; 7; {0586DA46-883B-4BF8-916E-FEDB19AACBDF}; eABpAGEAbwBuAGEAbgB4AC4AegBoAGEAbgBnAEAAaQBuAHQAZQBsAC4AYwBvAG0A; Tue, 27 Jan 2015 02:51:30 GMT; UgBFADoAIABbAGQAdABzAF0AIABbAFAAQQBUAEMASABdACAAZgByAGEAbQBlAHcAbwByAGsAIABzAHUAcABwAG8AcgB0ACAAZwBlAHQAIABvAHYAZQByAHMAaQB6AGUAIABmAG8AcgAgAHAAZQByAGYAbwByAG0AYQBuAGMAZQA= x-cr-puzzleid: {0586DA46-883B-4BF8-916E-FEDB19AACBDF} x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH] framework support get oversize for performance X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2015 02:45:25 -0000 Hi Yong, I modified it for l3fwd performance about jumbo frame case as follows, if frame_size > 1518, l3fwd cmdline should add --enable-jumbo --max-pkt-len frame_size. If we use ixia while rate return 0, We should focus on oversize at the s= ame time. Best Regards Thanks=20 -----Original Message----- From: Liu, Yong=20 Sent: Tuesday, January 27, 2015 9:35 AM To: Zhang, XiaonanX; dts@dpdk.org Subject: RE: [dts] [PATCH] framework support get oversize for performance Hi xiaonan, Can you give use more detail information? Like that in which suite we shoul= d use oversize in replace of bitrate? > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiaonan Zhang > Sent: Monday, January 26, 2015 5:19 PM > To: dts@dpdk.org > Subject: [dts] [PATCH] framework support get oversize for performance >=20 > From: "xiaonanx.zhang" >=20 > modify get_transmission_results function in framework etgen.py > use ixia api stat cget -oversize to get Oversize and CRC Errors >=20 > add return get oversize condition >=20 > Signed-off-by: xiaonanx.zhang > --- > framework/etgen.py | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >=20 > diff --git a/framework/etgen.py b/framework/etgen.py > index 2f2e975..f2da4ab 100644 > --- a/framework/etgen.py > +++ b/framework/etgen.py > @@ -581,13 +581,18 @@ class IxiaPacketGenerator(SSHConnection): > out =3D self.send_expect("stat cget -bitsReceived", '% ', 10= ) > self.logger.debug("port %d bits rate:" % (port) + out) > bpsRate +=3D int(out.strip()) > + out =3D self.send_expect("stat cget -oversize", '%', 10) > + oversize +=3D int(out.strip()) >=20 > self.logger.info("Rate: %f Mpps" % (rate * 1.0 / 1000000)) > self.logger.info("Mbps rate: %f Mbps" % (bpsRate * 1.0 / 1000000= )) >=20 > self.send_expect("ixStopTransmit portList", "%", 30) >=20 > - return (bpsRate, rate) > + if rate =3D=3D 0 and oversize > 0: > + return (bpsRate, oversize) > + else: > + return (bpsRate, rate) >=20 > def config_ixia_dcb_init(self, rxPort, txPort): > """ > -- > 1.9.3