diff --git a/nohang b/nohang index 5d65030..bb73d62 100755 --- a/nohang +++ b/nohang @@ -2084,8 +2084,8 @@ mlockall() ########################################################################## -if print_proc_table: - find_victim(print_proc_table) +# if print_proc_table: + find_victim(print_proc_table) log('Monitoring started!') @@ -2146,8 +2146,7 @@ while True: mem_info = 'PSI avg value ({}) > sigkill_psi_threshold ({})'.format( psi_avg_value, sigkill_psi_threshold) - # implement_corrective_action(SIGKILL) - print('implement!') + implement_corrective_action(SIGKILL) psi_t0 = time() continue @@ -2157,8 +2156,7 @@ while True: mem_info = 'PSI avg value ({}) > sigterm_psi_threshold ({})'.format( psi_avg_value, sigterm_psi_threshold) - # implement_corrective_action(SIGTERM) - print('implement!') + implement_corrective_action(SIGTERM) psi_t0 = time() continue