From 7a4e9df39e9fd41feb6ac2b090780bee9f35face Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Thu, 3 Jan 2019 01:21:03 +0900 Subject: [PATCH] fix psi support --- nohang | 7 ++++--- nohang.conf | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/nohang b/nohang index a9265b5..05e1cde 100755 --- a/nohang +++ b/nohang @@ -1623,8 +1623,8 @@ psi_min_sleep_time_after_action = psi_avg10_sleep_time if psi_support and not ignore_psi: # ta0 = time() # a0 = psi_mem_some_avg_total() - kill_psi_t0 = time() - term_psi_t0 = time() + kill_psi_t0 = time() + psi_avg10_sleep_time + term_psi_t0 = time() + psi_avg10_sleep_time avg_value = '' @@ -1633,8 +1633,9 @@ avg_value = '' while True: if psi_support and not ignore_psi: - #print(rline1(psi_path)) + avg10 = psi_mem_some_avg10() + if print_mem_check_results: avg_value = 'PSI mem some avg10: {} | '.format(str(avg10).rjust(6)) diff --git a/nohang.conf b/nohang.conf index 8971bb5..de8b9d0 100644 --- a/nohang.conf +++ b/nohang.conf @@ -85,7 +85,7 @@ ignore_psi = True sigterm_psi_avg10 = 60 sigkill_psi_avg10 = 90 -psi_avg10_sleep_time = 30 +psi_avg10_sleep_time = 60 #####################################################################