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 41DFC9580 for ; Thu, 7 Jan 2016 04:05:00 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 06 Jan 2016 19:04:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,531,1444719600"; d="scan'208";a="721767243" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 06 Jan 2016 19:04:56 -0800 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 6 Jan 2016 19:04:55 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 6 Jan 2016 19:04:55 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.133]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.111]) with mapi id 14.03.0248.002; Thu, 7 Jan 2016 11:04:53 +0800 From: "Tu, LijuanX A" To: "Xu, HuilongX" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V1 2/2] when dut not support numa, set hugepage on all socket Thread-Index: AQHRSDJVbRQ7l7h6h0erFPS/TKVgX57vX+xQ Date: Thu, 7 Jan 2016 03:04:53 +0000 Message-ID: <38D041F150D4184C8114E499040E623407264CC4@shsmsx102.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> In-Reply-To: <1452050611-7029-2-git-send-email-huilongx.xu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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 03:05:00 -0000 Tested-by: gu,yongjie > -----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 >=20 > Signed-off-by: xu,huilong > --- > framework/crb.py | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) >=20 > 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) >=20 > def set_speedup_options(self, read_cache, skip_setup): > """ > -- > 1.9.3