Guest User

Untitled

a guest
Jun 7th, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. /usr/sbin/nohang
  2. Config: /etc/nohang/nohang.conf
  3.  
  4. 1. Memory levels to respond to as an OOM threat
  5. [displaying these options need fix]
  6.  
  7. mem_min_sigterm: 787 MiB, 10.0 %
  8. mem_min_sigkill: 393 MiB, 5.0 %
  9. swap_min_sigterm: 15 %
  10. swap_min_sigkill: 5 %
  11. zram_max_sigterm: 3933 MiB, 50.0 %
  12. zram_max_sigkill: 4720 MiB, 60.0 %
  13.  
  14. 2. The frequency of checking the level of available memory (and CPU usage)
  15.  
  16. rate_mem: 4000.0
  17. rate_swap: 1500.0
  18. rate_zram: 6000.0
  19.  
  20. 3. The prevention of killing innocent victims
  21.  
  22. min_delay_after_sigterm: 3.0
  23. min_badness: 20
  24. decrease_oom_score_adj: False
  25.  
  26. 4. Impact on the badness of processes via matching their names, cmdlines ir UIDs with regular expressions
  27.  
  28. (todo)
  29.  
  30. 5. The execution of a specific command instead of sending the
  31. SIGTERM signal
  32.  
  33.  
  34. 6. GUI notifications:
  35. - OOM prevention results and
  36. - low memory warnings
  37.  
  38. gui_notifications: True
  39. gui_low_memory_warnings: True
  40. min_time_between_warnings: 15.0
  41. mem_min_warnings: 1967 MiB, 25.0 %
  42. swap_min_warnings: 50 %
  43. zram_max_warnings: 3146 MiB, 40.0 %
  44.  
  45. 7. Output verbosity
  46.  
  47. print_config: True
  48. print_mem_check_results: True
  49. print_sleep_periods: True
  50.  
  51. Monitoring has started!
  52. PSI avg: 0.0 | MemAvail: 4649 M, 59.1 % | SwapFree: 20212 M, 100.0 % | dMem: 0 M/s
  53. psi_post_action_delay_exceeded: False
  54. sigkill_psi_exceeded: False
  55. psi_kill_exceeded_timer: 0
  56. sigterm_psi_exceeded: False
  57. psi_term_exceeded_timer: 0
  58.  
  59. Traceback (most recent call last):
  60. File "/usr/sbin/nohang", line 3192, in <module>
  61. sleep_after_check_mem()
  62. File "/usr/sbin/nohang", line 1805, in sleep_after_check_mem
  63. round(t_zram, 2)
  64. UnboundLocalError: local variable 't_zram' referenced before assignment
Advertisement
Add Comment
Please, Sign In to add comment