fix psi support

This commit is contained in:
Alexey Avramov 2019-01-03 01:21:03 +09:00
parent bff8e8ef75
commit 7a4e9df39e
2 changed files with 5 additions and 4 deletions

7
nohang
View File

@ -1623,8 +1623,8 @@ psi_min_sleep_time_after_action = psi_avg10_sleep_time
if psi_support and not ignore_psi: if psi_support and not ignore_psi:
# ta0 = time() # ta0 = time()
# a0 = psi_mem_some_avg_total() # a0 = psi_mem_some_avg_total()
kill_psi_t0 = time() kill_psi_t0 = time() + psi_avg10_sleep_time
term_psi_t0 = time() term_psi_t0 = time() + psi_avg10_sleep_time
avg_value = '' avg_value = ''
@ -1633,8 +1633,9 @@ avg_value = ''
while True: while True:
if psi_support and not ignore_psi: if psi_support and not ignore_psi:
#print(rline1(psi_path))
avg10 = psi_mem_some_avg10() avg10 = psi_mem_some_avg10()
if print_mem_check_results: if print_mem_check_results:
avg_value = 'PSI mem some avg10: {} | '.format(str(avg10).rjust(6)) avg_value = 'PSI mem some avg10: {} | '.format(str(avg10).rjust(6))

View File

@ -85,7 +85,7 @@ ignore_psi = True
sigterm_psi_avg10 = 60 sigterm_psi_avg10 = 60
sigkill_psi_avg10 = 90 sigkill_psi_avg10 = 90
psi_avg10_sleep_time = 30 psi_avg10_sleep_time = 60
##################################################################### #####################################################################