blob: bd5c0c02896836ce0fad9f7c9f7f290e3a7ca9c2 [file] [log] [blame]
  1. The lowmemorykiller driver lets user-space specify a set of memory thresholds
  2. where processes with a range of oom_adj values will get killed. Specify the
  3. minimum oom_adj values in /sys/module/lowmemorykiller/parameters/adj and the
  4. number of free pages in /sys/module/lowmemorykiller/parameters/minfree. Both
  5. files take a comma separated list of numbers in ascending order.
  6. For example, write "0,8" to /sys/module/lowmemorykiller/parameters/adj and
  7. "1024,4096" to /sys/module/lowmemorykiller/parameters/minfree to kill processes
  8. with a oom_adj value of 8 or higher when the free memory drops below 4096 pages
  9. and kill processes with a oom_adj value of 0 or higher when the free memory
  10. drops below 1024 pages.
  11. The driver considers memory used for caches to be free, but if a large
  12. percentage of the cached memory is locked this can be very inaccurate
  13. and processes may not get killed until the normal oom killer is triggered.