diff --git a/nohang b/nohang index fd2ce12..e63e599 100755 --- a/nohang +++ b/nohang @@ -1538,9 +1538,9 @@ warn_time_now = 0 warn_time_delta = 1000 warn_timer = 0 -x = time() - start_time -print('Startup time:', - round(x * 1000, 1), 'ms') +# x = time() - start_time +# print('Startup time:', +# round(x * 1000, 1), 'ms') print('Monitoring started!') diff --git a/nohang.conf b/nohang.conf index 0ecdf87..c9ba7a1 100644 --- a/nohang.conf +++ b/nohang.conf @@ -42,13 +42,13 @@ MemAvailable levels. -mem_min_sigterm = 200M -mem_min_sigkill = 100M +mem_min_sigterm = 10 % +mem_min_sigkill = 5 % SwapFree levels. -swap_min_sigterm = 200M -swap_min_sigkill = 100M +swap_min_sigterm = 10 % +swap_min_sigkill = 5 % Specifying the total share of zram in memory, if exceeded the corresponding signals are sent. As the share of zram in memory @@ -132,7 +132,7 @@ min_delay_after_sigkill = 1 Valid values are True and False. Values are case sensitive. -decrease_oom_score_adj = True +decrease_oom_score_adj = False Valid values are integers from the range [0; 1000]. @@ -160,7 +160,7 @@ oom_score_adj_max = 30 Valid values are True and False. -regex_matching = True +regex_matching = False Syntax: @@ -184,7 +184,7 @@ regex_matching = True A good option that allows fine adjustment. -re_match_cmdline = True +re_match_cmdline = False @CMDLINE_RE 300 /// -childID|--type=renderer @@ -195,7 +195,7 @@ re_match_cmdline = True The most slow option -re_match_uid = True +re_match_uid = False @UID_RE -100 /// ^0$ @@ -215,7 +215,7 @@ re_match_uid = True Valid values are True and False. -execute_the_command = True +execute_the_command = False The length of the process name can't exceed 15 characters. The syntax is as follows: lines starting with keyword $ETC are @@ -258,7 +258,7 @@ $ETC firefox-esr /// kill -SEGV $PID See also wiki.archlinux.org/index.php/Desktop_notifications Valid values are True and False. -gui_notifications = True +gui_notifications = False Enable GUI notifications about the low level of available memory. Valid values are True and False.