scripts/nvmf_perf: modify SAR log messages
Re-phrase "waiting" message a bit and add another message notifying that measurements are actually starting. Signed-off-by: Karol Latecki <karol.latecki@intel.com> Change-Id: I55d8ed761bf45a590322cffc5b776a44774977dd Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12522 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
8c1180ead8
commit
6acfe37999
@ -586,10 +586,13 @@ class Target(Server):
|
|||||||
self.log_print("You can find the test results in the file %s" % os.path.join(results_dir, csv_file))
|
self.log_print("You can find the test results in the file %s" % os.path.join(results_dir, csv_file))
|
||||||
|
|
||||||
def measure_sar(self, results_dir, sar_file_name):
|
def measure_sar(self, results_dir, sar_file_name):
|
||||||
self.log_print("Waiting %d delay before measuring SAR stats" % self.sar_delay)
|
|
||||||
cpu_number = os.cpu_count()
|
cpu_number = os.cpu_count()
|
||||||
sar_idle_sum = 0
|
sar_idle_sum = 0
|
||||||
|
|
||||||
|
self.log_print("Waiting %d seconds for ramp-up to finish before measuring SAR stats" % self.sar_delay)
|
||||||
time.sleep(self.sar_delay)
|
time.sleep(self.sar_delay)
|
||||||
|
self.log_print("Starting SAR measurements")
|
||||||
|
|
||||||
out = self.exec_cmd(["sar", "-P", "ALL", "%s" % self.sar_interval, "%s" % self.sar_count])
|
out = self.exec_cmd(["sar", "-P", "ALL", "%s" % self.sar_interval, "%s" % self.sar_count])
|
||||||
with open(os.path.join(results_dir, sar_file_name), "w") as fh:
|
with open(os.path.join(results_dir, sar_file_name), "w") as fh:
|
||||||
for line in out.split("\n"):
|
for line in out.split("\n"):
|
||||||
|
Loading…
Reference in New Issue
Block a user