Skip to content

Commit

Permalink
fudge memstat times
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgov committed May 22, 2024
1 parent 7d66596 commit 811c115
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lisa/tools/ntttcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ def run_as_server_async(
cmd += f" --show-dev-interrupts {dev_differentiator} "
if run_as_daemon:
cmd += " -D "
for i in range(0, 1, 2):
self.node.execute_async(
f"sleep {warm_up_time_seconds + ((run_time_seconds//3) * i)} && free -m && w",
sudo=True,
shell=True,
)
process = self.node.execute_async(
f"ulimit -n 204800 && {self.command} {cmd}", shell=True, sudo=True
)
Expand Down Expand Up @@ -276,12 +282,7 @@ def run_as_server(
run_as_daemon,
udp_mode,
)
for i in range(1, 2, 3):
self.node.execute_async(
f"sleep {warm_up_time_seconds + ((run_time_seconds//3) * i)} && free -m && w",
sudo=True,
shell=True,
)

return self.wait_server_result(process)

def wait_server_result(self, process: Process) -> ExecutableResult:
Expand Down Expand Up @@ -328,7 +329,7 @@ def run_as_client(
)
memstat_delay = run_time_seconds // 2
self.node.execute_async(
f"sleep {memstat_delay + warm_up_time_seconds} && free -m && w",
f"sleep {memstat_delay + warm_up_time_seconds + 3} && free -m && w",
sudo=True,
shell=True,
)
Expand Down

0 comments on commit 811c115

Please sign in to comment.