From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 9D2D19580 for ; Thu, 7 Jan 2016 10:32:31 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 07 Jan 2016 01:32:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,532,1444719600"; d="scan'208";a="629384621" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 07 Jan 2016 01:32:30 -0800 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 7 Jan 2016 01:32:30 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 7 Jan 2016 01:32:30 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.220]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.111]) with mapi id 14.03.0248.002; Thu, 7 Jan 2016 17:32:28 +0800 From: "Liu, Yong" To: "Tu, LijuanX A" , "Xu, HuilongX" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V1 2/2] when dut not support numa, set hugepage on all socket Thread-Index: AQHRSPhKwlltCJYomEif6fCMKsOvKp7vypug Date: Thu, 7 Jan 2016 09:32:27 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E13AF9EE7@SHSMSX103.ccr.corp.intel.com> References: <1452050611-7029-1-git-send-email-huilongx.xu@intel.com> <1452050611-7029-2-git-send-email-huilongx.xu@intel.com> <38D041F150D4184C8114E499040E623407264CC4@shsmsx102.ccr.corp.intel.com> In-Reply-To: <38D041F150D4184C8114E499040E623407264CC4@shsmsx102.ccr.corp.intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjE3MWE4NTctNGY2Mi00YTA4LWJiOWQtMWE4OGJkYjZjZWE3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjQuMTAuMTkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiM2JYVkxWcGN4UEhOVlNiZXJxTE1pajlseFRWc1IzNFYxWCtROGozS0gwbz0ifQ== x-ctpclassification: CTP_IC 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 V1 2/2] when dut not support numa, set hugepage on all socket 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: Thu, 07 Jan 2016 09:32:32 -0000 Applied with comments changed. Thanks. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Tu, LijuanX A > Sent: Thursday, January 07, 2016 11:05 AM > To: Xu, HuilongX; dts@dpdk.org > Subject: Re: [dts] [PATCH V1 2/2] when dut not support numa, set hugepage > on all socket >=20 > Tested-by: gu,yongjie >=20 > > -----Original Message----- > > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,huilong > > Sent: Wednesday, January 06, 2016 11:24 AM > > To: dts@dpdk.org > > Subject: [dts] [PATCH V1 2/2] when dut not support numa, set hugepage > > on all socket > > > > Signed-off-by: xu,huilong > > --- > > framework/crb.py | 10 +++++++++- > > 1 file changed, 9 insertions(+), 1 deletion(-) > > > > diff --git a/framework/crb.py b/framework/crb.py index 525d6a1..6c2a9b9 > > 100644 > > --- a/framework/crb.py > > +++ b/framework/crb.py > > @@ -164,7 +164,15 @@ class Crb(object): > > if numa =3D=3D -1: > > self.send_expect('echo %d > > > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages' % huge_pages, > > '# ', 5) > > else: > > - self.send_expect('echo %d > > > /sys/devices/system/node/node%d/hugepages/hugepages- > > 2048kB/nr_hugepages' % (huge_pages, numa), '# ', 5) > > + #sometimes we set hugepage on kernel cmdline, so we need > > clear default hugepage > > + self.send_expect('echo 0 > > > + /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages', '# ', 5) > > + > > + #some platform not support numa, example vm dut > > + try: > > + self.send_expect('echo %d > > > /sys/devices/system/node/node%d/hugepages/hugepages- > > 2048kB/nr_hugepages' % (huge_pages, numa), '# ', 5) > > + except: > > + self.logger.warning("set %d hugepage on socket %d > > error" % (huge_pages, numa)) > > + self.send_expect('echo %d > > > + /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages' % huge_pages, > > + '# ', 5) > > > > def set_speedup_options(self, read_cache, skip_setup): > > """ > > -- > > 1.9.3