* [dts] [PATCH] Allocate hugepage from socket 0 for i686 and x86_x32
@ 2015-07-24 7:18 Yong Liu
0 siblings, 0 replies; only message in thread
From: Yong Liu @ 2015-07-24 7:18 UTC (permalink / raw)
To: dts
From: Marvin Liu <yong.liu@intel.com>
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 <yong.liu@intel.com>
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-24 7:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-24 7:18 [dts] [PATCH] Allocate hugepage from socket 0 for i686 and x86_x32 Yong Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).