oom.h 423 B

1234567891011121314151617181920
  1. #ifndef __INCLUDE_LINUX_OOM_H
  2. #define __INCLUDE_LINUX_OOM_H
  3. /*
  4. * /proc/<pid>/oom_adj set to -17 protects from the oom-killer
  5. */
  6. #define OOM_DISABLE (-17)
  7. /* inclusive */
  8. #define OOM_ADJUST_MIN (-16)
  9. #define OOM_ADJUST_MAX 15
  10. /*
  11. * /proc/<pid>/oom_score_adj set to OOM_SCORE_ADJ_MIN disables oom killing for
  12. * pid.
  13. */
  14. #define OOM_SCORE_ADJ_MIN (-1000)
  15. #define OOM_SCORE_ADJ_MAX 1000
  16. #endif /* _INCLUDE_LINUX_OOM_H */