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 4DC3A376D for ; Fri, 24 Jul 2015 09:18:26 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 24 Jul 2015 00:18:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,537,1432623600"; d="scan'208";a="770342009" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 24 Jul 2015 00:18:08 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t6O7I6Ym027222; Fri, 24 Jul 2015 15:18:06 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t6O7I4X1007910; Fri, 24 Jul 2015 15:18:06 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t6O7I4Cu007906; Fri, 24 Jul 2015 15:18:04 +0800 From: Yong Liu To: dts@dpdk.org Date: Fri, 24 Jul 2015 15:18:02 +0800 Message-Id: <1437722282-7874-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] Allocate hugepage from socket 0 for i686 and x86_x32 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: Fri, 24 Jul 2015 07:18:26 -0000 From: Marvin Liu dts will allocate 512*2M hugepages for 32bit validation. If seperated on two sockets, hugepage on one socket may not enough for some applictation. Add timeout for waiting interface ipv6 ready. Signed-off-by: Marvin Liu diff --git a/framework/dut.py b/framework/dut.py index 722b8a7..f93d696 100644 --- a/framework/dut.py +++ b/framework/dut.py @@ -271,7 +271,12 @@ class Dut(Crb): arch_huge_pages = hugepages if hugepages > 0 else 256 if total_huge_pages != arch_huge_pages: - self.set_huge_pages(arch_huge_pages) + # for i686 and x86_x32 just use hugepage from socket 0 + if hugepages != 4096: + self.set_huge_pages(arch_huge_pages, numa=0) + print dts.GREEN("Hugepage allocated from socket 0, please take care!!!") + else: + self.set_huge_pages(arch_huge_pages) self.mount_huge_pages() self.hugepage_path = self.strip_hugepage_path() @@ -871,6 +876,8 @@ class Dut(Crb): if self.tester.ports_info[tester_port]['type'] != 'ixia': port = self.tester.ports_info[tester_port]['port'] port.enable_ipv6() + # sleep a while for ipv6 ready + time.sleep(1) def check_port_occupied(self, port): out = self.alt_session.send_expect('lsof -i:%d' % port, '# ') -- 1.9.3