Skip to content

Commit

Permalink
Add "node" to metric file names in cperf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
johnousterhout committed Sep 27, 2024
1 parent dcebb4e commit 7e029c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions util/cperf.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,13 +899,13 @@ def run_experiments(*args):
if homa_nodes:
vlog("Recording final metrics from nodes %s" % (homa_nodes))
for id in homa_nodes:
f = open("%s/%d.metrics" % (exp.log_dir, id), 'w')
f = open("%s/node%d.metrics" % (exp.log_dir, id), 'w')
subprocess.run(["ssh", "node%d" % (id), "metrics.py"], stdout=f)
f.close()
shutil.copyfile("%s/%d.metrics" % (exp.log_dir, homa_clients[0]),
"%s/reports/%d.metrics" % (exp.log_dir, homa_clients[0]))
shutil.copyfile("%s/%d.metrics" % (exp.log_dir, homa_servers[0]),
"%s/reports/%d.metrics" % (exp.log_dir, homa_servers[0]))
shutil.copyfile("%s/node%d.metrics" % (exp.log_dir, homa_clients[0]),
"%s/reports/node%d.metrics" % (exp.log_dir, homa_clients[0]))
shutil.copyfile("%s/node%d.metrics" % (exp.log_dir, homa_servers[0]),
"%s/reports/node%d.metrics" % (exp.log_dir, homa_servers[0]))
do_cmd("stop senders", all_nodes)
do_cmd("stop clients", all_nodes)
for exp in args:
Expand Down

0 comments on commit 7e029c1

Please sign in to comment.