Skip to content

Commit

Permalink
add 'w' call and make server mem account for warm up time
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgov committed May 22, 2024
1 parent 8f94e8f commit d427c24
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lisa/tools/ntttcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,12 @@ def run_as_server(
run_as_daemon,
udp_mode,
)
for _ in range(0, run_time_seconds // 4):
for i in range(1, 2, 3):
self.node.execute_async(
f"sleep {run_time_seconds//6} && free -m", sudo=True, shell=True
).wait_result()
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 @@ -326,7 +328,7 @@ def run_as_client(
)
memstat_delay = run_time_seconds // 2
self.node.execute_async(
f"sleep {memstat_delay} && free -m", sudo=True, shell=True
f"sleep {memstat_delay} && free -m && w", sudo=True, shell=True
)
if udp_mode:
cmd += " -u "
Expand Down

0 comments on commit d427c24

Please sign in to comment.