Skip to content

Commit

Permalink
add a dumb hack to run mem stat a few times during server ntttcp
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgov committed May 22, 2024
1 parent 51288c7 commit 1b83b52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lisa/tools/ntttcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ def run_as_server(
run_as_daemon,
udp_mode,
)

for _ in range(0, run_time_seconds // 4):
self.node.execute_async(
f"sleep {run_time_seconds//6} && free -m", sudo=True, shell=True
).wait_result()
return self.wait_server_result(process)

def wait_server_result(self, process: Process) -> ExecutableResult:
Expand Down

0 comments on commit 1b83b52

Please sign in to comment.