From 5dcbc036a630253ee08af831073d3b370c55eda2 Mon Sep 17 00:00:00 2001 From: Lili Deng Date: Sun, 16 Oct 2022 20:09:48 +0800 Subject: [PATCH] install Netperf in parallel to reduce time and extend execution time --- lisa/tools/texinfo.py | 2 +- microsoft/testsuites/performance/common.py | 5 +++-- microsoft/testsuites/performance/networkperf.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lisa/tools/texinfo.py b/lisa/tools/texinfo.py index 46e608c76..33fee198f 100644 --- a/lisa/tools/texinfo.py +++ b/lisa/tools/texinfo.py @@ -26,7 +26,7 @@ class Texinfo(Tool): def _install(self) -> bool: posix_os: Posix = cast(Posix, self.node.os) try: - posix_os.install_packages("texinfo") + posix_os.install_packages("texinfo", timeout=2000) except MissingPackagesException: posix_os.install_packages(["perl", "perl-Data-Dumper"]) self._install_from_src() diff --git a/microsoft/testsuites/performance/common.py b/microsoft/testsuites/performance/common.py index 7c19c29cb..b44afc847 100644 --- a/microsoft/testsuites/performance/common.py +++ b/microsoft/testsuites/performance/common.py @@ -182,8 +182,9 @@ def perf_tcp_pps( server = cast(RemoteNode, environment.nodes[1]) client = cast(RemoteNode, environment.nodes[0]) - client_netperf = client.tools[Netperf] - server_netperf = server.tools[Netperf] + client_netperf, server_netperf = run_in_parallel( + [lambda: client.tools[Netperf], lambda: server.tools[Netperf]] # type: ignore + ) cpu = client.tools[Lscpu] core_count = cpu.get_core_count() diff --git a/microsoft/testsuites/performance/networkperf.py b/microsoft/testsuites/performance/networkperf.py index b273dc0ad..f70da97d7 100644 --- a/microsoft/testsuites/performance/networkperf.py +++ b/microsoft/testsuites/performance/networkperf.py @@ -36,7 +36,7 @@ from microsoft.testsuites.performance.common import ( ) class NetworkPerformace(TestSuite): TIMEOUT = 12000 - PPS_TIMEOUT = 2000 + PPS_TIMEOUT = 3000 @TestCaseMetadata( description="""