fix psi
This commit is contained in:
parent
af7ff8fcd0
commit
afbd49c7f2
8
nohang
8
nohang
@ -2084,7 +2084,7 @@ mlockall()
|
|||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
|
|
||||||
if print_proc_table:
|
# if print_proc_table:
|
||||||
find_victim(print_proc_table)
|
find_victim(print_proc_table)
|
||||||
|
|
||||||
log('Monitoring started!')
|
log('Monitoring started!')
|
||||||
@ -2146,8 +2146,7 @@ while True:
|
|||||||
mem_info = 'PSI avg value ({}) > sigkill_psi_threshold ({})'.format(
|
mem_info = 'PSI avg value ({}) > sigkill_psi_threshold ({})'.format(
|
||||||
psi_avg_value, sigkill_psi_threshold)
|
psi_avg_value, sigkill_psi_threshold)
|
||||||
|
|
||||||
# implement_corrective_action(SIGKILL)
|
implement_corrective_action(SIGKILL)
|
||||||
print('implement!')
|
|
||||||
|
|
||||||
psi_t0 = time()
|
psi_t0 = time()
|
||||||
continue
|
continue
|
||||||
@ -2157,8 +2156,7 @@ while True:
|
|||||||
mem_info = 'PSI avg value ({}) > sigterm_psi_threshold ({})'.format(
|
mem_info = 'PSI avg value ({}) > sigterm_psi_threshold ({})'.format(
|
||||||
psi_avg_value, sigterm_psi_threshold)
|
psi_avg_value, sigterm_psi_threshold)
|
||||||
|
|
||||||
# implement_corrective_action(SIGTERM)
|
implement_corrective_action(SIGTERM)
|
||||||
print('implement!')
|
|
||||||
|
|
||||||
psi_t0 = time()
|
psi_t0 = time()
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user